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.
Related
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 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.
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
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.
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.