question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bokeh plots do not render with cell tags

See original GitHub issue

Describe the bug

context Bokeh plots do not render when pages contain cell tags example remove-cell or remove-input. This happens regardless of where the cell tags are, even if they are not within the cell that contains the bokeh plot.

expectation I expected the bokeh plots to render if cell tags are in the jupyter notebook.

bug Bokeh plots do not render, the below error is seen upon console inspection.

Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing

problem I have a lot of interactive plots that work when I do not use cell tags, but disappear when I add the cell tags, making my presentation currently unusable.

Reproduce the bug

A repository, with an example can be seen here. The above repository has a github page with the error here.

List your environment

$ jupyter-book --version
Jupyter Book      : 0.13.0
External ToC      : 0.2.4
MyST-Parser       : 0.15.2
MyST-NB           : 0.13.2
Sphinx Book Theme : 0.3.2
Jupyter-Cache     : 0.4.3
NbClient          : 0.5.13
$ bokeh info
Python version      :  3.8.12 (default, Oct 12 2021, 03:01:40) [MSC v.1916 64 bit (AMD64)]
IPython version     :  7.31.1
Tornado version     :  6.1
Bokeh version       :  2.4.2
BokehJS static path :  C:\Users\jeffrey.tilton\Anaconda3\lib\site-packages\bokeh\server\static
node.js version     :  v16.13.1
npm version         :  8.1.2
Operating system    :  Windows-10-10.0.19042-SP0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
agoose77commented, Jun 10, 2022

Yes. I thought I’d written that above, but for some reason I must have deleted it.

Technically this is either a bug or a missing feature in MyST-NB (see https://github.com/executablebooks/MyST-NB/issues/418 for related issue).

0reactions
jeff-tiltoncommented, Jun 10, 2022

I decided to close this after looking @agoose77 comments and related issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Bokeh/Jupyter Notebook: Charts don't render when ...
After I recently updated Bokeh, none of the charts I am creating are visible when I download a Jupyter notebook as HTML. I...
Read more >
Using with Jupyter — Bokeh 2.4.2 Documentation
Rendered cell output of the output_notebook call ensures that the BokehJS library loads. Otherwise, Bokeh plots will not work. If this cell's type...
Read more >
Cells which create bokeh plots do not get saved #29 - GitHub
I've encountered an issue where all cells which produce a bokeh plot in Jupyter Lab do not get saved. Versions $ jupyter labextension...
Read more >
Interactive Visualization with Bokeh - The Data Frog
Visualization is absolutely essential in data analysis, as it allows you to directly feed your data into a powerful neural network for unsupervised ......
Read more >
Plotting with Bokeh — HoloViews v1.15.3
Since bokeh plots are rendered within a browser window which can be resized ... stretching and scaling the height does not increase the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found