I am trying to translate some python code (with lots of functions and loops over the whole code) to a jupyter notebook.
Can you point me to any good documentation on best practices? Can this be automated (and then revised?).
Can you point me to any good documentation on best practices? Can this be automated (and then revised?).
@Judith Berner, you might find the jupytext
tool to be useful for the from .py
to .ipynb
notebook conversion:
conda install -c conda-forge jupytext
# or
python -m pip install jupytext --upgrade
jupytext --to ipynb your_script_file.py
Documentation: https://jupytext.readthedocs.io/en/latest/using-cli.html
Thanks so much!
Last updated: Jan 27 2025 at 22:16 UTC