https://github.com/trflorian/notebook-template
Template project for shared Python code between Jupyter Notebooks
https://github.com/trflorian/notebook-template
code-sharing conda data-science jupyter-notebook machine-learning pip python virtual-environment
Last synced: 3 months ago
JSON representation
Template project for shared Python code between Jupyter Notebooks
- Host: GitHub
- URL: https://github.com/trflorian/notebook-template
- Owner: trflorian
- License: mit
- Created: 2024-06-29T07:38:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-29T11:11:26.000Z (over 1 year ago)
- Last Synced: 2025-03-18T09:21:26.752Z (10 months ago)
- Topics: code-sharing, conda, data-science, jupyter-notebook, machine-learning, pip, python, virtual-environment
- Language: Jupyter Notebook
- Homepage: https://medium.com/@flip.flo.games/how-to-share-python-code-between-jupyter-notebooks-b20b9898f748
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jupyter Notebook Template
This is a template that can be used to share Python code between your Jupyter Notebooks.
## Autoreload Extension
If you are using VS Code, you can setup the autoreload extension globally to reload modules when cells are executed.
That way you don't have to restart the Python kernel when code in the shared package has changed.
Add the following setting to your user `settings.json`.
```
{
...
"jupyter.runStartupCommands": [
"%load_ext autoreload",
"%autoreload 2"
]
}
```
If you cannot specify these commands to run at the startup of the notebooks, you have to add these two lines to every notebook if you want the autoreald extension.
```
%load_ext autoreload
%autoreload 2
```