Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add env var to disable automatic WebVisualizer use in Jupyter environment #6541

Merged
merged 3 commits into from
Dec 26, 2023
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
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