To convert a Jupyter Notebook to nbconvert without using magic commands or markdown, you can use the following steps:
jupyter nbconvert --to=python <notebook-name>.ipynb
, replacing <notebook-name>
with the name of your notebook file (without the .ipynb extension).Note that if your notebook contains any non-Python code (such as SQL or R), you will need to modify it accordingly to ensure that it can be properly converted to a .py file.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-11-17 11:00:00 +0000
Seen: 8 times
Last updated: Jul 21 '21