title: Bokeh import json_item serialized JSON in Jupyter
body: <p>Cross-post on Bokeh forums: <a href="https://discourse.bokeh.org/t/display-json-item-serialized-json-in-jupyter-notebook/7245/3" rel="nofollow noreferrer">https://discourse.bokeh.org/t/display-json-item-serialized-json-in-jupyter-notebook/7245/3</a></p>
  <p>I've serialized my Bokeh plot to json using <code>bokeh.embed.json_item</code>, as described in the documentation: <a href="https://docs.bokeh.org/en/latest/docs/reference/embed.html#bokeh.embed.json_item" rel="nofollow noreferrer">https://docs.bokeh.org/en/latest/docs/reference/embed.html#bokeh.embed.json_item</a></p>
  <p>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: <a href="https://docs.bokeh.org/en/latest/docs/user_guide/embed.html" rel="nofollow noreferrer">https://docs.bokeh.org/en/latest/docs/user_guide/embed.html</a></p>
  <p>One way to do it is by displaying an HTML object in the IPython notebook as follows:</p>
  <pre><code>from IPython.core.display import display, HTML
  html_plot = f'''
  &lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;script src=&quot;https://cdn.bokeh.org/bokeh/release/bokeh-2.2.3.min.js&quot;
          crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.2.3.min.js&quot;
          crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.2.3.min.js&quot;
          crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;myplot&quot;&gt;&lt;/div&gt;
    &lt;script&gt;
    item = {plot_json}
    Bokeh.embed.embed_item(item, &quot;myplot&quot;);
    &lt;/script&gt;
  &lt;/body&gt;
  '''
  display(HTML(html_plot))
  </code></pre>
  <p>However, this does not get me back the bokeh <code>Figure</code> object which I can manipulate.</p>