Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript output is disabled in JupyterLab (bokeh) #64

Open
ydoJ opened this issue Mar 3, 2023 · 5 comments
Open

JavaScript output is disabled in JupyterLab (bokeh) #64

ydoJ opened this issue Mar 3, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@ydoJ
Copy link

ydoJ commented Mar 3, 2023

Describe the bug

context
When I use 'Live Code' to run a cell that involves bokeh,

expectation
I expected the plot to show like it did a week ago.

bug
But instead I get the following error message: "JavaScript output is disabled in JupyterLab".

This is taken from the documentation after re-running the cells, but I get the same behavior in my book too.
image

problem
This is a problem for people using bokeh in their code cells because the plots are not showing up.

Reproduce the bug

  1. Go to a code cell that uses bokeh. For example, https://jupyterbook.org/en/stable/interactive/interactive.html#bokeh.
  2. Activate 'Live Code' by clicking the rocket symbol at the top of the page.
  3. Run the cells.

List your environment

> jupyter-book --version
Jupyter Book      : 0.14.0
External ToC      : 0.3.1
MyST-Parser       : 0.18.1
MyST-NB           : 0.17.1
Sphinx Book Theme : 0.4.0rc1
Jupyter-Cache     : 0.5.0
NbClient          : 0.5.13
@ydoJ ydoJ added the bug Something isn't working label Mar 3, 2023
@welcome
Copy link

welcome bot commented Mar 3, 2023

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@stevejpurves
Copy link
Member

stevejpurves commented Mar 3, 2023

Thanks for reporting!

Ok, so this was working recently for you -- just to confirm; have there been any upgrades or redeployments at of your site recently, or it's all as it was when this was working for you?

There has not been an underlying thebe release recently, but sphinx-thebe was released recently, not sure how that can impact this if thebe has not changes but worth investigating...

btw - I suggest we transfer this over the sphinx-thebe

@welcome
Copy link

welcome bot commented Mar 3, 2023

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@stevejpurves stevejpurves transferred this issue from jupyter-book/jupyter-book Mar 3, 2023
@stevejpurves
Copy link
Member

On the link provided in the OP - there are javascript errors in the console, and the bokeh script appears to load the first time around, but then fails to attach to the DOM.

@ydoJ
Copy link
Author

ydoJ commented Mar 4, 2023

Thank you for looking into this. There have been redeployments of my site, but nothing in particular related to thebe or bokeh that might have caused it to stop working. I included the link to the documentation because I assumed that hasn't changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants