/jupyter-notebook-devspace

A minimal jupyter notebook `devspace.yaml` with `openai` + `langchain` allow you to work on any Kubernetes cluster.

Primary LanguageJupyter NotebookMIT LicenseMIT

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

devspace use namespace ai
devspace deploy

Start

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

devspace purge

Reset

Revert the container back to the state when we devspace deploy

devspace run-pipeline stop-dev

Remove notebook output

brew install jupyter

Set config for this repo once (see .gitattributes)

git config filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'