We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d360a9 commit 2c5450cCopy full SHA for 2c5450c
1 file changed
pymathics/vectorizedplot/__init__.py
@@ -24,7 +24,12 @@
24
25
from pymathics.vectorizedplot.version import __version__
26
27
-from .plot_plot3d import ContourPlot3D, ParametricPlot3D, SphericalPlot3D
+ALREADY_INSTALLED = True
28
+try:
29
+ from .plot_plot3d import ContourPlot3D, ParametricPlot3D, SphericalPlot3D
30
+except ModuleNotFoundError:
31
+ ALREADY_INSTALLED = False
32
+
33
34
# To be recognized as an external mathics module, the following variable
35
# is required:
@@ -40,9 +45,16 @@
40
45
41
46
42
47
__all__ = (
43
- "ContourPlot3D",
44
- "ParametricPlot3D",
- "SphericalPlot3D",
- "__version__",
- "pymathics_version_data",
48
+ (
49
+ "ContourPlot3D",
50
+ "ParametricPlot3D",
51
+ "SphericalPlot3D",
52
+ "__version__",
53
+ "pymathics_version_data",
54
+ )
55
+ if ALREADY_INSTALLED
56
+ else (
57
58
59
60
)
0 commit comments