Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ssherwood/jupyter-notebooks
My personal collection of Jupyter Notebooks
https://github.com/ssherwood/jupyter-notebooks
jupyter-notebook
Last synced: 17 days ago
JSON representation
My personal collection of Jupyter Notebooks
- Host: GitHub
- URL: https://github.com/ssherwood/jupyter-notebooks
- Owner: ssherwood
- License: mit
- Created: 2024-10-25T14:43:22.000Z (24 days ago)
- Default Branch: main
- Last Pushed: 2024-10-29T22:06:49.000Z (19 days ago)
- Last Synced: 2024-10-30T00:39:17.520Z (19 days ago)
- Topics: jupyter-notebook
- Language: Jupyter Notebook
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jupyter Notebooks
Collection of my personal Jupyter Notebooks
## Requirements
* [Bash Kernel](https://github.com/takluyver/bash_kernel)
## Jupyter Notebooks and Secrets
Notebooks can leak a lot of information that could be considered secret. In general, this project uses a local `.env` file in each folder used to store secret information like passwords or API keys.
This project also uses a special git configuration option to effectively clear the output before pushing to GitHub. Specifically, in the `.git\config` file:
```shell
[filter "strip-notebook-output"]
clean = "jupyter nbconvert --ClearOutputPreprocessor.enabled=True --ClearMetadataPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR"
smudge = "cat"
required
```Also added is an `attributes` file to `.git/info`:
```shell
*.ipynb filter=strip-notebook-output
```This effectively runs `nbconvert` on each notebook and clears the output from previous executions, thus limiting potentially leaking secret information from console output.