<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Displaying  graphviz images in a notebook in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14800#M791</link>
    <description>&lt;P&gt;Thanks @Prabakar Ammeappin​&amp;nbsp;I actually had followed that article and have this in my first cell in the notebook:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%sh&lt;/P&gt;&lt;P&gt;#sudo apt-get install -y python3-dev graphviz libgraphviz-dev pkg-config&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this in the next cell:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%pip install pm4py&lt;/P&gt;&lt;P&gt;%pip install pygraphviz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think it's installed but no luck &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2022 08:20:06 GMT</pubDate>
    <dc:creator>Rob_S</dc:creator>
    <dc:date>2022-07-08T08:20:06Z</dc:date>
    <item>
      <title>Displaying  graphviz images in a notebook</title>
      <link>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14796#M787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm experimenting with process mining in a Databricks notebook using the OSS library PM4PY. I've been working through some tutorials and the notebook they provide on Github:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/pm4py/pm4py-core/blob/release/notebooks/3_process_discovery.ipynb" target="test_blank"&gt;https://github.com/pm4py/pm4py-core/blob/release/notebooks/3_process_discovery.ipynb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've installed all dependencies (I think) and the below code runs in a cell with no errors but I don't see the actual image:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import pandas as pd
import pm4py
import graphviz
df = pm4py.format_dataframe(pd.read_csv('/dbfs/FileStore/shared_uploads/[username]/testfile-1.csv', sep=';'), case_id='case_id',activity_key='activity',
                             timestamp_key='timestamp')
bpmn_model = pm4py.discover_bpmn_inductive(df)
pm4py.view_bpmn(bpmn_model)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It uses graphviz for display, I'm presuming that its output might not be supported in DBX notebooks. I've seen some similar(ish) problems but not found a solution. Any thoughts/help? &lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 14:55:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14796#M787</guid>
      <dc:creator>Rob_S</dc:creator>
      <dc:date>2022-07-04T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying  graphviz images in a notebook</title>
      <link>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14797#M788</link>
      <description>&lt;P&gt;If you have installed graphviz then it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://kb.databricks.com/libraries/install-pygraphviz.html" target="test_blank"&gt;https://kb.databricks.com/libraries/install-pygraphviz.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 15:20:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14797#M788</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-07-05T15:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying  graphviz images in a notebook</title>
      <link>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14798#M789</link>
      <description>&lt;P&gt;Hi @Robert Stanton​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like Prabakar mentioned, you will need to install the library first to be able to use it. In Addition to @Prabakar Ammeappin​&amp;nbsp;response, please check the following docs &lt;A href="https://docs.databricks.com/libraries/index.html" target="test_blank"&gt;https://docs.databricks.com/libraries/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 16:50:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14798#M789</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-07-05T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying  graphviz images in a notebook</title>
      <link>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14800#M791</link>
      <description>&lt;P&gt;Thanks @Prabakar Ammeappin​&amp;nbsp;I actually had followed that article and have this in my first cell in the notebook:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%sh&lt;/P&gt;&lt;P&gt;#sudo apt-get install -y python3-dev graphviz libgraphviz-dev pkg-config&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this in the next cell:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%pip install pm4py&lt;/P&gt;&lt;P&gt;%pip install pygraphviz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think it's installed but no luck &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 08:20:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14800#M791</guid>
      <dc:creator>Rob_S</dc:creator>
      <dc:date>2022-07-08T08:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying  graphviz images in a notebook</title>
      <link>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14801#M792</link>
      <description>&lt;P&gt;Thanks @Jose Gonzalez​&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read that doc and couldn't see any specific advice (but a little new to this). Any thoughts if I have installed everything? It all seems to work (no errors) just nothing displays &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 08:22:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14801#M792</guid>
      <dc:creator>Rob_S</dc:creator>
      <dc:date>2022-07-08T08:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying  graphviz images in a notebook</title>
      <link>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14802#M793</link>
      <description>&lt;P&gt;Thanks @Kaniz Fatma​&amp;nbsp;- replied above, help appreciated &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 08:23:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/14802#M793</guid>
      <dc:creator>Rob_S</dc:creator>
      <dc:date>2022-07-08T08:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying  graphviz images in a notebook</title>
      <link>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/63365#M3099</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/73422"&gt;@Rob_S&lt;/a&gt;&amp;nbsp;i am also in the same situation the code cell executes but no visualization how did you tackle this problem?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 10:17:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/displaying-graphviz-images-in-a-notebook/m-p/63365#M3099</guid>
      <dc:creator>rushank29</dc:creator>
      <dc:date>2024-03-12T10:17:54Z</dc:date>
    </item>
  </channel>
</rss>

