pip command to downgrade jupyter notebook - pip

I installed jupyter notebook with pip using python -m pip install jupyter and nbextensions using pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install
My current jupyter-notebook version is 6.1.6 which makes nbextensions to show blank tab as per this thread . However the solution is to downgrade the notebook to 6.1.5 version.
How do I do that using pip?

pip install notebook==6.1.5 will downgrade the jupyter notebook

You can specify a version number:
pip install jupyter-notebook==6.1.5

Related

How to update jupyterlab using conda or pip

How do you update jupyterlab using conda or pip?
I understand that conda update jupyter updates jupyter notebook (I have Anaconda), but I'm not sure this takes care of jupyterlab as well.
conda update jupyter will not automatically update jupyterlab. You have to explicitly request an update of jupyterlab:
conda update jupyterlab
You may need to specify conda-forge:
conda update -c conda-forge jupyterlab
EDIT:
Trying to update to 3.0, conda update jupyterlab did not work for me (result of jupyter lab --version still was 2.x) and when I tried to specify conda-forge or jupyterlab=3.0 the command hung for too long. I gave up after almost an hour of solving environment. The following worked for me from the Anaconda shell:
conda uninstall jupyterlab
conda install -c conda-forge jupyterlab=3
I was getting frustrated by trying to update Jupyterlab on Anaconda and failing.
Eventually I realized that this line of code works for me:
conda update --all
If you prefer using pip:
pip install --upgrade jupyterlab
Or if you'd like a specific version:
pip install jupyterlab==1.2.4
Depending on your rights, you might also need to add a --user in there:
pip install jupyterlab==1.2.4 --user
After a lot of back-and-forth with the above methods with conda, none of which worked for me to upgrade nodejs to > v14.x - below is the solution that worked for me, thanks to the link below:
conda search nodejs # Search nodejs version under conda.
conda install nodejs=14.7.0 -c conda-forge
https://www.programmersought.com/article/39027053707/
Experience has taught me, that when you need to upgrade multiple pip packages, the best way is to do it all at once (pip will find a good combination of versions and requirements).
So what I did is this.
Figure out what jupyterlab uses (your output may differ):
$ jupyter --version
Selected Jupyter core packages...
IPython : 8.9.0
ipykernel : 6.20.2
ipywidgets : 8.0.4
jupyter_client : 8.0.1
jupyter_core : 5.1.5
jupyter_server : 2.1.0
jupyterlab : 3.5.3
nbclient : 0.7.2
nbconvert : 7.2.9
nbformat : 5.7.3
notebook : 6.5.2
qtconsole : 5.4.0
traitlets : 5.8.1
Put all those in a single line and run --upgrade:
$ pip install --upgrade IPython ipykernel ipywidgets jupyter_client jupyter_core jupyter_server jupyterlab nbclient nbconvert nbformat notebook qtconsole traitlets
All went smoothly.

getting unsatisfiable error while installing mxnet on windows. I am using ANACONDA 5.1.0 VERSION AND PYTHON 3.5.3 VERSION

I wanted to install MXNET using commands conda install -c anaconda mxnet and conda install mxnet, but I am getting unsatisfiable error as show in images.
'conda install -c anaconda mxnet':
'conda install mxnet':
You can find the install instruction on the website:
Select your preferred configuration, for example on windows, install mxnet using
pip install mxnet

Cannot install jupyter notebook

In windows 7, I try to install jupyter notebook using:
pip3 install jupyter
But I get error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\AppData\Local\Temp\pip-build-5in28fbw\pywinpty\
Best thing to do is to install Anaconda here
It includes its own "conda" terminal window for "windows", which will make it a lot easier for you to invoke jupiter notebook from the conda terminal, regardless of which folder you are in
First update if using linux system:
sudo apt-get update
sudo apt-get upgrade
Restart the system and try below steps:
Installing Jupyter with pip
As an existing or experienced Python user, you may wish to install Jupyter using Python’s package manager, pip, instead of Anaconda.
If you have Python 3 installed (which is recommended):
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install jupyter
If you have Python 2 installed:
sudo python -m pip install --upgrade pip
sudo python -m pip install jupyter
Congratulations, you have installed Jupyter Notebook! To run the notebook, run the following command at the Terminal (Mac/Linux) or Command Prompt (Windows Run CMD in Admin):
jupyter notebook
Update your setuptools and pip first then retry:
pip install --upgrade setuptools pip

Tensorflow installation on Windows 10, error 'Not a supported wheel on this platform'

This question is for a Windows 10 laptop. I'm currently trying to install tensorflow, however, when I run:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl
I get the following error:
tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl is not a supported wheel on this platform.
I am trying to install the cpu-version only of tensorflow in an Anaconda 4.3.0 version. I had python 3.6.0 and then I downgraded to 3.5.0, none of them worked.
I also had same problem when I installed anaconda 4.3 version
Here is my solution.
Instead of using Anaconda3 4.3, install Anaconda3 4.2(Anaconda3-4.2.0-Windows-x86_64.exe)
Type on command line(If you are using GPU version)
pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl
Typeon command line(If you are using CPU only)
pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl
I'm working on win10 with python version=3.5.2, 64 bit
You can use same version of anaconda and execute this command
conda create -n tensorflow python=3.5
activate tensorflow
pip install tensorflow-gpu
It worked for conda 4.0.8
So are you sure you correctly downgraded your python? Run this command on command line pip -V. This should print the pip version and the python version.
Inside your Anaconda environment, try running this:
pip install --upgrade tensorflow
This will do the job. The issue was discussed here also.
Here is the screenshot of how this helped me:
If you have python3 on Windows insatalled, you can use the following command(non GPU):
pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.10.0-py3-none-any.whl
Worked for me.

Why am I unable to update ipython?

I'm unable to update the ipython on an Ubuntu 14.04 machine. The actual installed version is 1.2.1
I've tried:
$ sudo pip install --upgrade ipython[all]
But it returns
Requirement already up-to-date: ipython[all] in /usr/local/lib/python2.7/dist-package
And the version remains the same. I'm not sure where I messed up.
Thanks
I guess the Ubuntu package ipython is also installed so you have actually 2 versions of ipython installed. You can try to uninstall the Ubuntu package
sudo apt-get uninstall ipython
Then you might have to upgrade Ipython with pip.

Resources