Skip to content

Instantly share code, notes, and snippets.

@vishnuexe
Last active May 29, 2024 06:40
Show Gist options
  • Save vishnuexe/54a50871a6c2bd3dbeed61dbe338f216 to your computer and use it in GitHub Desktop.
Save vishnuexe/54a50871a6c2bd3dbeed61dbe338f216 to your computer and use it in GitHub Desktop.
Open 2 notebooks in vs code for interactive use without cluttering the main notebook
Open terminal and type jupyter notebook in terminal and copy localhost (it will also open Jupyter in browser by default but you don't need to keep running it).
Open preffered notebook in VS Code
Click on kernels in the top right corner > Select another kernel > existing jupyter server > enter URL hit enter
Open Second notebook in VS Code
Click on kernels in the top right corner > Select another kernel > select kernel with 1st notebook name
Voila! its done!
All the local variables from the 1st notebook wil be accessible in the 2nd notebook and vice versa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment