File tree Expand file tree Collapse file tree 4 files changed +15
-27
lines changed
src/easydiffraction/plotting/plotters Expand file tree Collapse file tree 4 files changed +15
-27
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,14 @@ extra:
27
27
name : EasyDiffraction Library Source Code on GitHub
28
28
29
29
# 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'
39
38
40
39
# #################
41
40
# Add new settings
Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ docs = [
65
65
' pyyaml' , # YAML parser
66
66
]
67
67
visualization = [
68
- ' darkdetect' , # Detecting dark mode
69
- ' pandas' , # Displaying tables in juptyer notebooks
70
- ' plotly<6.1.0 ' , # Interactive plots. 0.6.0 => Empty charts in Jupyter notebooks ...
71
- ' py3Dmol' , # Visualisation of crystal structures
68
+ ' darkdetect' , # Detecting dark mode
69
+ ' pandas' , # Displaying tables in juptyer notebooks
70
+ ' plotly' , # Interactive plots
71
+ ' py3Dmol' , # Visualisation of crystal structures
72
72
]
73
73
74
74
[project .urls ]
@@ -115,7 +115,7 @@ source = 'versioningit' # Use versioningit to manage the version
115
115
[tool .versioningit .format ]
116
116
distance = ' {base_version}+d{distance}' # example: 0.5.8+d3, 1.2.3.post4+d2
117
117
dirty = ' {base_version}' # example: 0.5.8, 1.2.3.post4
118
- distance-dirty = ' {base_version}+d{distance}' #
118
+ distance-dirty = ' {base_version}+d{distance}' # see 1st example
119
119
120
120
# Configure how versioningit detects versions from Git
121
121
# - 'match' ensures it only considers tags starting with 'v'
Original file line number Diff line number Diff line change 12
12
display = None
13
13
HTML = None
14
14
15
- from easydiffraction .utils .utils import is_github_ci
15
+ from easydiffraction .utils .utils import is_pycharm
16
16
17
17
from .plotter_base import SERIES_CONFIG
18
18
from .plotter_base import PlotterBase
@@ -111,13 +111,7 @@ def plot(
111
111
112
112
# Show the figure
113
113
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 :
121
115
fig .show (config = config )
122
116
else :
123
117
html_fig = pio .to_html (
Original file line number Diff line number Diff line change 13
13
# introduction to EasyScience, EasyDiffraction is built on that framework and
14
14
# offers a high-level interface focused specifically for diffraction analysis.
15
15
#
16
- # This notebook is self-contained and designed for hands-on learning.
17
- # For more advanced features and additional capabilities of the EasyDiffraction
18
- # library, please see the official documentation:
19
- # https://docs.easydiffraction.org/lib
20
-
21
16
# This notebook is self-contained and designed for hands-on learning.
22
17
# However, if you're interested in exploring more advanced features or learning
23
18
# about additional capabilities of the EasyDiffraction library, please refer to
You can’t perform that action at this time.
0 commit comments