Contact: numbworks@gmail.com
| Date | Author | Description |
|---|---|---|
| 2026-05-10 | numbworks | Created. |
| 2026-05-10 | numbworks | Last update. |
This development guide collects all the information to get started with a nw project as a developer.
To run this application on Windows and Linux:
-
Download and install Visual Studio Code;
-
Download and install Docker;
-
Download and install Git;
-
Open your terminal application of choice and type the following commands:
mkdir {project_name} cd {project_name} git clone https://github.com/numbworks/{project_name}.git -
Launch Visual Studio Code and install the following extensions:
-
In order for the Jupyter Notebook to automatically detect changes in the underlying library, click on File > Preferences > Settings and change the following setting as below:
"jupyter.runStartupCommands": [ "%load_ext autoreload", "%autoreload 2" ] -
In order for Pylance to perform type checking, set the
python.analysis.typeCheckingModesetting tobasic; -
Click on File > Open folder > {project_name};
-
Click on View > Command Palette and type:
> Dev Container: Reopen in Container -
Wait some minutes for the container defined in the .devcointainer folder to be built;
-
Done!
To run the unit tests in Visual Studio Code (while still connected to the Dev Container):
- click on the Testing icon on the sidebar, right-click on tests > Run Test;
- select the Python interpreter inside the Dev Container (if asked);
- Done!
To calculate the total unit test coverage in Visual Studio Code (while still connected to the Dev Container):
-
Terminal > New Terminal;
-
Run the following commands to get the total unit test coverage:
cd tests coverage run -m unittest {project_name}tests.py coverage report --omit={project_name}tests.py -
Run the following commands to get the unit test coverage per class:
cd tests coverage run -m unittest {project_name}tests.py coverage html --omit={project_name}tests.py && sed -n '/<table class="index" data-sortable>/,/<\/table>/p' htmlcov/class_index.html | pandoc --from html --to plain && sleep 3 && rm -rf htmlcov -
Done!
Suggested toolset to view and edit this Markdown file: