Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter Notebook: Multiple notebook to one kernel?

I'm doing some complicated works with Jupyter Notebook, so the notebook is very long (https://github.com/cqcn1991/Wind-Speed-Analysis).

Sometimes, during the middle of the notebook, I want to do some additional analysis. Adding them directly into the current notebook (in the middle) may make it more complex, and breaks its currecnt structure. I think it would be amazing if I can simply open another notebook, connect it to the existing notebook's kernel, then to do the additional analysis.

Something may like

# In the new notebook
connect_to 'exisiting_notebook_name' # get access to the existing notebook
df.describe()
# ...
# some additional analysis works
like image 672
cqcn1991 Avatar asked Aug 20 '16 14:08

cqcn1991


People also ask

How do I open another Jupyter Notebook in the same kernel?

Running a Jupyter Notebook from Another Jupyter NotebookFrom the left Sidebar, select and right-click on the Jupyter notebook that has to be run from another notebook. From the context menu, select Copy Path. Open the Jupyter notebook from which you want to run another notebook. Click Run.

Can I use multiple kernels in Jupyter Notebook?

SoS Notebook is an extension to Jupyter Notebook that allows the use of multiple kernels in one notebook. More importantly, it allows the exchange of data among subkernels so that you can, for example, preprocess data using Bash, analyze the processed data in Python, and plot the results in R.

Can you run 2 Jupyter notebooks at the same time?

Multiple notebooks and kernels In jupyter Lab, you can have multiple notebooks open at the same time and in the same browser window. Also, you can arrange your notebooks as you like which gives more flexibility.


1 Answers

The scratchpad notebook extension sounds like exactly what you want.

like image 165
cco Avatar answered Oct 21 '22 02:10

cco