Display json_item serialized JSON in Jupyter notebook

What are you trying to do?

I’ve serialized my Bokeh plot to json using bokeh.embed.json_item, as described in the documentation: https://docs.bokeh.org/en/latest/docs/reference/embed.html#bokeh.embed.json_item

I now want to load it again in Python (Jupyter notebook). How do I do so? The documentation only mentions loading it using JavaScript and embedding it on a webpage: https://docs.bokeh.org/en/latest/docs/user_guide/embed.html

What is the equivalent of Bokeh.embed.embed_item(item); but using the Python SDK?

What have you tried that did NOT work as expected?

  • Passing it into Figure did not work.
  • Passing it into bokeh.embed.json_item did not work.

@Abhishek_Divekar If you cross-post to multiple forums, please include links in both directions so that an answer in one place is available to users in any of them. I have answered the SO question (re-ingesting exported JSON is still an open issue)

@Bryan I don’t seem to have enough rep to add more than 2 links. Here is the cross post from StackOverflow, thanks for answering: https://stackoverflow.com/q/66258054/4900327

1 Like

@Abhishek_Divekar thanks! I have also bumped your TL up from “new user” so the link limit should be gone