Import jupyter notebook into another notebook

Following these answers, I ran into the following msg error, after running the script:

import my_jupyter_notebook

importing Jupyter notebook from my_jupyter_notebook.ipynb
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
    <ipython-input-10-c029d443b8ae> in <module>()
     89 sys.meta_path.append(NotebookFinder())
     90 
---> 91 import my_jupyter_notebook

C:\Users\User\Anaconda3\lib\importlib\_bootstrap.py in 
_find_and_load(name, import_)

C:\Users\User\Anaconda3\lib\importlib\_bootstrap.py in 
_find_and_load_unlocked(name, import_)

C:\Users\User\Anaconda3\lib\importlib\_bootstrap.py in 
_load_unlocked(spec)

C:\Users\User\Anaconda3\lib\importlib\_bootstrap.py in 
_load_backward_compatible(spec)

<ipython-input-7-e4645f3088dd> in load_module(self, fullname)
     38         # load the notebook object
     39         with io.open(path, 'r', encoding='utf-8') as f:
---> 40             nb = current.read(f, 'json')
     41 
     42 

NameError: name 'current' is not defined

      

How can I solve this?

+3
python import python-3.x jupyter-notebook


source to share


No one has answered this question yet

See similar questions:

43
ipynb imports another ipynb file

or similar:

4829
How do I include a JavaScript file in another JavaScript file?
1762
How to import SQL file using command line in MySQL?
4
Running Jupyter Notebook from cmd raises ModuleNotFoundError: No module named pysqlite2
1
pyinstaller fails
0
Migration error on startup for Jupyter Notebook
0
getting error when opening jupyter notebook. Please, help
0
Jupyter notebook - Dead core
0
Cant Launch Jupyter Notebook
0
Import error when trying to start Jupyter notebook
0
Jupyter Notebook won't start python 3 - pygments import error



All Articles
Loading...
X
Show
Funny
Dev
Pics