Code Monkey home page Code Monkey logo

Comments (8)

LukaPitamic avatar LukaPitamic commented on May 19, 2024 2

Same here. We want to develop dash apps in jupyterlab hub (tljh).
image

from jupyter-dash.

zakandrewking avatar zakandrewking commented on May 19, 2024

We are seeing a similar issue. Jupyterhub never responds to this request:

_dash_comm.send({

from jupyter-dash.

datainvestor avatar datainvestor commented on May 19, 2024

Any progress on this issue?

from jupyter-dash.

LukaPitamic avatar LukaPitamic commented on May 19, 2024

me waiting also ;)

from jupyter-dash.

gravelrider avatar gravelrider commented on May 19, 2024

Same here.
Are there any updates on this issue?

from jupyter-dash.

edmundhighcock avatar edmundhighcock commented on May 19, 2024

+1

from jupyter-dash.

edmundhighcock avatar edmundhighcock commented on May 19, 2024

I have a docker MWE to replicate this:

FROM python@sha256:743d52e1c66f456f40d1e673fe580d0ebda7b97a926c81678dedfed2d4a3fd31

RUN apt update

# Install jupyterhub
RUN apt install -y nodejs npm && pip install jupyterhub && \
    npm install -g configurable-http-proxy && pip install jupyterlab

RUN pip install jupyter-dash && jupyter lab build && \
    pip install jupyter-server-proxy && \
    pip install jupyter-dash && \
    jupyter lab build

RUN mkdir -p /jupyter_keys && \
    cd /jupyter_keys && \
    openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -nodes -subj "/C=IE/ST=County Dublin/L=Dublin/O=MyOrg/OU=JupyterPeeps/CN=Jupyter Hub" 

RUN useradd testuser && echo "testuser:testpassword" | chpasswd && mkdir -p /home/testuser && chown testuser /home/testuser
CMD jupyterhub --ip 0.0.0.0 --port 443 --ssl-key /jupyter_keys/key.pem --ssl-cert /jupyter_keys/cert.pem  &  sleep 1720d

Build this dockerfile, then launch it, connect as testuser and try running this in a new notebook:

from jupyter_dash import JupyterDash

JupyterDash.infer_jupyter_proxy_config()

from jupyter-dash.

psavery avatar psavery commented on May 19, 2024

It appears that about a year ago, ipykernel changed several functions into coroutines. That includes this function being called in jupyter-dash.

Thus, that function call needs to be changed to maybe something like this:

loop = asyncio.get_running_loop()
loop.run_until_complete(kernel.do_one_iteration())

That would hopefully fix it.

For now, I'm just downgrading ipykernel to 5.5.4 (the version immediately before that change) and the jupyter dash example seems to work...

from jupyter-dash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.