# Python script node does not visualize the Bokeh library output

**URL:** <https://forum.knime.com/t/python-script-node-does-not-visualize-the-bokeh-library-output/72517>\
**Category:** KNIME Analytics Platform\
**Created:** [September 11, 2023, 2:05pm UTC](https://forum.knime.com/t/python-script-node-does-not-visualize-the-bokeh-library-output/72517 "2023-09-11T14:05:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [September 11, 2023, 9:39pm UTC](https://forum.knime.com/t/python-script-node-does-not-visualize-the-bokeh-library-output/72517/2 "2023-09-11T21:39:23Z")

</div>

@domerich welcome to the KNIME forum.

You can use local copies of the necessary bokeh libraries and even automatically load them from the source.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/6/f/6ff5d8417e54fe4c0188d4597bdf44a0b6ad7cc4.jpeg)

I have edited @st11 example and now send the JSON string via KNIME data stream to the graphic node. My impression was that the FlowVariable might not have enough characters for more complex charts. I also struggled with some binary data that sometimes was stored in the JSON string.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/5/d56e740ccebc08949ec05bf500ec0640696ba8e5.png)

I was not able to properly export the result as a SVG (or PNG) file but you could manually download the data.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/d/7d0b38d96b576d69729d6528b589c081c883b481.jpeg)

A nice experiment. I still would prefer the direct integration of Python graphics from Matplotlib and Seaborn ([Create an Interactive Dashboard with KNIME Components and Python | by Markus Lauber | Low Code for Data Science | Medium](https://medium.com/low-code-for-advanced-data-science/create-an-interactive-dashboard-with-knime-components-and-python-41ef794b1467)) over the (for me?) quite complicated implementation via the [Generic JavaScript View (JavaScript) – KNIME Community Hub](https://hub.knime.com/knime/extensions/org.knime.features.js.views/latest/org.knime.js.base.node.viz.generic3.GenericJSViewNodeFactory/).

> **[Send more complex Bokeh/JSON data thru KNIME data table to Generic JavaScript...](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_python_graphic_bokeh_json~mmj8oKkcralUBi4B)**
>
> Send more complex Bokeh/JSON data thru KNIME data table to Generic JavaScript View - USING local Bokeh ressources

[kn\_example\_python\_graphic\_bokeh\_json.knwf](https://forum.knime.com/uploads/short-url/cIPocfsWCtqadizKu7cxGFQgttI.knwf) (707.3 KB)

---

_[View the full topic](https://forum.knime.com/t/python-script-node-does-not-visualize-the-bokeh-library-output/72517)._
