Registered users can ask their own questions, contribute to discussions, and be part of the Community!
From this example,
# Create Digraph objectdot = Digraph()
# Add nodesdot.node('1')dot.node('3')dot.node('2')dot.node('5')
# Add edgesdot.edges(['12', '13', '35'])
# Visualize the graphdot
I would like to save this graph on a folder with a svg or png extension.
Hi @oscieux,Thank you for posting your sample code! To save your result to a managed folder, you can do something like this:
# for an existing folder named 'graphviz_folder'
folder = dataiku.Folder('graphviz_folder')
file_path = folder.get_info()['path'] + '/graphviz_filename'
Then in your managed folder you'll see:
This will work for folders on your local filesystem. Let me know if you have any questions about this. Thanks,Sarina
Post a Question