Hello, when installing jupyter, I should come with a command called `jupyter nbconvert` or `nbconvert` or `jupyter-nbconvert`. You can use the command to convert notebooks into various different formats including python code files.
> The simplest way to use nbconvert is > > > jupyter nbconvert mynotebook.ipynb --to html > > Options include ['asciidoc', 'custom', 'html', 'latex', 'markdown', 'notebook', 'pdf', 'python', 'rst', 'script', 'slides', 'webpdf']. > >Multiple notebooks can be given at the command line in a couple of different ways: > > > jupyter nbconvert notebook*.ipynb > > jupyter nbconvert notebook1.ipynb notebook2.ipynb Kind regards yfprojects [email protected] schrieb am Samstag, 17. April 2021 um 07:21:53 UTC: > You can use jupytext: > > jupytext --output script.py notebook.ipynb # convert ipynb to py > > https://github.com/mwouts/jupytext > > On Friday, April 16, 2021 at 6:40:15 PM UTC+1 [email protected] wrote: > >> >> This might be a simple question, but is there a way to open a jupyter >> notebook file in a spyder notebook and then download it as a .py file like >> you can do in jupyter notebooks? >> >> Thanks, >> Nate >> > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/089d84dd-d969-4fad-b3ec-ac78e8aaa80fn%40googlegroups.com.
