Skip to content

Commit c1d12ad

Browse files
committed
update docs for default and supported Python versions
1 parent 8c0f49e commit c1d12ad

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

docs/source/config_files.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ specified in your ``environment.yml``.
4343
You can also specify which Python version to install in your built environment
4444
with ``environment.yml``. By default, ``repo2docker`` installs
4545
|default_python| with your ``environment.yml`` unless you include the version of
46-
Python in this file. ``conda`` supports all versions of Python,
47-
though ``repo2docker`` support is best with Python 3.7, 3.6, 3.5 and 2.7.
46+
Python in this file. ``conda`` Should support all versions of Python,
47+
though ``repo2docker`` support is best with Python 3.7-3.11.
4848

4949
.. warning::
5050
If you include a Python version in a ``runtime.txt`` file in addition to your

docs/source/faq.rst

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ Repo2docker officially supports the following versions of Python
2222
(specified in your :ref:`environment.yml <environment.yml>` or
2323
:ref:`runtime.txt <runtime.txt>` file):
2424

25+
- 3.11 (added in 2023)
26+
- 3.10 (added in 2022, default in 2023)
27+
- 3.9 (added in 2021)
28+
- 3.8 (added in 0.11)
2529
- 3.7 (added in 0.7, default in 0.8)
2630
- 3.6 (default in 0.7 and earlier)
2731
- 3.5
@@ -35,9 +39,18 @@ in the base environment is not packaged for your Python,
3539
either because the version of the package is too new and your chosen Python is too old,
3640
or vice versa.
3741

38-
I Python 2.7 is specified, a separate environment for the kernel will be
39-
installed with Python 2. The notebook server will run in the default Python 3.7
40-
environment.
42+
If an old version of Python is specified (3.6 or earlier in 2023), a separate environment for the kernel will be installed with your requested Python version.
43+
The notebook server will run in the default |default_python| environment.
44+
That is, your _notebooks_ will run with Python 3.6, while your notebook _server_ will run with |default_python|.
45+
46+
These two environments can be distinguished with ``$NB_PYTHON_PREFIX/bin/python`` for the server and ``$KERNEL_PYTHON_PREFIX/bin/python`` for the kernel.
47+
Both of these environment variables area always defined, even when they are the same.
48+
49+
Starting in 2023, the default version of Python used when Python version is unspecified will be updated more often.
50+
Python itself releases a new version every year now, and repo2docker will follow, with the default Python version generally trailing the latest stable version of Python itself by 1-2 versions.
51+
52+
If you choose not to specify a Python version, your repository is _guaranteed_ to stop working, eventually.
53+
We **strongly** recommend specifying a Python version (in environment.yml, runtime.txt, Pipfile, etc.)
4154

4255
Julia
4356
~~~~~

0 commit comments

Comments
 (0)