jupyter/jupyter_client

Render in Panel makes Jupyterlab unusable with 8.x upgrade

singharpit94 opened this issue · 5 comments

When upgrading from 7.x to 8.x (8.1.0), the render in panel which loads the panel output in an iframe within jupyterlab has stopped working. The greater concern is that once the render in panel is used once post that jupyterlab becomes unusable as such the server is blocked and not able to resolve any further request.

panel-bug

Environment:

  • Operating System and version: Linux
  • JupyterLab version: 3.6
  • jupyter-client: 8.1.0
  • jupyter-core: 5.2.0

Please note jupyter-core needs to be 5.x to make jupyter-client 8.x work in jupyterlab. Also there are no error logs or stack trace to know what and where things are broken.

Can you please check if this is something which can be fixed in jupyter_client or helps us debug more to resolve this issue.

@singharpit94 what versions of python, panel, and bokeh are you using?

I've tried to reproduce the error on a local machine using the environments below, but I cannot seem to get it to freeze like you have.

I have a few follow-up questions:

  1. Are both Jupyter and Bokeh/Panel running on the same machine?
  2. Can you post a gif of the development console? Specifically the Network tab and filter only for websockets (like below)?
websockets.webm

environments

using conda-forge

name: render-in-panel-conda
channels:
  - conda-forge
dependencies:
  # Development
  - jupyter_client==8.1.0
  - jupyter_core==5.2.0
  - jupyterlab==3.6.0
  - panel==0.14.4

using pip

name: render-in-panel-pip
channels:
  - conda-forge
dependencies:
  # Development
  - pip
  - pip:
      - jupyter_client==8.1.0
      - jupyter_core==5.2.0
      - jupyterlab==3.6.0
      - panel==0.14.4

I can confirm that if I change the websocket token, that the jupyter_server_extension will not render in JuptyerLab.

@singharpit94 what browser are you using?

  1. Are both Jupyter and Bokeh/Panel running on the same machine?

Yes

what browser are you using?

Chrome Version 111.0.5563.147

Does not look like I am getting anything in network tab on rendering in panel tab, let me know if I am missing anything.
panel-debug

@singharpit94 can you rebuild your environment and try again? I am not able to reliably reproduce the behavior you are encountering.