Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions docs/notebooks/IBVS.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/_mvtb_nb_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,29 @@ async def ensure_installed() -> bool:
await micropip.install(
[
"opencv-python",
"spatialmath-python",
"pgraph-python",
"ansitable",
"mvtb-data",
"tqdm",
"requests",
"ipywidgets",
# runtime dependencies of spatialmath-python and pgraph-python,
# listed here because those two are installed with deps=False below
"numpy",
"scipy",
"matplotlib",
"typing_extensions",
]
)
# spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime
# dependency; its virtualenv requires packaging>=26.3, which conflicts with
# the packaging 24.2 built into Pyodide, so a normal resolve fails.
# pgraph-python depends on spatialmath-python, so it needs the same
# treatment. Remove once a spatialmath release without that dependency is
# out (rai-opensource/spatialmath-python#250) and install both normally.
await micropip.install(
["spatialmath-python", "pgraph-python"],
deps=False,
)
import cv2 # noqa: F401 - force cv2 into module registry before toolbox import

wheels = sorted(Path("/pypi").glob("machinevision_toolbox_python-*.whl"))
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/calibration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/camera.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/camera_animation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/color-images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/exploring-images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/fiducials.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/finding-blobs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/gamma.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/greyscale-images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
18 changes: 16 additions & 2 deletions docs/notebooks/homogeneous-coords.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,29 @@
" await micropip.install(\n",
" [\n",
" \"opencv-python\",\n",
" \"spatialmath-python\",\n",
" \"pgraph-python\",\n",
" \"ansitable\",\n",
" \"mvtb-data\",\n",
" \"tqdm\",\n",
" \"requests\",\n",
" \"ipywidgets\",\n",
" # runtime dependencies of spatialmath-python and pgraph-python,\n",
" # listed here because those two are installed with deps=False below\n",
" \"numpy\",\n",
" \"scipy\",\n",
" \"matplotlib\",\n",
" \"typing_extensions\",\n",
" ]\n",
" )\n",
" # spatialmath-python <= 1.1.18 lists pre-commit (a dev tool) as a runtime\n",
" # dependency; its virtualenv requires packaging>=26.3, which conflicts with\n",
" # the packaging 24.2 built into Pyodide, so a normal resolve fails.\n",
" # pgraph-python depends on spatialmath-python, so it needs the same\n",
" # treatment. Remove once a spatialmath release without that dependency is\n",
" # out (rai-opensource/spatialmath-python#250) and install both normally.\n",
" await micropip.install(\n",
" [\"spatialmath-python\", \"pgraph-python\"],\n",
" deps=False,\n",
" )\n",
" import cv2 # noqa: F401 - force cv2 into module registry before toolbox import\n",
"\n",
" wheels = sorted(Path(\"/pypi\").glob(\"machinevision_toolbox_python-*.whl\"))\n",
Expand Down
Loading
Loading