Allows to export figues in comparative nb, figure title is used as filename.
The figs are stored in a dict (title: fig obj) and exported in the end (see template).
Params:
export_figures: Set to True if you want export
figures_output_path: Defaults to output_path
figures_file_ext: png/svg/eps (defaults to 'svg')
Note: package orca is required but not available via pip. Available options are e.g. conda package, npm or standalone binaries.
I did the latter for testing but we maybe should switch to conda or docker windnode_abw-wide later on.
Executing results in some errors
11:42:04-INFO: Creating comparative notebook for 39 scenarios in /home/nesnoj/git-repos/windnode/WindNODE_ABW/windnode_abw/jupy/xxxxxx/ ...
Executing: 98%|█████████▊| 44/45 [00:53<00:00, 1.35cell/s]../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0230
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0230
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0230
Executing: 100%|██████████| 45/45 [01:05<00:00, 1.46s/cell]
DONE
11:43:10-INFO: Comparative notebook successfully created!
but the figures are exported, example:
2 things remain:
The layout of some plots is kind of broken, this needs to be fixed maybe using params of plotly's write_image(). Some fine tuning is required here..
The export of pair grid plot is not implemented yet as it's a matplotlib figure, not plotly and therefore write_image() doesn't work here. I'd recommend to return the plt instances of the 3 plots to the nb and check the obj type in the export loop at the end of the template (use plt functionalities in this case)
@gplssm: If you like, you can go on. If not, I'll take care later on..
Fix #160
Allows to export figues in comparative nb, figure title is used as filename. The figs are stored in a dict (title: fig obj) and exported in the end (see template).
Usage:
Params:
export_figures
: Set to True if you want exportfigures_output_path
: Defaults to output_pathfigures_file_ext
: png/svg/eps (defaults to 'svg')Note: package orca is required but not available via pip. Available options are e.g. conda package, npm or standalone binaries. I did the latter for testing but we maybe should switch to conda or docker windnode_abw-wide later on.
Executing results in some errors
but the figures are exported, example:
2 things remain:
write_image()
. Some fine tuning is required here..write_image()
doesn't work here. I'd recommend to return the plt instances of the 3 plots to the nb and check the obj type in the export loop at the end of the template (use plt functionalities in this case)@gplssm: If you like, you can go on. If not, I'll take care later on..