Skip to content

Commit

Permalink
Add env var to disable automatic WebVisualizer use in Jupyter environ…
Browse files Browse the repository at this point in the history
…ment (#6541)

* Add OPEN3D_DISABLE_WEB_VISUALIZER env var
---------
Co-authored-by: Sameer Sheorey <[email protected]>
  • Loading branch information
gutnar authored Dec 26, 2023
1 parent f2285b6 commit bd869d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/tutorial/visualization/web_visualizer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Additional notes on compatibility:
source for ARM. See the ``3rdparty/webrtc`` folder for more details.
- Google Colab and Kaggle notebook are not supported. You'll need to run you own
Jupyter or JupyterLab server.
- If you prefer using native windows (with blocking calls) instead of embedded
graphics in Jupyter cells, you can set the environment variable
``OPEN3D_DISABLE_WEB_VISUALIZER=true`` before importing Open3D.

Standalone mode
------------------
Expand Down
3 changes: 2 additions & 1 deletion python/open3d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def _insert_pybind_names(skip_names=()):
if int(sys.version_info[0]) < 3:
raise Exception("Open3D only supports Python 3.")

if _build_config["BUILD_JUPYTER_EXTENSION"]:
if _build_config["BUILD_JUPYTER_EXTENSION"] and os.environ.get(
"OPEN3D_DISABLE_WEB_VISUALIZER", "False").lower() != "true":
import platform
if not (platform.machine().startswith("arm") or
platform.machine().startswith("aarch")):
Expand Down

0 comments on commit bd869d4

Please sign in to comment.