Interaction with GUI has definite advantages in many cases. Yet we may want occasionally benefit from other tools or export results of our work to different formats.
The present package has several different frontends, e.g. C++ library, Python wrapper and GUI. Recently cloud computing options have been added:
They allow to work with the MoebInv library within the comfortable Jupyter environment without a need of any software installation (besides of recent Web browser).
Coding approach has obvious advantages and a user may want to exchange figures back and forth between Jupyter and GUI. GiNaC Gar archives are universal and robust tools for exchange of data between various GiNaC tools. However, those archives are not directly readable or editable by humans.
Starting from the version v3.5.0 MoebInv is able to convert figures into commented Python scripts. The next method writes such script to a file:
F.write_python_script("my-figure-script.py")
This provides bidirectional integration between the Jupyter and GUI:
F.save("my-figure-archive.gar")
to save GiNaC Gar archive. It can be loaded into GUI (or any other
front-end, indeed).
File → Export figure→ To Python scriptin Main Menu and save the script file. Then it can be executed in the IPython or Jupyter cell.
Furthermore, to use such code as Jupyter notebook I recommend to post-process the generated Python script with p2j (Python to Jupyter) utility.
Besides the lossless translation of a figure to Python script there are the following possibilities to export the figure: