https://github.com/chenhunghan/jupyter-notebook-devspace
A minimal jupyter notebook `devspace.yaml` with `openai` + `langchain` allow you to work on any Kubernetes cluster.
https://github.com/chenhunghan/jupyter-notebook-devspace
data-science devspace kubernetes notebook python
Last synced: 24 days ago
JSON representation
A minimal jupyter notebook `devspace.yaml` with `openai` + `langchain` allow you to work on any Kubernetes cluster.
- Host: GitHub
- URL: https://github.com/chenhunghan/jupyter-notebook-devspace
- Owner: chenhunghan
- License: mit
- Created: 2023-05-05T11:00:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T11:27:47.000Z (about 2 years ago)
- Last Synced: 2025-02-17T15:51:52.753Z (4 months ago)
- Topics: data-science, devspace, kubernetes, notebook, python
- Language: Jupyter Notebook
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minimal-jupyter-notebook-devspace
A minimal jupyter notebook `devspace.yaml` with `openai` + `langchain` allow you to work on any Kubernetes cluster.
## Deploy
Build images and deploy a jupyter notebook in Kubernetes namespace `ai`
```bash
devspace use namespace ai
devspace deploy
```## Start
```bash
devspace dev
````.ipynb` files in `notebooks` will be synced to the `jupyter-notebook` container, edit files in the notebook, changes would sync back to local.
## Clean up
Delete all deployments
```bash
devspace purge
```## Reset
Revert the container back to the state when we `devspace deploy`
```bash
devspace run-pipeline stop-dev
```## Remove notebook output
```bash
brew install jupyter
```Set config for this repo once (see `.gitattributes`)
```bash
git config filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'
```