Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

creating UML charts by Pylint/pyreverse within Jupyter labs / console

I have tried many examples and it fails, I am looking for a simple flow for class dependencies UML chart

pip Installed pylint and graphviz and imported,

the simplest line I found was:

 pyreverse -o png -p Project /path/train_loop.py

got: SyntaxError: invalid syntax (pointing at the png of last statement)

i generally work with jupyter labs - i am looking for a solution at the console, notebook or maybe a module that performs this.

like image 801
OrielB Avatar asked Sep 06 '25 21:09

OrielB


1 Answers

In its simplest form, running on a colab notebook, and for datetime as an example:

!pip install --q pylint
!pyreverse -o png datetime

Generates the following png:

enter image description here

like image 174
H_Barrio Avatar answered Sep 09 '25 11:09

H_Barrio