Skip to content

Commit 0ea9a4c

Browse files
Fixing the bug in the plugins installation (#880)
* Adding the package_name in the value and in the docs. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Adding ruff disabling. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * reverting to top-level-key=plugin_name and adding the title in the yaml, to be used as title in the available plugins list. * Update plugin_registry.rst --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent bb25f05 commit 0ea9a4c

File tree

3 files changed

+15
-24
lines changed

3 files changed

+15
-24
lines changed

docs/source/development/plugin_registry.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ To include your plugin in the registry, follow these steps:
1616

1717
.. code-block:: yaml
1818
19-
aiidalab-qe-xyz:
19+
Top-level key:
20+
title: "Description to show on top"
2021
description: "Quantum ESPRESSO plugin for XYZ by AiiDAlab."
2122
author: "Alice Doe"
2223
github: "https://github.com/alicedoe/aiidalab-qe-xyz"
@@ -31,8 +32,9 @@ Plugin Entry Requirements
3132

3233
**Required Keys**
3334

34-
- **Top-level key:** The plugin's distribution name, which should be lowercase and prefixed by ``aiidalab-`` or ``aiida-``. For example, ``aiidalab-qe-coolfeature`` or ``aiidalab-neutron``.
35-
- **description:** A brief description of your plugin.
35+
- **Top-level key:** The plugin's distribution name, which should be lowercase and prefixed by ``aiidalab-`` or ``aiida-``. For example, ``aiidalab-qe-coolfeature`` or ``aiidalab-neutron``.
36+
- **title:** Brief title to show on top of the plugin entry. Should contain the main properties we can compute with the given plugin.
37+
- **description:** A brief description of your plugin. Can include more verbose informations with respect to the title.
3638

3739
**Optional Keys**
3840

plugin_list.ipynb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -282,31 +282,17 @@
282282
" ]\n",
283283
" )\n",
284284
"\n",
285-
" title_with_icon = f\"{plugin_name} {'✅' if installed else '☐'}\"\n",
285+
" title_with_icon = f\"{plugin_data.get('title')} {'✅' if installed else '☐'}\"\n",
286286
" accordion.set_title(i, title_with_icon)\n",
287287
" accordion.children = [*accordion.children, box]\n",
288288
"\n",
289289
"display(accordion)"
290290
]
291-
},
292-
{
293-
"cell_type": "code",
294-
"execution_count": null,
295-
"metadata": {},
296-
"outputs": [],
297-
"source": []
298-
},
299-
{
300-
"cell_type": "code",
301-
"execution_count": null,
302-
"metadata": {},
303-
"outputs": [],
304-
"source": []
305291
}
306292
],
307293
"metadata": {
308294
"kernelspec": {
309-
"display_name": "Python 3 (ipykernel)",
295+
"display_name": "base",
310296
"language": "python",
311297
"name": "python3"
312298
},

plugins.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
Bader charge analysis (aiida-bader):
2+
aiida-bader:
3+
title: Bader charge analysis (aiida-bader)
34
description: Perform Bader charge analysis of the electronic charge density
45
author: Xing Wang
56
github: https://github.com/superstar54/aiida-bader
67
documentation: https://aiida-bader.readthedocs.io/
78
pip: aiida-bader
89

9-
Phonons and IR/Raman (aiidalab-qe-vibroscopy):
10-
description: Plugin to compute phonons, IR/Raman spectra, Inelastic Neutron Scattering of materials
10+
aiidalab-qe-vibroscopy:
11+
title: Phonons and IR/Raman (aiidalab-qe-vibroscopy)
12+
description: Plugin to compute phonons, IR/Raman spectra, Inelastic Neutron Scattering of materials via finite displacement and finite field approach.
1113
author: Miki Bonacci, Andres Ortega Guerrero, Lorenzo Bastonero and Nicola Marzari
1214
pip: aiidalab-qe-vibroscopy==1.1.1
1315
post_install: setup-phonopy
1416

15-
Muon spectroscopy (aiidalab-qe-muon):
16-
description: Compute properties to assist µSR experiments, such as muon stopping sites and related properties
17+
aiidalab-qe-muon:
18+
title: Muon spectroscopy (aiidalab-qe-muon)
19+
description: Compute properties to assist µSR experiments, such as muon stopping sites and related properties (local fields and polarization signals).
1720
author: Miki Bonacci, Ifeanyi J. Onuorah, Pietro Bonfa', Giovanni Pizzi and Roberto de Renzi
1821
github: https://github.com/mikibonacci/aiidalab-qe-muon

0 commit comments

Comments
 (0)