An open API service indexing awesome lists of open source software.

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.

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'
```