You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: If you update the conda package, you may have to redo the pip install. Without doing this, it may allow incompatable versions of the dependencies to be installed, etc.:
28
41
29
-
`pip install -e .`
30
42
31
43
## Run the example
32
44
@@ -38,20 +50,20 @@ The example is located here 'examples_to_run/examples.py'. The instructions to r
38
50
39
51
`python examples.py`
40
52
41
-
## Run the interactive example in Visual Studios Code (VScode)
53
+
## Run the interactive example in Visual Studios Code (VScode)
42
54
43
-
This is the same example but running it as an interactive job (i.e., like a Jupyter notebook). The example is located here 'examples_to_run/interactive_examples.py'.
55
+
This is the same example but running it as an interactive job (i.e., like a Jupyter notebook). The example is located here 'examples_to_run/interactive_examples.py'.
44
56
45
57
When using Visual Studios Code (VScode), the '# %%' above each section makes it a cell, which can be run individually by holding shift and pressing enter.
46
58
47
59
48
60
## Run the test cases (unit tests) using pytest
49
61
50
-
The python_github_tutorial software tests the installation using [pytest](https://docs.pytest.org/en/stable/).
51
-
The unit tests via ``pytest`` ensure that the code is build properly, running correctly and producing
52
-
accurate results.
62
+
The python_github_tutorial software tests the installation using [pytest](https://docs.pytest.org/en/stable/).
63
+
The unit tests via ``pytest`` ensure that the code is build properly, running correctly and producing
64
+
accurate results.
53
65
54
-
To perform these tests (unit tests) for the python_github_tutorial package, please run the following commands
66
+
To perform these tests (unit tests) for the python_github_tutorial package, please run the following commands
55
67
from the ``python_github_tutorial/tests`` directory:
56
68
57
69
Run all the tests:
@@ -74,13 +86,17 @@ Run individual test on 'test_main_functions.py':
74
86
75
87
## Build the documentation (docs)
76
88
77
-
Building these HTML files locally via sphinx, which will allow you to access them with your
78
-
local internet browsing application or HTML viewer (chrome, safari, VScode, etc.).
79
-
The HTML files will be located in the ``docs/_build/html`` directory after they are built.
89
+
Building these HTML files locally via sphinx, which will allow you to access them with your
90
+
local internet browsing application or HTML viewer (chrome, safari, VScode, etc.).
91
+
The HTML files will be located in the ``docs/_build/html`` directory after they are built.
80
92
81
-
The python_github_tutorial utilizes [sphinx](https://www.sphinx-doc.org/en/master/index.html) to construct the documentation.
93
+
The python_github_tutorial utilizes [sphinx](https://www.sphinx-doc.org/en/master/index.html) to construct the documentation.
82
94
The user can build the documentation locally by executing the following command from the ``docs`` directory:
83
-
95
+
84
96
`conda activate python_github_tutorial`
85
-
86
-
`make html`
97
+
98
+
`cd python_github_tutorial/docs`
99
+
100
+
`make html`
101
+
102
+
You can find the docs `html` build here -> `docs/_build/html`. When in the `docs/_build/html` directory, click on any `html` file and it will open the full docs.
0 commit comments