I installed jupyter via pip
pip install jupyter
I can start it with
jupyter notebook
but (chrome and iexplore) cast an MIME error
The AppData/Roaming/jupyter/runtime folder only contains some json and html files, nothing more.
I also tried
pip uninstall jupyter
pip install jupyter
PS: I currently use
Python 3.7.2
pip 19.0.3
jupyter 4.4.0
So apparently this issue is known. For everybody landing here instead of github, here is the solution
https://github.com/jupyter/notebook/issues/4467
The problem is in the notebook package, not jupyter.
Related
I recently upgraded from Python 3.8.5 to Python 3.11.2. I updated my pip and pip3 to use the correct directory. However, when I run my previously existing code from Jupyter notebook, I get: "ModuleNotFoundError: No module named 'requests'". I tried uninstalling and installing requests, updating Jupiter notebook, and installing requests again using brew and nothing worked. The same goes for the Ta-lib library. Was wondering what I was doing wrong thanks.
I'm trying to import a module (batman, for model transits) in jupyter notebook, but its telling me file not found. However when I use the anaconda terminal it imports without issues
This is the error I get from Jupyter Notebook
I've tried reinstalling the package, and I've tried to find a kernel in which it works, but I'm not sure how to go about that
any help is appreciated
Try checking if the module installed properly by running this:
python -c 'import batman; batman.test()'
the batman module also seems to have some issues when installing on windows.
Read this github if you're on windows https://github.com/lkreidberg/batman/issues/26
I've faced the same issue when I use Jupyter in an Anaconda environment. Jupyter Notebook doesn't use the same kernel as Anaconda and I had to specify it manually.
What you can do is comparing the Python version on your Anaconda environment by running this command in your shell:
python --version
And in your Notebook :
import sys
print(sys.version)
Are the versions different ? If so, you must add your Anaconda kernel to your Notebook :
ipython kernel install --name "local-anaconda-env" --user
Then select it in your Notebook.
I was facing the same issue in VSC. What I did is that first I moved the folder(In your case batman) to where VSC had been installed on my laptop. Then I changed the default directory to where VSC was installed on my laptop by running the following code in VSC.
import os
os.chdir("The path where VSC is installed")
Also If you could try to do the code in a python file instead of jupyter notebook
In a cell within your notebook run the following:
%pip install batman-package
Based on here.
And the use of modern pip install magic to handle installing to correct enviornment from inside a notebook, see here.
For others, hitting here and not seeing what they want/expect.
Above is for batman:
Bad-Ass Transit Model cAlculatioN. Associated Github Repo is here, and Python Package Index page.
This is a poor name for a package as at least three developers have claimed this. Also see:
Anaconda install for Batman at conda-forgeBayesian Analysis Tool for Modelling and uncertAinty quaNtification
BATMAN: A Python deployment toolbelt -Batman 0.7.0 at the Python Package Index
Maybe those links will help you.
I was recently using Jupyter lab and decided to update my pandas version from 1.2 to the latest (1.4). So I ran 'conda update pandas' which seemed to work fine. However when I then launched Jupyter lab in the usual way 'jupyter lab' and tried to open the workbook I had just been working on I got the below error:
Unreadable Notebook: C:\Users...\script.ipynb TypeError("init() got an unexpected keyword argument 'capture_validation_error'")
I am getting this same error when trying to open any of my .ipynb files that were previously working fine. I can also open them fine in jupyter notebook, but for some reason they don't work in Jupyter lab anymore. Any idea how I can fix this?
Thanks
It turns out that a recent update to jupyter_server>=1.15.0 broke compatibility with nbformat<5.2.0, but did not update the conda recipe correctly per this Github pull request.
It is possible that while updating pandas, you may have inadvertently also updated jupyterlab and/or jupyter_server.
While we wait for the build with the merged PR to come downstream, we can fix this dependency issue by updating nbformat manually with
conda install -c conda-forge nbformat
to get the newest version of nbformat with version >=5.2.
I had the same issue. I had installed jupyterlab using conda.
conda install -c conda-forge jupyterlab
and I could not open any notebook (old ones as newly created). What fixed my issue was to uninstall jupyterlab and jupyter and then reinstall jupyter lab.
conda remove jupyterlab
conda remove jupyter
conda install -c conda-forge jupyterlab
i installed python 3.9 and then installed anaconda for use jupyter notebook.
why all the packages than i install using pip install selenium (for ex) doesnt work in jupyter notebook?
all the packages installed using pip install must work but didnt
HELP ME PLEASE
Thnks you
This must be due to jupyter notebook and python (in the terminal) using two different installations of python. Jupyter notebook generally uses anaconda, which is not the default in the terminal. Then, any libraries installed won't reflect in anaconda.
You can either move the anaconda installation to PATH, or can run !pip install [library] in the jupyter notebook.
I have installed lxml and pillow using pip install lxml and pip install pillow and cmd is showing that I have successfully installed lxml and pillow but on importing lxml and pillow in jupyter notebook, it is saying that library not found:
jupyter notebook:-
Please help me to resolve this issue.
This question is asked so often all the time. With variations in the use of PyCharm as well. My recommendation for using Jupyter Notebook is to install any package within the notebook itself. In your case, create a cell containing:
!pip install lxml
!pip install pillow
After the installation is complete, you can safely remove it. You only need to install them once. You see? As simple as that. So, you are no longer need to think of using a different environment. It's easier if you are still a beginner. Then start learning all about the Python environment: https://docs.python.org/3/tutorial/venv.html and of course, not forget to mention about operating system path in case you have multiple version of Python (from Anaconda, the Microsoft Store, and Python official installer).