Skip to content

Commit 269de06

Browse files
committed
Refactor installation and configuration viewer documentation and tests for clarity and completeness
1 parent 18d437d commit 269de06

File tree

6 files changed

+136
-37
lines changed

6 files changed

+136
-37
lines changed

cdl/tests/features/utilities/installconf_unit_test.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@
66

77
# guitest: show
88

9+
from __future__ import annotations
10+
911
from guidata.qthelpers import qt_app_context
1012

11-
from cdl.widgets.instconfviewer import exec_cdl_installconfig_dialog
13+
import cdl.utils.qthelpers as qth
14+
from cdl.widgets import instconfviewer
1215

1316

14-
def test_dep_viewer():
17+
def test_dep_viewer(screenshots: bool = False) -> None:
1518
"""Test dep viewer window"""
1619
with qt_app_context():
17-
exec_cdl_installconfig_dialog()
20+
instconfviewer.exec_cdl_installconfig_dialog()
21+
if screenshots:
22+
dlg = instconfviewer.InstallConfigViewerWindow()
23+
dlg.show()
24+
qth.grab_save_window(dlg, dlg.objectName())
1825

1926

2027
if __name__ == "__main__":
21-
test_dep_viewer()
28+
test_dep_viewer(screenshots=True)

doc/features/general/instviewer.rst

Lines changed: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,64 @@
11
.. _ref-to-instviewer:
22

3-
Installation and configuration viewer
4-
=====================================
3+
Installation and Configuration
4+
==============================
55

6-
.. meta::
7-
:description: DataLab's installation and configuration viewer
8-
:keywords: installation, configuration, viewer, DataLab
6+
The **Installation and Configuration** dialog box is a diagnostic tool available from DataLab’s graphical interface. It provides a structured overview of the current installation, user-specific settings, and available plugins and I/O features.
97

10-
Because of the multiple ways of installing DataLab on your machine,
11-
understanding why the application behaves unexpectedly without any
12-
information on your configuration could be very challenging.
8+
This tool is primarily designed for troubleshooting and verification purposes — whether you are a user trying to understand how DataLab is set up on your system, or a developer validating your plugin integration.
139

14-
That is why DataLab provides the dialog box "Installation and configuration"
15-
which gathers all the information about your installation and configuration.
10+
To open the dialog box, go to the "?" menu in the main DataLab window and select **Installation and configuration**. This will open a dialog window that displays all relevant information about your DataLab installation.
1611

17-
.. note::
12+
The dialog window is divided into **three tabs**, each covering a specific aspect of the environment.
1813

19-
The installation and configuration viewer is accessible from the "?" menu in the main window.
14+
1. Installation Configuration
15+
-----------------------------
2016

2117
.. figure:: /images/shots/instviewer.png
2218

23-
Installation and configuration (see "?" menu)
19+
Installation and configuration (see "?" menu), tab 1
20+
21+
This tab displays system-level information about the DataLab installation, including:
22+
23+
- Application version;
24+
- Platform and operating system;
25+
- Whether DataLab is running in frozen (standalone) mode or as a standard Python package;
26+
- Internal paths used for data storage and plugin discovery;
27+
- Python interpreter details (version, architecture, paths);
28+
- Location of the `cdl` package.
29+
30+
This section is especially useful for debugging path-related issues or confirming the installation context (e.g., standalone vs. pip-installed).
31+
32+
2. User Configuration
33+
---------------------
34+
35+
.. figure:: /images/shots/instviewer2.png
36+
37+
Installation and configuration (see "?" menu), tab 2
38+
39+
This tab lists user-specific configuration details, through the contents of DataLab's configuration file.
40+
41+
It helps users verify their personalized settings and ensures that DataLab is reading the correct directories for user-defined plugins or preferences.
42+
43+
3. Plugins and I/O Features
44+
---------------------------
45+
46+
.. figure:: /images/shots/instviewer3.png
47+
48+
Installation and configuration (see "?" menu), tab 3
49+
50+
This tab lists all plugins and I/O handlers currently available in the application.
51+
52+
This view is ideal for verifying that all expected plugins and I/O features are detected, loaded, and functional.
53+
54+
Usage Tips
55+
----------
56+
57+
- You can copy text from any of the tabs for diagnostic or support purposes.
58+
- If a plugin or I/O feature does not appear, check that its filename starts with `cdl_` and that it is located in a recognized plugin directory (see the *User Configuration* tab).
59+
60+
.. note::
2461

25-
Reporting unexpected behavior or any other bug on `GitHub Issues`_
26-
will be greatly appreciated, especially if above contents are attached
27-
to the report (as well log files, see :ref:`ref-to-logviewer`).
62+
Reporting unexpected behavior or any other bug on `GitHub Issues`_ will be greatly appreciated, especially if the contents of this viewer are attached to the report (as well as log files, see :ref:`ref-to-logviewer`).
2863

2964
.. _GitHub Issues: https://github.com/DataLab-Platform/DataLab/issues/new/choose

doc/images/shots/instviewer.png

-8.84 KB
Loading

doc/images/shots/instviewer2.png

19.4 KB
Loading

doc/images/shots/instviewer3.png

23.9 KB
Loading

doc/locale/fr/LC_MESSAGES/features/general/instviewer.po

Lines changed: 74 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: DataLab \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-03-20 16:21+0100\n"
11+
"POT-Creation-Date: 2025-05-14 15:46+0200\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -17,26 +17,83 @@ msgstr ""
1717
"Content-Transfer-Encoding: 8bit\n"
1818
"Generated-By: Babel 2.17.0\n"
1919

20-
msgid "DataLab's installation and configuration viewer"
21-
msgstr "Visualiseur d'installation et de configuration de DataLab"
20+
msgid "Installation and Configuration"
21+
msgstr "Installation et configuration"
2222

23-
msgid "installation, configuration, viewer, DataLab"
24-
msgstr "installation, configuration, visualiseur, DataLab"
23+
msgid "The **Installation and Configuration** dialog box is a diagnostic tool available from DataLab’s graphical interface. It provides a structured overview of the current installation, user-specific settings, and available plugins and I/O features."
24+
msgstr "La boîte de dialogue **Installation et configuration** est un outil de diagnostic disponible dans l'interface graphique de DataLab. Elle fournit un aperçu structuré de l'installation actuelle, des paramètres spécifiques à l'utilisateur et des plugins et fonctionnalités d'E/S disponibles."
2525

26-
msgid "Installation and configuration viewer"
27-
msgstr "Installation et configuration"
26+
msgid "This tool is primarily designed for troubleshooting and verification purposes — whether you are a user trying to understand how DataLab is set up on your system, or a developer validating your plugin integration."
27+
msgstr "Cet outil est principalement conçu pour le dépannage et la vérification — que vous soyez un utilisateur essayant de comprendre comment DataLab est configuré sur votre système, ou un développeur validant l'intégration de votre plugin."
28+
29+
msgid "To open the dialog box, go to the \"?\" menu in the main DataLab window and select **Installation and configuration**. This will open a dialog window that displays all relevant information about your DataLab installation."
30+
msgstr "Pour ouvrir la boîte de dialogue, allez dans le menu \"?\" dans la fenêtre principale de DataLab et sélectionnez **Installation et configuration**. Cela ouvrira une boîte de dialogue qui affiche toutes les informations pertinentes sur votre installation de DataLab."
31+
32+
msgid "The dialog window is divided into **three tabs**, each covering a specific aspect of the environment."
33+
msgstr "La fenêtre de dialogue est divisée en **trois onglets**, chacun couvrant un aspect spécifique de l'environnement."
34+
35+
msgid "1. Installation Configuration"
36+
msgstr "1. Installation et configuration"
37+
38+
msgid "Installation and configuration (see \"?\" menu), tab 1"
39+
msgstr "Installation et configuration (voir menu \"?\"), onglet 1"
40+
41+
msgid "This tab displays system-level information about the DataLab installation, including:"
42+
msgstr "Cet onglet affiche des informations au niveau système sur l'installation de DataLab, y compris :"
43+
44+
msgid "Application version;"
45+
msgstr "Version de l'application ;"
46+
47+
msgid "Platform and operating system;"
48+
msgstr "Système d'exploitation et plateforme ;"
49+
50+
msgid "Whether DataLab is running in frozen (standalone) mode or as a standard Python package;"
51+
msgstr "Si DataLab fonctionne en mode gelé (autonome) ou en tant que package Python standard ;"
52+
53+
msgid "Internal paths used for data storage and plugin discovery;"
54+
msgstr "Chemins internes utilisés pour le stockage de données et la découverte de plugins ;"
55+
56+
msgid "Python interpreter details (version, architecture, paths);"
57+
msgstr "Détails de l'interpréteur Python (version, architecture, chemins) ;"
58+
59+
msgid "Location of the `cdl` package."
60+
msgstr "Emplacement du package `cdl`."
61+
62+
msgid "This section is especially useful for debugging path-related issues or confirming the installation context (e.g., standalone vs. pip-installed)."
63+
msgstr "Cette section est particulièrement utile pour déboguer les problèmes liés aux chemins ou confirmer le contexte d'installation (par exemple, autonome ou installé via pip)."
64+
65+
msgid "2. User Configuration"
66+
msgstr "2. Configuration utilisateur"
67+
68+
msgid "Installation and configuration (see \"?\" menu), tab 2"
69+
msgstr "Installation et configuration (voir menu \"?\"), onglet 2"
70+
71+
msgid "This tab lists user-specific configuration details, through the contents of DataLab's configuration file."
72+
msgstr "Cet onglet répertorie les détails de configuration spécifiques à l'utilisateur, à travers le contenu du fichier de configuration de DataLab."
73+
74+
msgid "It helps users verify their personalized settings and ensures that DataLab is reading the correct directories for user-defined plugins or preferences."
75+
msgstr "Il aide les utilisateurs à vérifier leurs paramètres personnalisés et garantit que DataLab lit les bons répertoires pour les plugins ou préférences définis par l'utilisateur."
76+
77+
msgid "3. Plugins and I/O Features"
78+
msgstr "3. Plugins et fonctionnalités d'E/S"
79+
80+
msgid "Installation and configuration (see \"?\" menu), tab 3"
81+
msgstr "Installation et configuration (voir menu \"?\"), onglet 3"
82+
83+
msgid "This tab lists all plugins and I/O handlers currently available in the application."
84+
msgstr "Cet onglet répertorie tous les plugins et gestionnaires d'E/S actuellement disponibles dans l'application."
2885

29-
msgid "Because of the multiple ways of installing DataLab on your machine, understanding why the application behaves unexpectedly without any information on your configuration could be very challenging."
30-
msgstr "En raison des multiples façons d'installer DataLab sur votre machine, comprendre l'origine d'un dysfontionnement de l'application sans information sur votre configuration peut s'avérer très difficile."
86+
msgid "This view is ideal for verifying that all expected plugins and I/O features are detected, loaded, and functional."
87+
msgstr "Cette vue est idéale pour vérifier que tous les plugins et fonctionnalités d'E/S attendus sont détectés, chargés et fonctionnels."
3188

32-
msgid "That is why DataLab provides the dialog box \"Installation and configuration\" which gathers all the information about your installation and configuration."
33-
msgstr "C'est pourquoi DataLab fournit la boîte de dialogue \"Installation et configuration\" qui rassemble toutes les informations sur votre installation et votre configuration utilisateur."
89+
msgid "Usage Tips"
90+
msgstr "Conseils d'utilisation"
3491

35-
msgid "The installation and configuration viewer is accessible from the \"?\" menu in the main window."
36-
msgstr "Le visualiseur d'installation et de configuration est accessible depuis le menu \"?\" de la fenêtre principale."
92+
msgid "You can copy text from any of the tabs for diagnostic or support purposes."
93+
msgstr "Vous pouvez copier du texte depuis n'importe quel onglet à des fins de diagnostic ou de support."
3794

38-
msgid "Installation and configuration (see \"?\" menu)"
39-
msgstr "Installation et configuration (voir menu \"?\")"
95+
msgid "If a plugin or I/O feature does not appear, check that its filename starts with `cdl_` and that it is located in a recognized plugin directory (see the *User Configuration* tab)."
96+
msgstr "Si un plugin ou une fonctionnalité d'E/S n'apparaît pas, vérifiez que son nom de fichier commence par `cdl_` et qu'il est situé dans un répertoire de plugins reconnu (voir l'onglet *Configuration utilisateur*)."
4097

41-
msgid "Reporting unexpected behavior or any other bug on `GitHub Issues`_ will be greatly appreciated, especially if above contents are attached to the report (as well log files, see :ref:`ref-to-logviewer`)."
42-
msgstr "Signaler un comportement inattendu ou tout autre type d'anomalie sur la page `GitHub Issues`_ sera grandement apprécié, d'autant plus si vous prenez soin de joindre les informations ci-dessus (ainsi que les journaux d'historique, cf. :ref:`ref-to-logviewer`)."
98+
msgid "Reporting unexpected behavior or any other bug on `GitHub Issues`_ will be greatly appreciated, especially if the contents of this viewer are attached to the report (as well as log files, see :ref:`ref-to-logviewer`)."
99+
msgstr "Signaler un comportement inattendu ou tout autre bug sur `GitHub Issues`_ sera grandement apprécié, surtout si le contenu de ce visualiseur est joint au rapport (ainsi que les fichiers journaux, voir :ref:`ref-to-logviewer`)."

0 commit comments

Comments
 (0)