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
Copy file name to clipboardExpand all lines: content/software.md
+26-11Lines changed: 26 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,25 +64,40 @@ Extensions in Visual Studio Code (VSC) are powerful add-ons that enhance the fun
64
64
* MyST-Markdown: The official Markdown syntax extension
65
65
66
66
67
-
## Requirements.txt
67
+
## Virtual Environment and Dependencies
68
68
69
-
A `requirements.txt` file is included for this workshop that contains the basic dependencies needed to complete it. Note in particular that
69
+
It is assumed that you are able to create and activate a virtual environment in order to complete this workshop using a personal computer. As the primary tools are Python packages available using `pip`, the choice of environment manager is somewhat trivial. To keep things simple we suggest using Python `venv` or Conda.
70
+
71
+
Python's `venv` is used in the GitHub Actions workflows.
72
+
73
+
### Python Dependencies
74
+
75
+
Python dependencies are managed in file `requirements.txt`, the contents of which are included here:
76
+
77
+
:::{literalinclude} ../requirements.txt
78
+
:caption: Python dependencies in file `requirements.txt`
79
+
:label: include-requirements
80
+
:::
81
+
82
+
Note that only `jupyter-book` is needed for building the book as described in most of the lessons in this workshop. The remaining packages are for the _executable content_ lesson, which requires editing and executing Jupyter Notebooks (`*.ipynb` files). In addition, `jupyter` is a metapackage that includes a number of other commonly used packages (e.g., Jupyter Lab, IPython, etc.): it is included here to cover the range of preferences and IDE's used by workshop participants; many of these are described briefly in the table below. For each individual participant, a smaller subset of packages could be used in practice.
83
+
84
+
To install these dependencies ensure `requirements.txt` is in your working directory and run `pip install -r requirements.txt`.
70
85
71
-
We included a [requirements.txt](../..requirements.txt) file with all dependencies that are likely to be used.
72
-
These include:
73
86
| Package | Description |
74
87
|---|---|
75
88
| jupyter-book>=2.0.0a0 | Tool to build publication-quality books and documentation from Jupyter notebooks and Markdown. |
76
89
| jupyterlab | Web-based interactive development environment for notebooks, code, and data. |
77
-
| mystmd | MyST Markdown support for Jupyter Book / Sphinx (optional / commented). |
78
-
| jupyterlab_myst | JupyterLab extension to render MyST Markdown and improve notebook/Markdown integration. |
79
-
| ipykernel | IPython kernel for Jupyter, enables running Python code in notebooks. |
90
+
| ipykernel | IPython kernel for Jupyter, enables running Python code in notebooks. Necessary for VSC to edit and execute notebook files. |
80
91
| ipywidgets | Interactive HTML widgets for Jupyter notebooks and JupyterLab. |
92
+
| jupyter | A metapackage that requires jupyterlab, ipywidgets and ipykernel, amongst other packages. |
93
+
| mystmd | MyST Markdown support for Jupyter Book / Sphinx. |
94
+
| jupyterlab_myst | JupyterLab extension to render MyST Markdown and improve notebook/Markdown integration. |
81
95
| numpy | Core library for numerical computing with arrays and linear algebra. |
82
96
| matplotlib | 2D plotting library for generating figures and visualizations. |
If you are sure you want to install these dependencies, download the file, navigate through the correct folder and use `pip install -r requirements.txt`.
101
+
For this template we use Typst to produce a high quality PDF (explained in detail as part of the PDF Output lesson). If you want to create PDF's locally, you'll have to install Typst. The [Typst installation instructions](https://github.com/typst/typst?tab=readme-ov-file#installation) provides several options to install Typst: we strongly recommend using the latest releases.
86
102
87
-
## Typst
88
-
For this template we use Typst to produce a high quality pdf. If you want to create pdf's locally, you'll have to install Typst. Follow the [Typst installation instructions](https://github.com/typst/typst?tab=readme-ov-file#installation) for several options to install Typst. We strongly recommend using the latest releases of Typst. If you get a confusing Typst error, a good first step is to upgrade your version of Typst.
103
+
If you get a confusing error, a good first step is to upgrade your version of Typst.
0 commit comments