![read a file from desktop to python jupyter notebook read a file from desktop to python jupyter notebook](https://i.stack.imgur.com/nImvA.png)
# do nothing if the notebook name ends with `Untitled*` Script_exporter = ScriptExporter(parent=contents_manager) Scripts with the useless "Untitled" names. The rationale is that we usually do not want to save Note that the behavior also applies even if you manually save an I.e., its name is `Untitled.*`, the corresponding source script will not be For a notebook which has not been given a name, Therefore we make a change here to filter out the newly created notebooksīy checking their names.
![read a file from desktop to python jupyter notebook read a file from desktop to python jupyter notebook](https://techtalktone.files.wordpress.com/2017/03/eo2sqs9.png)
Meaningful name later, and now we have to rename the generated script file, This is annoying because we usually will rename the notebook with a more You create a new notebook, even if you have not pressed the "save" button. The official documentation), will also create an `Untitile.txt` file when However, existing config files I found online (including the one written in Python script will also be saved in the same directory. """Save a copy of notebook to the corresponding language source script.įor example, when you save a `foo.ipynb` file, a corresponding `foo.py`