-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Use with DP-GUI | ||
=============== | ||
|
||
Developers can export an :class:`Argument <dargs.Argument>` to `DP-GUI <https://github.com/deepmodeling/dpgui>`_ for users, by adding a :code:`dpgui` entry point to `pyproject.toml`: | ||
|
||
.. code-block:: toml | ||
[project.entry-points."dpgui"] | ||
"Test Argument" = "dargs.sphinx:_test_argument" | ||
where `_test_argument` returns an :class:`Argument <dargs.Argument>` or a list of :class:`Argument <dargs.Argument>`, and :code:`"Test Argument"` is its name that can be any string. | ||
|
||
Users can install the `dpgui` Python package via `pip` and serve the DP-GUI instance using the `dpgui` command line: | ||
|
||
.. code-block:: sh | ||
pip install dpgui | ||
dpgui | ||
The served DP-GUI will automatically load all templates from the :code:`dpgui` entry point. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ Welcome to dargs's documentation! | |
|
||
intro | ||
sphinx | ||
dpgui | ||
api/api | ||
credits | ||
|
||
|