Skip to content

Commit 6eb2772

Browse files
committed
chore: Fixing the installation code block for diagrams support
1 parent 4c7e938 commit 6eb2772

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ To generate diagrams from your machines, you'll also need ``pydot`` and ``Graphv
6565
install this library already with ``pydot`` dependency using the `extras` install option. See
6666
our docs for more details.
6767

68+
.. code-block:: console
69+
6870
$ pip install python-statemachine[diagrams]
6971
7072
Define your state machine:

docs/installation.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ To install Python State Machine, run this command in your terminal:
1616
1717
This is the preferred method to install Python State Machine, as it will always install the most recent stable release.
1818

19+
To generate diagrams from your machines, you'll also need ``pydot`` and ``Graphviz``. You can
20+
install this library already with ``pydot`` dependency using the `extras` install option. See
21+
our docs for more details.
22+
23+
.. code-block:: console
24+
25+
$ pip install python-statemachine[diagrams]
26+
27+
1928
If you don't have `pip`_ installed, this `Python installation guide`_ can guide
2029
you through the process.
2130

0 commit comments

Comments
 (0)