Skip to main content

IFC viewer AnyWidget using That Open Company Open BIM Components

Project description

IFC viewer anywidget

Display an IFC model in your Jupyter/marimo notebook.

Uses anywidget and IFCLite

  • Displays an ifcopenshell.file object using the IFCLite viewer
  • returns the list of GlobalIds of the selected elements via selected_guids attribute

marimo example

install

If you're using marimo in sandbox mode, skip this part. Marimo will detect the import and ask you to install the package.

If you're running JupyterLab, add the library to your environment:

pip install ifc-anywidget

if you're using uv (highly recommended), run

uv add ifc-anywidget

usage

from ifc_anywidget import IfcViewer
import ifcopenshell

model = ifcopenshell.open("my-awesome-model.ifc")
viewer = IfcViewer(ifc_model=model)
viewer

development

Clone the repo and run uv sync to initialize the environment with all the needed dependencies.

For testing within marimo, just run

uv run marimo edit tests/test_marimo.py

For testing within jupyter lab, run

uv run jupyter lab tests/test_jupyter.ipynb

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ifc_anywidget-0.4.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ifc_anywidget-0.4.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file ifc_anywidget-0.4.0.tar.gz.

File metadata

  • Download URL: ifc_anywidget-0.4.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ifc_anywidget-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ece6402e962101aa13dd1d32749b1bfcbb829ac5932edc8ac69752eb9ea61ae8
MD5 e63af660c9735cd99cf6cf299539cb66
BLAKE2b-256 2bfac61c7861eff15433704f37c18843336ccf764aac8e4e12926418f1f61266

See more details on using hashes here.

File details

Details for the file ifc_anywidget-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: ifc_anywidget-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ifc_anywidget-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01314ece592ae15490f7c0211cff6a07d851ad92b3972a526c57ec2f51f0b6d7
MD5 01651db26e2c627fa10ab8806a9884b7
BLAKE2b-256 6856a9576051498d829f5116e59db2a50572cc5cd06845a051fe677dd392123b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page