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: docs/source/faq.rst
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,10 @@ Repo2docker officially supports the following versions of Python
22
22
(specified in your :ref:`environment.yml <environment.yml>` or
23
23
:ref:`runtime.txt <runtime.txt>` file):
24
24
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)
25
29
- 3.7 (added in 0.7, default in 0.8)
26
30
- 3.6 (default in 0.7 and earlier)
27
31
- 3.5
@@ -35,9 +39,18 @@ in the base environment is not packaged for your Python,
35
39
either because the version of the package is too new and your chosen Python is too old,
36
40
or vice versa.
37
41
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.)
0 commit comments