Loading/saving model with the GUI
As described by @fages, there is a need to save/load the current model alongside the notebook file (.ipynb) when using the GUI. However this kind of behaviour should only be considered with the GUI, otherwise the notebook user might get confused if a model is loaded when the notebook is launched.
One way to do it would be to add an options --gui
to the CLI, this way the notebook should know that we want to load a model with the notebook.
For the model saving, we could use the same system the notebook offers for checkpoints, meaning there would be:
- a hidden directory in the notebook directory (e.g. .biocham_models)
- when the notebook is saved, the command
export_biocham
saves the model in this directory (filename should be the same as the notebook) - we add some metadata to the .ipynb file (e.g.
model: something.bc
orload_model: true
)