diff --git a/tutorials/1-getting-started/DTGS101_intro.ipynb b/tutorials/1-getting-started/DTGS101_intro.ipynb
index 80eefb93..6902c3c4 100644
--- a/tutorials/1-getting-started/DTGS101_intro.ipynb
+++ b/tutorials/1-getting-started/DTGS101_intro.ipynb
@@ -11,13 +11,23 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# !pip install deeptrack # Uncomment if running on Colab/Kaggle."
]
},
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# !pip install deeplay # Uncomment if needed.\n",
+ "# !pip install seaborn # Uncomment if needed."
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
@@ -972,7 +982,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "py_env_book",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -986,7 +996,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.15"
+ "version": "3.13.14"
}
},
"nbformat": 4,
diff --git a/tutorials/1-getting-started/DTGS111_datafiles.ipynb b/tutorials/1-getting-started/DTGS111_datafiles.ipynb
index c68b0a1d..8c62a7ce 100644
--- a/tutorials/1-getting-started/DTGS111_datafiles.ipynb
+++ b/tutorials/1-getting-started/DTGS111_datafiles.ipynb
@@ -11,13 +11,23 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# !pip install deeptrack # Uncomment if running on Colab/Kaggle."
]
},
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# !pip install deeplay # Uncomment if needed.\n",
+ "# !pip install opencv-python # Uncomment if needed."
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
@@ -659,7 +669,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "py_env_book",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -673,7 +683,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.15"
+ "version": "3.13.14"
}
},
"nbformat": 4,
diff --git a/tutorials/1-getting-started/DTGS121_tracking_particle_cnn.ipynb b/tutorials/1-getting-started/DTGS121_tracking_particle_cnn.ipynb
index 9b142b55..9e9d2466 100644
--- a/tutorials/1-getting-started/DTGS121_tracking_particle_cnn.ipynb
+++ b/tutorials/1-getting-started/DTGS121_tracking_particle_cnn.ipynb
@@ -11,11 +11,21 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
- "# !pip install deeplay deeptrack # Uncomment if running on Colab/Kaggle."
+ "# !pip install deeptrack # Uncomment if running on Colab/Kaggle."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# !pip install deeplay # Uncomment if needed.\n",
+ "# !pip install seaborn # Uncomment if needed."
]
},
{
@@ -821,7 +831,7 @@
"metadata": {
"file_extension": ".py",
"kernelspec": {
- "display_name": "py_env_book (3.10.15)",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -835,7 +845,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.15"
+ "version": "3.13.14"
},
"mimetype": "text/x-python",
"name": "python",
diff --git a/tutorials/1-getting-started/DTGS126_characterizing_aberrations_cnn.ipynb b/tutorials/1-getting-started/DTGS126_characterizing_aberrations_cnn.ipynb
index 1b82e4a7..601d9600 100644
--- a/tutorials/1-getting-started/DTGS126_characterizing_aberrations_cnn.ipynb
+++ b/tutorials/1-getting-started/DTGS126_characterizing_aberrations_cnn.ipynb
@@ -6,16 +6,25 @@
"source": [
"# DTGS126. Characterizing Aberrations with a CNN\n",
"\n",
- "
"
+ "
"
]
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# !pip install deeptrack # Uncomment if running on Colab/Kaggle."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
- "# !pip install deeplay deeptrack # Uncomment if running on Colab/Kaggle."
+ "# !pip install deeplay # Uncomment if needed."
]
},
{
@@ -556,7 +565,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "py_env_book (3.10.15)",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -570,7 +579,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.15"
+ "version": "3.13.14"
}
},
"nbformat": 4,
diff --git a/tutorials/1-getting-started/DTGS127_characterizing_aberrations_optuna.ipynb b/tutorials/1-getting-started/DTGS127_characterizing_aberrations_optuna.ipynb
index f2be112e..01aba69e 100644
--- a/tutorials/1-getting-started/DTGS127_characterizing_aberrations_optuna.ipynb
+++ b/tutorials/1-getting-started/DTGS127_characterizing_aberrations_optuna.ipynb
@@ -12,12 +12,22 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": 2,
"id": "1d3be940",
"metadata": {},
"outputs": [],
"source": [
- "# !pip install deeptrack optuna # Uncomment if running on Colab/Kaggle."
+ "# !pip install deeptrack # Uncomment if running on Colab/Kaggle."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "ab9551f3",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# !pip install optuna # Uncomment if needed."
]
},
{
@@ -932,7 +942,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "py_env_book",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -946,7 +956,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.15"
+ "version": "3.13.14"
}
},
"nbformat": 4,
diff --git a/tutorials/1-getting-started/DTGS131_tracking_multiple_particles_unet.ipynb b/tutorials/1-getting-started/DTGS131_tracking_multiple_particles_unet.ipynb
index 142d83d0..848c42e7 100644
--- a/tutorials/1-getting-started/DTGS131_tracking_multiple_particles_unet.ipynb
+++ b/tutorials/1-getting-started/DTGS131_tracking_multiple_particles_unet.ipynb
@@ -17,7 +17,16 @@
"metadata": {},
"outputs": [],
"source": [
- "# !pip install deeplay deeptrack # Uncomment if running on Colab/Kaggle."
+ "# !pip install deeptrack # Uncomment if running on Colab/Kaggle."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# !pip install deeplay # Uncomment if needed."
]
},
{
@@ -825,7 +834,7 @@
"provenance": []
},
"kernelspec": {
- "display_name": "py_env_book (3.10.15)",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -839,7 +848,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.15"
+ "version": "3.13.14"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
diff --git a/tutorials/1-getting-started/DTGS141_distinguishing_particles_in_brightfield.ipynb b/tutorials/1-getting-started/DTGS141_distinguishing_particles_in_brightfield.ipynb
index 378d4a5e..0ab859d5 100644
--- a/tutorials/1-getting-started/DTGS141_distinguishing_particles_in_brightfield.ipynb
+++ b/tutorials/1-getting-started/DTGS141_distinguishing_particles_in_brightfield.ipynb
@@ -15,7 +15,17 @@
"metadata": {},
"outputs": [],
"source": [
- "# !pip install deeplay deeptrack # Uncomment if running on Colab/Kaggle."
+ "# !pip install deeptrack # Uncomment if running on Colab/Kaggle."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# !pip install deeplay # Uncomment if needed.\n",
+ "# !pip install seaborn # Uncomment if needed."
]
},
{
@@ -803,7 +813,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "Python 3",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -817,7 +827,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.11.9"
+ "version": "3.13.14"
}
},
"nbformat": 4,
diff --git a/tutorials/1-getting-started/DTGS151_unsupervised_object_detection_with_lodestar.ipynb b/tutorials/1-getting-started/DTGS151_unsupervised_object_detection_with_lodestar.ipynb
index 2d1e2fdc..c23aab4a 100644
--- a/tutorials/1-getting-started/DTGS151_unsupervised_object_detection_with_lodestar.ipynb
+++ b/tutorials/1-getting-started/DTGS151_unsupervised_object_detection_with_lodestar.ipynb
@@ -12,7 +12,7 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"id": "98c6d466",
"metadata": {
"execution": {
@@ -24,7 +24,17 @@
},
"outputs": [],
"source": [
- "# !pip install deeplay deeptrack # Uncomment if running on Colab/Kaggle."
+ "# !pip install deeptrack # Uncomment if running on Colab/Kaggle."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "33a22dbc",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# !pip install deeplay # Uncomment if needed."
]
},
{
@@ -607,7 +617,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "py_env_book (3.10.15)",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -621,7 +631,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.15"
+ "version": "3.13.14"
}
},
"nbformat": 4,
diff --git a/tutorials/1-getting-started/DTGS161_torch_fitting.ipynb b/tutorials/1-getting-started/DTGS161_torch_fitting.ipynb
index 09f90372..b14301db 100644
--- a/tutorials/1-getting-started/DTGS161_torch_fitting.ipynb
+++ b/tutorials/1-getting-started/DTGS161_torch_fitting.ipynb
@@ -11,13 +11,22 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# !pip install deeptrack # Uncomment if running on Colab/Kaggle."
]
},
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# !pip install torch # Uncomment if needed."
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
@@ -500,7 +509,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "py_env_book (3.10.15)",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -514,7 +523,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.15"
+ "version": "3.13.14"
}
},
"nbformat": 4,
diff --git a/tutorials/1-getting-started/DTGS172_bacteria.ipynb b/tutorials/1-getting-started/DTGS172_bacteria.ipynb
index f38b1187..36715cb0 100644
--- a/tutorials/1-getting-started/DTGS172_bacteria.ipynb
+++ b/tutorials/1-getting-started/DTGS172_bacteria.ipynb
@@ -741,7 +741,7 @@
],
"metadata": {
"kernelspec": {
- "display_name": "py_env_book (3.10.15)",
+ "display_name": "deeptrack2",
"language": "python",
"name": "python3"
},
@@ -755,7 +755,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.15"
+ "version": "3.13.14"
}
},
"nbformat": 4,
diff --git a/tutorials/test_notebooks.py b/tutorials/test_notebooks.py
index 803f0aab..91b8e0d8 100644
--- a/tutorials/test_notebooks.py
+++ b/tutorials/test_notebooks.py
@@ -10,8 +10,9 @@ def test_notebooks():
"""
Test all notebooks in the examples directory.
"""
-
- notebooks = glob.glob(os.path.join("examples", "**", "*.ipynb"), recursive=True)
+
+ script_dir = os.path.dirname(os.path.abspath(__file__))
+ notebooks = glob.glob(os.path.join(script_dir, "2-examples", "**", "*.ipynb"), recursive=True)
failed_runs = []
for notebook in notebooks:
print(f"Testing notebook: {notebook}...")