automatically start jupyter notebook with API call?
Hi, when i make a new pod via the web ui i can check the box 'start jupyter notebook' and it will start that up. Is there a way to pass this to the api when i hit rest.runpod.io/v1/pods to create a new pod?
12 Replies
(throws voice) Wow great question nick
hmm suree, i think its just an option to automatically set the jupyter_password env
try to deploy pod in the website with it, and without it
check on edit pod the (environment variables) for each pods you create with or without that
start jupyter
option
and then you can set the sam env variable into your rest api call!eh thats a good idea, but it doesnt work. env variables are empty

Oh I guess just create your own template that reads your pod env
So you can customize it
Or read runpod's template
i mean i guess...
if you'restuck somewhere in the process you can ask again
@nick did you get this to work? I'm curious, are you trying to bypass the Runpod webui via API in the command line?
i just have a workflow where i very regularly spin up the exact same gpu in the same region with the same container sizes and am sick of accidentally forgetting to click some checkbox in the web ui
like every time i train a model i want to grab an a40 from eu-se-1, train it, eval, then shut it down
tbh i imagine this is pretty common
i only want to do eu-se-1 because the canadian data center with the a40's still has a lot of issues, especially with multi gpu setups
which is a separate issue but its whatever
sorry i just realized you arent runpod staff. no i havent gotten it to work lol
I think we are trying to achieve the same thing. Im using Runpod for ComfyUI, and I need the same networkvolume, region, GPU, image. I can get it running via API, but Jupytyer never boots up.
🤷 idk they just dont expose it i think
You should have jupyter service installed in your image
I'd suggest you to just install jupyter on your pod or on your imge
I'm using runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04 as the pod template. Is the "Start Jupyter Notebook" option not a part of this image?
