-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename common.txt to core.txt and added import message in try except
- Loading branch information
Showing
7 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
-r requirements/common.txt | ||
-r requirements/core.txt |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# core, plotly and tests | ||
|
||
-r common.txt | ||
-r core.txt | ||
-r plotly.txt | ||
|
||
# required for development | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# core + plotly plotting, no tests | ||
-r common.txt | ||
-r core.txt | ||
|
||
plotly==5.5.0 | ||
dash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
"""Import post run visualization app and Simulation plotting through plotly.""" | ||
|
||
from ...log import Tidy3dImportError | ||
|
||
# try to get the plotly packages, otherwise print a helpful error message. | ||
try: | ||
from jupyter_dash import JupyterDash | ||
from dash import Dash | ||
import plotly.graph_objects as go | ||
except ImportError as e: | ||
raise Tidy3dImportError( | ||
"Could not import plotly requirements. " | ||
"Ensure that tidy3d is installed with [plotly] requirements specified. " | ||
'``pip install "tidy3d-beta[plotly]" or `pip install -e ".[plotly]". ' | ||
"Or, install the dependencies directly with `pip install -r requirements/plotly.txt`" | ||
) from e | ||
|
||
from .app import SimulationDataApp | ||
from .simulation import SimulationPlotly |