Skip to content

Commit bbc688b

Browse files
committed
Update Python version references to 3.9 in documentation and configuration files
- Updated .gitignore to include new input and test directories. - Changed Python version from 3.8 to 3.9 in .readthedocs.yml, setup.cfg, and run script. - Updated documentation to reflect the use of Python 3.9 in various tutorials. Signed-off-by: M Q <[email protected]>
1 parent 0cb84cb commit bbc688b

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.8"
11+
python: "3.9"
1212
# You can also specify other tool versions:
1313
# nodejs: "20"
1414
# rust: "1.70"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ MONAI Deploy App SDK's code coverage report is available at [CodeCov](https://co
138138
#### Building the documentation
139139

140140
:::{note}
141-
Please note that the documentation builds successfully in Python 3.8 environment, but fails with Python 3.10.
141+
Please note that the documentation builds successfully in Python 3.9 environment, but fails with Python 3.10.
142142
:::
143143

144144
MONAI's documentation is located at `docs/`.

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Sphinx==4.1.2
22
sphinx-autobuild==2021.3.14
3-
myst-nb==0.17.2 # this version is fine in python 3.8 and avoids pulling in multiple nbformat packages
3+
myst-nb==0.17.2 # this version is fine in python 3.9 and avoids pulling in multiple nbformat packages
44
myst-parser==0.18.0
55
lxml_html_clean # needed by myst-nb
66
linkify-it-py==1.0.1 # https://myst-parser.readthedocs.io/en/latest/syntax/optional.html?highlight=linkify#linkify

docs/source/getting_started/tutorials/mednist_app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This tutorial demos the process of packaging up a trained model using MONAI Depl
55
## Setup
66

77
```bash
8-
# Create a virtual environment with Python 3.8.
8+
# Create a virtual environment with Python 3.9.
99
# Skip if you are already in a virtual environment.
10-
conda create -n mednist python=3.8 pytorch jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
10+
conda create -n mednist python=3.9 pytorch jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
1111
conda activate mednist
1212

1313
# Launch JupyterLab if you want to work on Jupyter Notebook

docs/source/getting_started/tutorials/monai_bundle_app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This tutorial shows how to create an organ segmentation application for a PyTorc
55
## Setup
66

77
```bash
8-
# Create a virtual environment with Python 3.8.
8+
# Create a virtual environment with Python 3.9.
99
# Skip if you are already in a virtual environment.
10-
conda create -n monai python=3.8 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
10+
conda create -n monai python=3.9 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
1111
conda activate monai
1212

1313
# Launch JupyterLab if you want to work on Jupyter Notebook

docs/source/getting_started/tutorials/multi_model_app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ The models used in this example are trained with MONAI, and are packaged in the
77
## Setup
88

99
```bash
10-
# Create a virtual environment with Python 3.8.
10+
# Create a virtual environment with Python 3.9.
1111
# Skip if you are already in a virtual environment.
12-
conda create -n monai python=3.8 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
12+
conda create -n monai python=3.9 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
1313
conda activate monai
1414

1515
# Launch JupyterLab if you want to work on Jupyter Notebook

docs/source/getting_started/tutorials/segmentation_app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Please note that the following steps are for demonstration purpose. The code pul
77
## Setup
88

99
```bash
10-
# Create a virtual environment with Python 3.8.
10+
# Create a virtual environment with Python 3.9.
1111
# Skip if you are already in a virtual environment.
12-
conda create -n monai python=3.8 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
12+
conda create -n monai python=3.9 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
1313
conda activate monai
1414

1515
# Launch JupyterLab if you want to work on Jupyter Notebook

docs/source/getting_started/tutorials/segmentation_clara-viz_app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This tutorial shows how to create an organ segmentation application for a PyTorc
55
## Setup
66

77
```bash
8-
# Create a virtual environment with Python 3.8.
8+
# Create a virtual environment with Python 3.9.
99
# Skip if you are already in a virtual environment.
10-
conda create -n monai python=3.8 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
10+
conda create -n monai python=3.9 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
1111
conda activate monai
1212

1313
# Launch JupyterLab if you want to work on Jupyter Notebook

docs/source/getting_started/tutorials/simple_app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This tutorial shows how a simple image processing application can be created wit
55
## Setup
66

77
```bash
8-
# Create a virtual environment with Python 3.8.
8+
# Create a virtual environment with Python 3.9.
99
# Skip if you are already in a virtual environment.
10-
conda create -n monai python=3.8 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
10+
conda create -n monai python=3.9 pytorch torchvision jupyterlab cudatoolkit=12.2 -c pytorch -c conda-forge
1111
conda activate monai
1212

1313
# Launch JupyterLab if you want to work on Jupyter Notebook

run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ install_python_dev_deps() {
344344
# Copy the cuda runtime library to the fixed location (workaround for readthedocs) so that
345345
# we can leverage the existing LD_LIBRARY_PATH (configured by the readthedocs UI) to locate the cuda runtime library.
346346
# (LD_LIBRARY_PATH is set to /home/docs/ for that purpose)
347-
# Note that 'python3.8' is hard-coded here, it should be updated if the Python version changes by
347+
# Note that 'python3.9' is hard-coded here, it should be updated if the Python version changes by
348348
# .readthedocs.yml or other configurations.
349-
run_command ls -al /home/docs/checkouts/readthedocs.org/user_builds/${READTHEDOCS_PROJECT}/envs/${READTHEDOCS_VERSION}/lib/python3.8/site-packages/nvidia/cuda_runtime/lib/
350-
run_command cp /home/docs/checkouts/readthedocs.org/user_builds/${READTHEDOCS_PROJECT}/envs/${READTHEDOCS_VERSION}/lib/python3.8/site-packages/nvidia/cuda_runtime/lib/*.so* /home/docs/
349+
run_command ls -al /home/docs/checkouts/readthedocs.org/user_builds/${READTHEDOCS_PROJECT}/envs/${READTHEDOCS_VERSION}/lib/python3.9/site-packages/nvidia/cuda_runtime/lib/
350+
run_command cp /home/docs/checkouts/readthedocs.org/user_builds/${READTHEDOCS_PROJECT}/envs/${READTHEDOCS_VERSION}/lib/python3.9/site-packages/nvidia/cuda_runtime/lib/*.so* /home/docs/
351351
run_command ls -al /home/docs/
352352
fi
353353
}

0 commit comments

Comments
 (0)