Jupyter-lab: The 'min_open_files_limit' trait of a ServerApp instance expected an int, not the NoneType None - jupyter-lab

I installed jupyter notebook using: pip install jupyterlab and tried to run it using : jupyter-lab but I'm jupyter lab is not getting launched.
Command prompt is getting stuck after the following output:
[I 2021-09-21 00:20:30.717 ServerApp] jupyterlab | extension was successfully linked.
[W 2021-09-21 00:20:30.749 ServerApp] The 'min_open_files_limit' trait of a ServerApp instance expected an int, not the NoneType None.

This warning was fixed in jupyter_server v1.11.1 by #587. Please upgrade jupyter_server to get the fix:
# if you use pip:
pip install -U "jupyter_server>=1.11.1"
# or, if you use conda:
conda install -c conda-forge "jupyter_server>=1.11.1"

Related

unable to install matplotlib in Ubuntu 20.04

I am using the OS Ubuntu 20.04 and I have installed Anaconda Python. I am following a course in orielly and the instructor asked to execute the below 2 commands, on trying it I am getting the respective error message,
command:
jupyter labextension install jupyter-matplotlib
error:
An error occured.
ValueError: "jupyter-matplotlib" is not a valid npm package
command :
jupyter labextension install #jupyter-widgets/jupyterlab-manager
error:
An error occured.
ValueError: "#jupyter-widgets/jupyterlab-manager" is not a valid npm package
I have installed nodejs already, for your information.
Open Anaconda prompt and just run the command:
pip update --all
pip install matplotlib

Jupyter Notebook: Terminals not available

Yesterday I had problems launching Jupyter Notebook (all of sudden I got the notification, that python was not working properly, but before everything was working well...). So I decided to upgrade to the latest python version. And now I can launch jupyter notebook, however I get this error message:
Terminals not available (error was No module named 'winpty.cywinpty')
I followed the setps descriebd here:
But still get this error message. Is there a way, to solve this? Or does anyone have an advise?
EDIT: This is what I get when I run jupyter notebook from the cmd:
[W 14:17:04.451 NotebookApp] Terminals not available (error was No module named 'winpty.cywinpty')
[I 14:17:05.073 NotebookApp] JupyterLab extension loaded from C:\Users\Fati\AppData\Local\Programs\Python\Python39\lib\site-packages\jupyterlab
[I 14:17:05.073 NotebookApp] JupyterLab application directory is C:\Users\Fati\AppData\Local\Programs\Python\Python39\share\jupyter\lab
[I 14:17:05.323 NotebookApp] Serving notebooks from local directory: C:\Users\Fati
[I 14:17:05.324 NotebookApp] Jupyter Notebook 6.1.5 is running at:
[I 14:17:05.326 NotebookApp] http://localhost:8888/?token=8e859b3108946a8310e1e5ceed6d2186c8731261fc5161eb
[I 14:17:05.330 NotebookApp] or http://127.0.0.1:8888/?token=8e859b3108946a8310e1e5ceed6d2186c8731261fc5161eb
[I 14:17:05.331 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:17:05.448 NotebookApp]
I had the same problem using Python 3.9 and resolved it by installing wheel and pywinpty using pipwin:
pip install pipwin
pip uninstall wheel
pipwin install wheel
pip uninstall pywinpty
pipwin install pywinpty
After restarting Jupyter the error is gone.
Inspired by Scott Roberts' answer, using Python 3.9 I resolved the issue by updating pywinpty from version 0.5.7 to version 1.1.3:
pip install --upgrade pywinpty
I had the same problem. I just resolved by re-installing Jupyter notebook in Conda
conda install jupyter notebooks

importerror : cannot import name 'secure_write' while updating python in conda evironment

I want to update my python version to python 3.6 , I am using conda environment therefore used the following command on the terminal :
conda install python=3.6
while installation I'm encountered with this error : importerror : cannot import name 'secure_write'
Any help???
Upgrade the jupyter client
pip install --upgrade jupyter_client
This error was reported for jupyter client at https://github.com/jupyter/notebook/issues/5014
First I did
pip uninstall jupyter_client
then
pip install jupyter_client
this helped me fix the error
This made is simple.
conda install -c conda-forge jupyterlab

TensorFlow installation denied due to user permissions

I tried to run tensorflow on Jupiter netbook, python 2.7 but I realized it requiered 3.6 pythong version so I followed this steps :
Installing with Anaconda
Create a conda environment named tensorflow by invoking the following command:
C:> conda create -n tensorflow pip python=3.5
Activate the conda environment by issuing the following command:
C:> activate tensorflow
(tensorflow)C:> # Your prompt should change
Issue the appropriate command to install TensorFlow inside your conda environment. To install the CPU-only version of TensorFlow, enter the following command:
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow
To install the GPU version of TensorFlow, enter the following command (on a single line):
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow-gpu
**
But this line of code
**
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow
Show me the this error:
Could not install packages due to an EnvironmentError: [WinError 5]
Access is denied:
'C:\Users\idan\AppData\Local\Continuum\anaconda2\envs\tensorflow\Lib\site-packages\numpy\.libs\libopenblas.BNVRK7633HSX7YVO2TADGR4A5KEKXJAW.gfortran-win_amd64.dll'
Consider using the --user option or check the permissions.
I tried to change user permission and also open anaconda cmd as administrator but it doesn't help.
This answer has the necessary information for the pip permission error. It can be resolved with the --user flag, which is a conservative approach.
There is another way to install tensorflow for conda-environment. Write below on the Anaconda Command Prompt after activating environment.
conda install tensorflow
Test it :
python
import tensorflow as tf
And it should work.
I had the similar problem. The following solved mine.
Try updating the LD_LIBRARY_PATH using the following:
sudo ldconfig /usr/local/cuda/lib64
I found the solution from https://abdel.me/2017/09/28/aws-ami-deep-learning-keras/

pip3 not found in Tensorflow environment: "-bash: pip3: command not found"

I'm following instructions to create a Tensorflow environment for a Machine Learning course, with python 3.5, ipython and jupyter.
I created a Tenserflow environment with python 3.5 using conda create -n tensorflow python=3.5. That worked.
Then I ran conda install -c conda-forge tensorflow. That also worked.
Then I installed ipython with conda install ipython, which also worked fine.
However, when I ran pip3 install jupyter, I got error message bash: pip3: command not found.
I found a few posts about variations on pip3 problems and (within the Tensorflow environment):
When I type pip --version, it tells me I have version 8.1.2
When I try locate pip3, I get WARNING: The locate database (/var/db/locate.database) does not exist
I tried using pip-3.2 as recommended in one of the other questions' solutions (which worked for that OP), and I get the same command not found error message.
I'm using OS X 10.8.5
pip is different from pip3. So you might need to install it if it can't be found. If it is installed run this:
sudo updatedb
this will update the locate function.
if you're using conda why do you want to install it with pip anyways?
Jupyter is the new version of ipython. running conda install ipython installs ipython (now jupyter).

Resources