Displaying graphviz images in a notebook
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 07:55 AM
Hi,
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:
https://github.com/pm4py/pm4py-core/blob/release/notebooks/3_process_discovery.ipynb
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:
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)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?