Skip to content

Tag: jupyter-notebook

Jupyter import Python function

I have the following folder structure The file foo.py contains In the jupyter notebook I have which gives a file not found error. What’s the cleanest way of fixing that? (If possible, I’d like to keep foo.py unchanged.) Answer You get this error because the path is relative to your working directo…

Jupyter-notebook failed to import python packages

I was trying to use numpy in Jupyter Notebook in a Python3 virtual environment, but the encountered an error. In terminal, I did: And on the Jupyter page, I created a new notebook and executed the followings And the resulting output is this: The package is already installed but still cannot be found…? I…