How does one run the notebooks in the Docker container? #53
-
Hi I use devcontainers for development all the time, but can't seem to figure out how to run the notebooks. Can you point me in the right direction please? I'm currently running the notebooks on Colab but would rather just run them all from my local machine and keep the repo up to date. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
|
Beta Was this translation helpful? Give feedback.
-
You could open and run them in Visual Studio code. Most people I know prefer it over Jupyter Lab. (Personally, while I use Visual Studio Code for basically all my coding, I do like Jupyter Lab UI a bit better though for notebooks; maybe muscle memory.)
I wish I had a good answer for that. Personally, I am not a big devcontainer user and just use conda for managing virtual environments and packages on my computer (https://github.com/rasbt/LLMs-from-scratch/tree/main/appendix-A/01_optional-python-setup-preferences). Maybe @rayedbw knows? |
Beta Was this translation helpful? Give feedback.
-
After following the instructions for the dev container setup for vscode, you will be able to run jupyter notebooks directly in vscode because the jupyter extension is already installed in the container. How I normally do this is to simply open a notebook in vscode and run a cell. VSCode will promt you to install If VSCode complains that is needs a python interpreter, hit Let me know if this helps. Else we can arrange a call and maybe I can screen share. |
Beta Was this translation helpful? Give feedback.
-
Hi @rasbt, @rayedbw ! Thanks for the help ! Turns out I was only missing this:
Everything working now. Thanks again! |
Beta Was this translation helpful? Give feedback.
Hi @cristobalmackenzie,
After following the instructions for the dev container setup for vscode, you will be able to run jupyter notebooks directly in vscode because the jupyter extension is already installed in the container.
How I normally do this is to simply open a notebook in vscode and run a cell. VSCode will promt you to install
ipykernel
which is needed by vscode. Once the installation completes, you're cell should run.If VSCode complains that is needs a python interpreter, hit
Ctrl + Shift + P
and start typing select interpreter. Press enter and select the/opt/conda/bin/python
interpreter.Let me know if this helps. Else we can arrange a call and maybe I can screen share.