File tree Expand file tree Collapse file tree 2 files changed +10
-17
lines changed
src/easydiffraction/plotting/plotters Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,14 @@ extra:
2727 name : EasyDiffraction Library Source Code on GitHub
2828
2929# Jupyter notebooks
30- plugins :
31- - mkdocs-jupyter :
32- execute_ignore :
33- - ' quick*.ipynb'
34- - ' basic*.ipynb'
35- - ' advanced*.ipynb'
36- - ' cryst*.ipynb'
37- - ' pdf*.ipynb'
38- # - '*emcee*.ipynb' # Ignore notebooks with 'emcee' in the name from execution
30+ # plugins:
31+ # - mkdocs-jupyter:
32+ # execute_ignore:
33+ # - 'quick*.ipynb'
34+ # - 'basic*.ipynb'
35+ # - 'advanced*.ipynb'
36+ # - 'cryst*.ipynb'
37+ # - 'pdf*.ipynb'
3938
4039# #################
4140# Add new settings
Original file line number Diff line number Diff line change 1212 display = None
1313 HTML = None
1414
15- from easydiffraction .utils .utils import is_github_ci
15+ from easydiffraction .utils .utils import is_pycharm
1616
1717from .plotter_base import SERIES_CONFIG
1818from .plotter_base import PlotterBase
@@ -111,13 +111,7 @@ def plot(
111111
112112 # Show the figure
113113
114- # In GitHub CI builds (e.g., during Jupyter Book generation), avoid
115- #
116- # calling `fig.show()`
117- # because it can emit `application/vnd.plotly.v1+json` outputs that some toolchains warn about.
118- # Instead, convert the figure to HTML and display it directly.
119- # Use a regular Figure and show it
120- if not is_github_ci () or display is None or HTML is None :
114+ if is_pycharm () or display is None or HTML is None :
121115 fig .show (config = config )
122116 else :
123117 html_fig = pio .to_html (
You can’t perform that action at this time.
0 commit comments