pycharmers.cli.jupyter_arrange module¶
-
pycharmers.cli.jupyter_arrange.
reorder_jupyter
(jupyter_dict: Dict[str, Any]) → Dict[str, Any][source]¶ Reorder the execution count in Jupyter Notebook (
.ipynb
)- Parameters
jupyter_dict (Dict[str,Any]) – The contents of the jupyter notebook file (
.ipynb
).- Returns
The reordered contents of the jupyter notebook file.
- Return type
Dict[str,Any]
-
pycharmers.cli.jupyter_arrange.
jupyter_arrange
(argv=['-M', 'html', '.', '_build'])[source]¶ Arrange Jupyter Notebook.
- Parameters
-I/-in/--input-jupyter (str) – The path to
input_jupyter.ipynb
.-O/-out/--output-jupyter (str) – The path to
output_jupyter.ipynb
.-M/--method (str) – Which method to apply?
Note
When you run from the command line, execute as follows:
$ jupyter-arrange -I path/to/input.ipynb -O path/to/output.ipynb -M reorder