Closed fedden closed 4 years ago
Hey just incase it helps, I've made a short dockerfile that reproduces the issue. Save the following to a file called Dockerfile
:
FROM continuumio/miniconda3:4.7.12
RUN conda install -y -c conda-forge jupyterlab
RUN conda install -y -c conda-forge nodejs
RUN git clone https://github.com/uber/deck.gl/
WORKDIR /deck.gl/modules/jupyter-widget
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.0.3 --no-build
RUN jupyter labextension install . --no-build
RUN jupyter lab build
CMD ["bash"]
You could run the following command in the same directory that the dockerfile is in to build and reporduce the error described above!
docker build -t test .
You may need to run yarn bootstrap
at deck.gl root first.
Thanks for the hint, that sorted it!
Just for readers: Running yarn bootstrap
failed due to jq
not being installed, but then running:
sudo apt-get install jq
Sorted that issue, and after that the widget built!
Thanks for the help @Pessimistress!
What I've noticed now is after calling the show()
method of my pydeck.Deck
instance, the output for the notebook cell just hangs with:
Loading widget...
If I then inspect the console in the browser, I can see this output when executing the cell:
I'd be appreciative if you have any thoughts here
I think (from my limited understanding of the jupyter ecosystem and tooling) that the deck.gl extension is installed:
(dev) ➜ ~ jupyter labextension list
JupyterLab v1.1.4
Known labextensions:
app dir: /home/tollie/miniconda3/envs/mogees/share/jupyter/lab
@deck.gl/jupyter-widget v8.0.0-beta.2 enabled OK*
@jupyter-widgets/jupyterlab-manager v1.0.3 enabled OK
local extensions:
@deck.gl/jupyter-widget: /home/tollie/deck.gl/modules/jupyter-widget
Are you installing pydeck from its source in your Dockerfile? You seem to be building the frontend widget but pydeck doesn't appear present.
pydeck 0.2.0 was released, which should solve this issue.
As an example, this Dockerfile works–
FROM jupyter/minimal-notebook
RUN pip install jupyterlab && \
jupyter serverextension enable --py jupyterlab --sys-prefix && \
pip install pydeck && \
jupyter labextension install @jupyter-widgets/jupyterlab-manager && \
jupyter labextension install @deck.gl/jupyter-widget
EXPOSE 8888
CMD ["jupyter", "lab"]
To build and run:
docker build -t pydeckDemo:latest .
docker run -p 8888:8888 pydeckDemo:latest jupyter lab --ip 0.0.0.0
Description
Hey folks - awesome library, really loving using it.
I am trying to install the jupyter-lab extension that comes with pydeck, but it crashes on the command:
Repro Steps
The first thing I do is clone deck.gl, which is incidentally on branch
master
. Next as per the instructions found here I change directory to the widget directory, and attempt to build it as per the instrctions from the README.As you can see the command
jupyter lab build
fails, and dumps a log to/tmp/jupyterlab-debug-o4jc1of3.log
. The following is the contents of the log:Environment (please complete the following information):
Logs