Jupyter Lab dask-labextension not working
Installed both from:
A.) JupyterLab side bar/ Extension manager/ search for it / click install
B.) Command line rom my cd to anaconda installation guide
conda install jupyterlab nodejs
conda install -c conda-forge dask-labextension
jupyter labextension install dask-labextension
jupyter serverextension enable dask_labextension
ERROR
In juyerlab start up pop up error message - ERROR: "Dask Server Error Failed to list clusters: might the server extension not be installed/enabled?"
Than if I wait it offers me to make a build -> I click build
Build CompleteBuild successfully completed, reload page? click -> reload
Question
I have Token password locked my JupyterLab can that be the reason that this extension can not access it?
Tried Solutions
Deleting extension from JupyterLab side bar/ Extension manager
WARNING The JupyterLab development team is excited to have a robust third-party extension community. However, we do not review third-party extensions, and some extensions may introduce security risks or contain malicious code that runs on your machine.
Error communicating with server extension. Consult the documentation for how to ensure that it is enabled. Reason given: Error: 403 (Forbidden)
I have node js installed - https://stackoverflow.com/a/55450973/10270590
JupyterLab 3.0 has been released since this question was posted, and it makes installing extensions much easier. If you have dask distributed installed, you can: conda/pip install dask-labextension
Related
It is not possible for me to install the python library 'traffic' and get it running.
I'm trying to install the traffic library for python. So far, nothing has worked out.
When using pip install traffic the error "Could not build wheels for Cartopy, which is required to install pyproject.toml-based projects" is generated.
The command conda create -n traffic -c conda-forge python=3.9.7 traffic the installation is running several hours and evetually terminated.
I already downloaded Microsoft Visual Studio and ran conda create ... in there. The same error message came up.
Does anyone know how to install the traffic library
I'm trying to install gmaps 0.9.0 in my jupyter environment but when I try to run the example from the tutorial page it just gets stuck on "Loading widget...":
In chrome developer tools I can see something has clearly gone wrong:
Plugin 'jupyter-gmaps' failed to activate. Error: No provider for:
jupyter.extensions.jupyterWidgetRegistry.
Could not instantiate widget
Here are the lines in my dockerfile that I used to build gmaps:
RUN pip install gmaps==0.9.0
RUN jupyter nbextension enable --py --sys-prefix gmaps && jupyter lab build
Here's what I've tried:
With and without the %matplotlib inline (per this SO question)
Pip-installing versions 0.9.0 and 0.8.2
I've read this github ticket but couldn't see anything helpful: https://github.com/pbugnion/gmaps/issues/79 (they suggest restarting your computer, but I've rebuilt my docker container so that clearly hasn't helped in my case)
My jupyterlab version was 2.2.0. Updating to 3.0.14 resolved this issue for me.
I am trying to install many jupyter lab extension and always receive this error:
ValueError: Please install Node.js and npm before continuing installation. You may be able to install Node.js from your package manager, from conda, or directly from the Node.
js website (https://nodejs.org).
After a little bit of digging, I find out that I need to have nodejs and npm. However, after success fully installed both of them through pip, I still cannot run jupyter lab build. Some people say it's because nodejs must be installed through conda for it to be working properly.
Does anyone have any idea how I can still have nodejs and npm working without having had to install Conda? I am running on Windows btw.
I solved this issue by:
Installing Node.js on my machine (Windows).
Re-starting my computer.
After this, I was able to run jupyter labextension install without having conda installed.
I am relatively new to package management and have hit a roadblock getting pyarrow to install in my Windows x64 machine. Pyarrow docs say to use either
conda install -c conda-forge pyarrow
or
pip install pyarrow
https://arrow.apache.org/docs/python/install.html
conda command gives
PackagesNotFoundError: The following packages are not available from current channels:
pip command gives a very lengthy error dump under the heading
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
I tried both in a Python 3.7.9 and a Python 3.8.5 conda environment
since there is Github Jira discussion about this mattering at least
historically (https://issues.apache.org/jira/browse/ARROW-7076)
On the conda approach, I [successfully] added https://conda.anaconda.org/conda-forge/win-64 to current channels, but still 'Package not found' for pyarrow. I did this out of confusion that my list of channels appearing to be 32-bit specific, and my machine is 64-bit
There is ample evidence of pyarrow (2.0.0) presence in Conda-forge/win-64
Thanks for help in getting this package installed successfully.
This is the list of my current channels (with the 'win-64' one having been manually added) in the Conda 'Package not found' message
Current channels:
- https://conda.anaconda.org/conda-forge/win-32
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-32
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-32
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-32
- https://repo.anaconda.com/pkgs/msys2/noarch
- https://conda.anaconda.org/conda-forge/win-64
Will answer my own question: Arrow does not support 32-bit per per xhochy's response in this thread, so my 32-bit Anaconda Navigator running on my 64-bit hardware was the issue. I will work on getting knowledgeable enough to submit Pull Request to add to Apache documentation because it would have kept someone like me from being battered by this issue.
Solution for getting pyarrow installed in Windows
(Can also do from command line, but I'm working with consulting client who is based in Anaconda Navigator):
If running 32-bit Anaconda Navigator, uninstall it per their instructions Additional detail to their docs are that mentioned envs and pkgs subdirectories are typically at c:\users\username\anaconda3. First, throw these in the trash. Then uninstall Anaconda 32-bit using Add/Remove Programs in Windows as they instruct
Install 64-bit Anaconda from latest installer on their website
Open Anaconda Navigator and click on Environment
(to install for base(root) environment which will be default after fresh install of Navigator) choose Not Installed and click Update Index... button
pyarrow should show up in the updated list of available packages.
Click the Apply button and let it install
That's it to get pyarrow installed to be able to work with .feather format files in Windows Python
I did not test this directly in Conda (outside of Anaconda Navigator), but I presume that the Conda command line install instruction in Apache documentation works just fine if one is starting with 64-bit Python on their Windows machine. Also will mention that Mac OS X Python is apparently 64-bit by default, so this thread addresses a Windows-specific watchout.
Before install pyarrow, you need to install dependency in this page: https://www.microsoft.com/en-us/download/details.aspx?id=48145. Besides, if you have the installation of visual studio,you may have the packges like vc_redist-2015-2019, delete it to make sure you can install these two packages.
Is there any way to enable Jupyter-dashboard extensions on IBM DSX service?
Righ below is the extension I'm trying to install:
http://jupyter-dashboards-layout.readthedocs.io/en/latest/index.html
According to the documentation, the following commands should be executed on Jupyter to enable the extension:
pip install jupyter_dashboards
jupyter dashboards quick-setup --sys-prefix
jupyter nbextension install --py jupyter_dashboards --sys-prefix
jupyter nbextension enable jupyter_dashboards --py --sys-prefix
I've installed the Jupyter extension through the notebook itself with pip install, as shown right below:
However, when I've tried the next command required for the install I receive the following error:
I've initially though that it could be an issue regarding jupyter path, and tried the same command on the different jupyter binaries that are found on the container, but I still couldn't figure out why the install seems to not be working so far.
Is there any procedure in particular I should follow to install / enable extensions on IBM DSX?
In case this extension can'tbe installed, do you guys indicate any alternative for Jupyter-Dashboards extension that can be used to improve the notebook presentation?
Thanks in advance!
Felipe Silveira
Unfortunately, there is no way to enable notebook extensions for Jupyter notebooks running with an Apache Spark backend in DSX on Cloud. You're not the first to encounter this problem, see for example Enable nbextension on IBM Data Science Expeirence.