You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,9 @@ Useful Links
33
33
Quickstart
34
34
----------
35
35
36
-
Click here to start an interactive online Jupyter Notebook with an example OGDF graph where you can try out ``ogdf-python``: |binder|
36
+
|Click here to start an interactive online Jupyter Notebook with an example OGDF graph where you can try out ``ogdf-python``: |binder|
37
+
|Simply re-run the code cell to see the graph. You can also find further examples next to that Notebook (i.e. via the folder icon on the left).
37
38
38
-
Simply re-run the code cell to see the graph. You can also find further examples next to that Notebook (i.e. via the folder icon on the left).
39
39
To get a similar Jupyter Notebook with a little more compute power running on your local machine, use the following install command and open the link to ``localhost``/``127.0.0.1`` that will be printed in your browser:
40
40
41
41
.. code-block:: bash
@@ -45,7 +45,11 @@ To get a similar Jupyter Notebook with a little more compute power running on yo
45
45
46
46
The optional ``[quickstart]`` pulls in matplotlib and jupyter lab as well as a ready-to-use binary build of the OGDF via `ogdf-wheel <https://github.com/ogdf/ogdf-wheel>`_.
47
47
Please note that downloading and installing all dependencies (especially building ``cppyy``) may take a moment.
48
-
Alternatively, see the instructions `below <#manual-installation>`_ for installing ``ogdf-python`` without this if you want to use your own local build of the OGDF.
48
+
If you want to use your own local build of the OGDF, see the instructions `below <#manual-installation>`_ for installing ``ogdf-python`` without ``ogdf-wheel``.
49
+
50
+
.. note:: We currently support Linux, MacOS on Intel and Apple Silicon, and the Windows Subsytem for Linux.
51
+
Directly running on **Windows is not supported**, see `issue 4 <https://github.com/ogdf/ogdf-python/issues/8#issuecomment-2820925482>`_.
52
+
When using WSL, make sure that you are using the Linux python(3) and not the Windows python.exe, i.e. the `startup message <https://docs.python.org/3/tutorial/interpreter.html#interactive-mode>`_ of the python interpreter should end with ``on linux`` instead of ``on win32``.
49
53
50
54
Usage
51
55
-----
@@ -91,12 +95,25 @@ Furthermore, you will need a local shared library build (``-DBUILD_SHARED_LIBS=O
91
95
If you didn't install the OGDF globally on your system,
92
96
either set the ``OGDF_INSTALL_DIR`` to the prefix you configured in ``cmake``,
93
97
or set ``OGDF_BUILD_DIR`` to the subdirectory of your copy of the OGDF repo where your
`out-of-source build <https://ogdf.github.io/doc/ogdf/md_doc_build.html#autotoc_md4>`_ (and especially the generated ``OgdfTargets.cmake`` file) lives.
95
99
96
100
.. code-block:: bash
97
101
98
102
$ pip install ogdf-python
99
-
$ OGDF_BUILD_DIR=~/ogdf/build-debug python3
103
+
$ OGDF_BUILD_DIR=~/ogdf/build-release python3
104
+
105
+
Debug and Release Mode
106
+
^^^^^^^^^^^^^^^^^^^^^^
107
+
Starting with OGDF 2025.10 (Foxglove), your chosen build mode (debug or release) also affects
108
+
the name of the built shared libraries (e.g. ``libOGDF-debug.so`` instead of ``libOGDF.so``) as well as
109
+
the location of the header file containing configuration information (``ogdf-{debug,release}/ogdf/basic/internal/config_autogen.h``).
110
+
By default, ogdf-python will attempt to load the release versions, even if you only have the debug version built/installed.
111
+
To load the debug versions instead, set the environment variable ``OGDF_PYTHON_MODE=debug``.
0 commit comments