Skip to content

Commit

Permalink
make pythreejs a soft dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nvaytet committed Nov 29, 2024
1 parent c61e3ea commit 3172273
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plopp/widgets/clip3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import ipywidgets as ipw
import numpy as np
import pythreejs as p3
import scipp as sc

from ..core import Node
Expand Down Expand Up @@ -80,6 +79,8 @@ def __init__(
width = (self._limits[w_axis][1] - self._limits[w_axis][0]).value
height = (self._limits[h_axis][1] - self._limits[h_axis][0]).value

import pythreejs as p3

self.outlines = [
p3.LineSegments(
geometry=p3.EdgesGeometry(
Expand Down

0 comments on commit 3172273

Please sign in to comment.