Forum Discussion

AleisterTJMraz's avatar
AleisterTJMraz
Regular Visitor
1 year ago
Solved

Support for GraphViz in Fabric Notebook

GraphViz is one of my favourite code-to-graph tools: https://graphviz.readthedocs.io/en/stable/examples.html#structs-revisited-py    You can create something like this:        The best par...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi AleisterTJMraz ,
    Thanks for reaching out to the Microsoft fabric community forum.

    Tried to pip install graphviz in my Fabric Notebook

     

     

     

     

     

     

    So as you can see from the shared images graphviz successfully got installed and got imported into fabric.

    The error you're encountering isn't due to a lack of Graphviz support in Fabric, but rather it's caused by this specific line in your code:

    graphviz.Digraph('structs', filename='structs_revisited.gv',
    
                         node_attr={'shape': 'record'})

     in your cell. Pyspark is not able to find structs_revisited.gv file.

    Please modify the code in such a way that pyspark is able to retieve the file information, so as to bypass the error.



    If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
    Thank you