Base repo for running Jupyter Notebooks on the Jamsocket platform
- Fork this repository.
- Add your notebook(s) to the
/notebookdirectory. - Add your notebook's python dependencies to
requirements.txt(alternatively, if you preferpipenv, add them withpipenv installand then runpipenv run freeze). - Replace
/notebooks/hello-jamsocket.ipynbinDockerfilewith the path to the notebook you'd like to be automatically loaded. If you want the user to see a file listing of the/notebooksdirectory by default, remove that line entirely. - Run
./freeze.shto create afreeze.txtfile fromrequirements.txt. This pins the version of all of the dependencies of the libraries inrequirements.txt. - Set your account name as the
JAMSOCKET_ACCOUNTvalue in your GitHub secrets. - Generate an access token at app.jamsocket.com/settings and set it as the
JAMSOCKET_TOKENvalue in your GitHub secrets. (Sign up for a Jamsocket account if you don’t already have one.) - Push your repo to your GitHub account, and your Jupyter Notebook container will be automatically built and pushed to Jamsocket.
- Get a Spawn URL from us. (Open this URL in a browser to start a new notebook instance.)
docker build -t jupyter-notebook .
docker run -p 8080:8080 --env PORT=8080 -it jupyter-notebook
open localhost:8080