-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DP-GUI entry-points to DeepModeling packages #270
Comments
This was referenced Oct 8, 2023
wanghan-iapcm
pushed a commit
to deepmodeling/deepmd-kit
that referenced
this issue
Oct 9, 2023
See deepmodeling/dpgui#270 for details. --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
wanghan-iapcm
pushed a commit
to deepmodeling/dpgen2
that referenced
this issue
Oct 9, 2023
See deepmodeling/dpgui#270 for details. --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
wanghan-iapcm
pushed a commit
to deepmodeling/dpgen
that referenced
this issue
Oct 9, 2023
See deepmodeling/dpgui#270 for details. --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
njzjz
added a commit
to deepmodeling/dpdispatcher
that referenced
this issue
Oct 9, 2023
See deepmodeling/dpgui#270 for details. --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Previously, DP-GUI was only hosted online, so the package input may not be the latest to match the stable or development version or another version that one may use. To resolve this issue, I made DP-GUI an independent Python library that can be served in the local environment. The Python package can read the arguments of the installed packages through entry points.
Here, when dpdispatcher is installed and has the
dpgui
entry points, DP-GUI can detect it.Below are the required changes:
pyproject.toml
:The method is the same as that for the dargs Sphinx plugin, so no extra Python methods are required to add.
This is a simple way to validate the entry points.
Below is a checklist for DeepModeling packages that support DP-GUI:
dpgui
entry point anddp gui
CLI deepmd-kit#2904dpgui
entry point anddpgen gui
CLI dpgen#1349dpgui
entry point anddpgen2 gui
CLI dpgen2#172dpgui
entry points anddpdisp gui
cli dpdispatcher#372The text was updated successfully, but these errors were encountered: