File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,22 +19,39 @@ jobs:
1919 environment :
2020 name : github-pages
2121 url : ${{ steps.deployment.outputs.page_url }}
22+ defaults :
23+ run :
24+ shell : bash -leo pipefail {0}
2225 runs-on : ubuntu-latest
2326 steps :
2427 - uses : actions/checkout@v5
2528
2629 - name : Set up Pages
2730 uses : actions/configure-pages@v5
2831
29- - name : Set up Python
32+ - name : Set up conda env
3033 uses : mamba-org/setup-micromamba@v2
3134 with :
3235 environment-file : environment.yml
3336 cache-environment : true
37+ create-args : >-
38+ ipywidgets
39+ trame
40+
41+ - name : Install JB2
42+ run : python -m pip install -U --pre "jupyter-book==2.*" --no-deps -v
43+
44+ # - name: Set up PyVista
45+ # uses: pyvista/setup-headless-display-action@v4
46+ # with:
47+ # pyvista: false
48+
49+ - name : Execute the notebook
50+ # JB2 has --execute, but this way we can see how long it takes
51+ run : jupyter nbconvert --to notebook --execute --inplace 03-viz.ipynb
3452
3553 - name : Build HTML
36- run : jupyter-book build --html --execute --strict --ci
37- shell : micromamba-shell {0}
54+ run : jupyter book build --html --strict --ci
3855
3956 - name : Upload artifact
4057 uses : actions/upload-pages-artifact@v4
Original file line number Diff line number Diff line change 1515 " title: Viz\n " ,
1616 " subtitle: Visualizing native-grid output in Python\n " ,
1717 " label: page:viz\n " ,
18+ " kernelspec:\n " ,
19+ " name: python3\n " ,
1820 " ---"
1921 ]
2022 },
7678 " import xarray as xr\n " ,
7779 " \n " ,
7880 " # https://docs.pyvista.org/user-guide/jupyter/index.html\n " ,
79- " pv.set_jupyter_backend(\" static\" )\n " ,
81+ " # if os.environ.get(\" CI\" , \" true\" ) == \" true\" :\n " ,
82+ " # pv.start_xvfb()\n " ,
83+ " # pv.set_jupyter_backend(\" static\" )\n " ,
84+ " pv.set_jupyter_backend(\" html\" )\n " ,
8085 " \n " ,
8186 " _ = xr.set_options(display_expand_data=False)"
8287 ]
You can’t perform that action at this time.
0 commit comments