diff --git a/.binder/postBuild b/.binder/postBuild new file mode 100644 index 0000000..d376ba2 --- /dev/null +++ b/.binder/postBuild @@ -0,0 +1,3 @@ +#!/bin/bash +pip uninstall -y vtk +pip install --extra-index-url https://wheels.vtk.org vtk-osmesa diff --git a/.binder/requirements.txt b/.binder/requirements.txt new file mode 100644 index 0000000..ad6e037 --- /dev/null +++ b/.binder/requirements.txt @@ -0,0 +1,12 @@ +geovista +open-radar-data +protobuf==3.20.* +pyvista-xarray +siphon +tqdm +trame +trame-jupyter-extension +trame-vtk +trame-vuetify +xradar +zarr # for sea_temps example diff --git a/.binder/start b/.binder/start new file mode 100644 index 0000000..f4665b8 --- /dev/null +++ b/.binder/start @@ -0,0 +1,7 @@ +#!/bin/bash + +# https://mybinder.readthedocs.io/en/latest/using/config_files.html#start-run-code-before-the-user-sessions-starts + +export PYVISTA_TRAME_JUPYTER_MODE=extension + +exec "$@" diff --git a/examples/cartographic.ipynb b/examples/cartographic.ipynb index 9a0cc82..747260f 100644 --- a/examples/cartographic.ipynb +++ b/examples/cartographic.ipynb @@ -28,6 +28,19 @@ "import xarray as xr" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "d1f8421b-9dd4-4f2f-9d7d-eafced578e58", + "metadata": {}, + "outputs": [], + "source": [ + "# Temporary manual mode override; waiting for pyvista release including changes from https://github.com/pyvista/pyvista/pull/5798\n", + "\n", + "pv.global_theme.trame.server_proxy_enabled = False\n", + "pv.global_theme.trame.jupyter_extension_enabled = True" + ] + }, { "cell_type": "code", "execution_count": null, @@ -79,7 +92,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.17" + "version": "3.9.18" }, "vscode": { "interpreter": { diff --git a/examples/data-cube.ipynb b/examples/data-cube.ipynb index 61fac44..c3f029e 100644 --- a/examples/data-cube.ipynb +++ b/examples/data-cube.ipynb @@ -21,6 +21,19 @@ "pv.set_jupyter_backend(\"server\") # critical for large data" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "9342ad3d-0966-4526-84e4-0d79badbf7a3", + "metadata": {}, + "outputs": [], + "source": [ + "# Temporary manual mode override; waiting for pyvista release including changes from https://github.com/pyvista/pyvista/pull/5798\n", + "\n", + "pv.global_theme.trame.server_proxy_enabled = False\n", + "pv.global_theme.trame.jupyter_extension_enabled = True" + ] + }, { "cell_type": "markdown", "id": "e2f22803", @@ -163,7 +176,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.17" + "version": "3.9.18" } }, "nbformat": 4, diff --git a/examples/introduction.ipynb b/examples/introduction.ipynb index 7d45b9a..d7cf9f0 100644 --- a/examples/introduction.ipynb +++ b/examples/introduction.ipynb @@ -21,6 +21,19 @@ "import pyvista as pv" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "b108cab2-302b-45d7-aff0-d0cc34efdac9", + "metadata": {}, + "outputs": [], + "source": [ + "# Temporary manual mode override; waiting for pyvista release including changes from https://github.com/pyvista/pyvista/pull/5798\n", + "\n", + "pv.global_theme.trame.server_proxy_enabled = False\n", + "pv.global_theme.trame.jupyter_extension_enabled = True" + ] + }, { "cell_type": "markdown", "id": "3523b485-1f8e-44af-88bb-11ec9b0b2eed", @@ -139,7 +152,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.17" + "version": "3.9.18" }, "vscode": { "interpreter": { diff --git a/examples/lightning.ipynb b/examples/lightning.ipynb index 3d9af75..5ad89f6 100644 --- a/examples/lightning.ipynb +++ b/examples/lightning.ipynb @@ -20,6 +20,19 @@ "pv.set_jupyter_backend(\"server\")" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "21ff7e10-b4b6-4238-8958-e43e0d492ba9", + "metadata": {}, + "outputs": [], + "source": [ + "# Temporary manual mode override; waiting for pyvista release including changes from https://github.com/pyvista/pyvista/pull/5798\n", + "\n", + "pv.global_theme.trame.server_proxy_enabled = False\n", + "pv.global_theme.trame.jupyter_extension_enabled = True" + ] + }, { "cell_type": "code", "execution_count": null, @@ -250,7 +263,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.17" + "version": "3.9.18" } }, "nbformat": 4, diff --git a/examples/radar.ipynb b/examples/radar.ipynb index 3f683db..8c900f3 100644 --- a/examples/radar.ipynb +++ b/examples/radar.ipynb @@ -30,6 +30,19 @@ "pv.set_jupyter_backend(\"server\")" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "1dc11e2d-e134-47f4-b0f7-d7ccf9742822", + "metadata": {}, + "outputs": [], + "source": [ + "# Temporary manual mode override; waiting for pyvista release including changes from https://github.com/pyvista/pyvista/pull/5798\n", + "\n", + "pv.global_theme.trame.server_proxy_enabled = False\n", + "pv.global_theme.trame.jupyter_extension_enabled = True" + ] + }, { "attachments": {}, "cell_type": "markdown", @@ -163,7 +176,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.17" + "version": "3.9.18" } }, "nbformat": 4, diff --git a/examples/sea_temps.ipynb b/examples/sea_temps.ipynb index 19d475e..afc2c47 100644 --- a/examples/sea_temps.ipynb +++ b/examples/sea_temps.ipynb @@ -12,6 +12,20 @@ "from pvxarray.vtk_source import PyVistaXarraySource\n" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "a6eddc4e-815c-4a32-a39a-efbfb117eafc", + "metadata": {}, + "outputs": [], + "source": [ + "# Temporary manual mode override; waiting for pyvista release including changes from https://github.com/pyvista/pyvista/pull/5798\n", + "import pyvista as pv \n", + "\n", + "pv.global_theme.trame.server_proxy_enabled = False\n", + "pv.global_theme.trame.jupyter_extension_enabled = True" + ] + }, { "cell_type": "code", "execution_count": null, @@ -59,7 +73,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.17" + "version": "3.9.18" }, "toc": { "base_numbering": 1, diff --git a/examples/simple.ipynb b/examples/simple.ipynb index 3cd88dc..ebcce59 100644 --- a/examples/simple.ipynb +++ b/examples/simple.ipynb @@ -15,6 +15,19 @@ "import numpy as np" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "9bec78fd-761c-4248-984e-6d91a8fd1308", + "metadata": {}, + "outputs": [], + "source": [ + "# Temporary manual mode override; waiting for pyvista release including changes from https://github.com/pyvista/pyvista/pull/5798\n", + "\n", + "pv.global_theme.trame.server_proxy_enabled = False\n", + "pv.global_theme.trame.jupyter_extension_enabled = True" + ] + }, { "cell_type": "code", "execution_count": null, @@ -123,7 +136,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.17" + "version": "3.9.18" } }, "nbformat": 4, diff --git a/pvxarray/io.py b/pvxarray/io.py index e5397ec..52fe1f5 100644 --- a/pvxarray/io.py +++ b/pvxarray/io.py @@ -92,14 +92,12 @@ def open_dataset( filename_or_obj, *, drop_variables=None, - attrs=None, force_ext=None, file_format=None, progress_bar=False, ): mesh = pv.read( filename_or_obj, - attrs=attrs, force_ext=force_ext, file_format=file_format, progress_bar=progress_bar,