0

In jupyter lab when selecting kernel you have the option to "Use kernel from other session". The same functionality does not exist for jupyter notebook and I could not find any tool to achieve this.

I also looked at the jupyter REST API to see if this is possible to manually specify a kernel for the session. The most relevant section I found is Patch /api/sessions/{session} which seems to just allow changing the 'name' of the session.

Is there any way to share the kernel between multiple sessions in jupyter notebook?

2
  • Have you seen this thread here? By the way, the underlying teach components of the next version of what is considered Jupyter notebook now will be based on JupyterLab, see here. That may open up more possibilities than the current classic Jupyter notebook interface allows. And abilities such as you are asking for are part of why JupyterLab became the next generation of Jupyter. So it was already made available in the ecosystem. Commented Apr 3, 2023 at 21:30
  • 1
    @Wayne Thank you for the links! I tried one of the alpha releases of notebook v7 and I can change the kernel in jupyter lab and then use jupyter "notebook" for which the same kernel is used. That seems good! The only drawback is that some of the extensions don't work in this version (even extensions like ToC which are supposed to work are not working for some reason) Commented Apr 5, 2023 at 7:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.