Skip to content

Commit 3f0c13d

Browse files
Fix Python tutorials for Colab (#503)
1 parent 106f86b commit 3f0c13d

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

docs/source/tutorials/python/eos.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
"source": [
3939
"# import locale\n",
4040
"# locale.getpreferredencoding = lambda: \"UTF-8\"\n",
41-
"# !python3 -m pip install janus-core[all] data-tutorials"
41+
"\n",
42+
"# ! pip uninstall torch torchaudio torchvision numpy -y\n",
43+
"# ! uv pip install janus-core[all] data-tutorials torch==2.5.1 --system\n",
44+
"# get_ipython().kernel.do_shutdown(restart=True)"
4245
]
4346
},
4447
{

docs/source/tutorials/python/geom_opt.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
"source": [
3939
"# import locale\n",
4040
"# locale.getpreferredencoding = lambda: \"UTF-8\"\n",
41-
"# !python3 -m pip install janus-core[all] data-tutorials"
41+
"\n",
42+
"# ! pip uninstall torch torchaudio torchvision numpy -y\n",
43+
"# ! uv pip install janus-core[all] data-tutorials torch==2.5.1 --system\n",
44+
"# get_ipython().kernel.do_shutdown(restart=True)"
4245
]
4346
},
4447
{

docs/source/tutorials/python/md.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
"source": [
3939
"# import locale\n",
4040
"# locale.getpreferredencoding = lambda: \"UTF-8\"\n",
41-
"# !python3 -m pip install janus-core[all] data-tutorials"
41+
"\n",
42+
"# ! pip uninstall torch torchaudio torchvision numpy -y\n",
43+
"# ! uv pip install janus-core[all] data-tutorials torch==2.5.1 --system\n",
44+
"# get_ipython().kernel.do_shutdown(restart=True)"
4245
]
4346
},
4447
{

docs/source/tutorials/python/neb.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@
7171
"source": [
7272
"# import locale\n",
7373
"# locale.getpreferredencoding = lambda: \"UTF-8\"\n",
74-
"# !python3 -m pip install janus-core[all] data-tutorials"
74+
"\n",
75+
"# ! pip uninstall torch torchaudio torchvision numpy -y\n",
76+
"# ! uv pip install janus-core[all] data-tutorials torch==2.5.1 --system\n",
77+
"# get_ipython().kernel.do_shutdown(restart=True)"
7578
]
7679
},
7780
{

docs/source/tutorials/python/phonons.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
"source": [
3939
"# import locale\n",
4040
"# locale.getpreferredencoding = lambda: \"UTF-8\"\n",
41-
"# !python3 -m pip install janus-core[all] data-tutorials"
41+
"\n",
42+
"# ! pip uninstall torch torchaudio torchvision numpy -y\n",
43+
"# ! uv pip install janus-core[all] data-tutorials torch==2.5.1 --system\n",
44+
"# get_ipython().kernel.do_shutdown(restart=True)"
4245
]
4346
},
4447
{

docs/source/tutorials/python/single_point.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
"source": [
4848
"# import locale\n",
4949
"# locale.getpreferredencoding = lambda: \"UTF-8\"\n",
50-
"# !python3 -m pip install janus-core[all] data-tutorials"
50+
"\n",
51+
"# ! pip uninstall torch torchaudio torchvision numpy -y\n",
52+
"# ! uv pip install janus-core[all] data-tutorials torch==2.5.1 --system\n",
53+
"# get_ipython().kernel.do_shutdown(restart=True)"
5154
]
5255
},
5356
{

0 commit comments

Comments
 (0)