Skip to content

Commit cfbebf7

Browse files
committed
Giving up on rendering the GeoVista in GHA for now
maybe try again when a newer GeoVista is released that supports current VTK
1 parent 69fc196 commit cfbebf7

File tree

1 file changed

+0
-61
lines changed

1 file changed

+0
-61
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -34,75 +34,14 @@ jobs:
3434
with:
3535
environment-file: environment.yml
3636
cache-environment: true
37-
# create-args: >-
38-
# libegl
39-
# libgles
40-
# mesalib
41-
# ipywidgets
42-
# trame
43-
# trame-vtk
44-
# trame-vuetify
45-
4637
- name: Install JB2
4738
run: python -m pip install -U --pre "jupyter-book==2.*" --no-deps -v
4839

49-
# - name: Set up PyVista
50-
# # libglx-mesa0, libgl1, xvfb already present in ubuntu-24.04
51-
# run: |
52-
# sudo apt-get update
53-
# sudo apt-get install -y libgl1-mesa-dri
54-
# # sudo apt-get install -y libosmesa6
55-
56-
# - name: Start xvfb
57-
# run: python -c "import pyvista as pv; pv.start_xvfb()"
58-
59-
# - name: PyVista test
60-
# # xvfb-run -s "-screen 0 1024x768x24" python -c '
61-
# run: |
62-
# python -c '
63-
# import os
64-
# import vtk
65-
# import pyvista as pv
66-
67-
# # pv.BUILDING_GALLERY = True
68-
69-
# print("=== Environment variables ===")
70-
# print("VTK_DEFAULT_OPENGL_WINDOW =", os.environ.get("VTK_DEFAULT_OPENGL_WINDOW"))
71-
# print("PYVISTA_OFF_SCREEN =", os.environ.get("PYVISTA_OFF_SCREEN"))
72-
73-
# print("\n=== VTK backend check ===")
74-
# rw = vtk.vtkRenderWindow()
75-
# print("RenderWindow backend:", rw.GetClassName())
76-
77-
# print("\n=== PyVista backend check ===")
78-
# # print("PyVista rendering_backend:", pv.global_theme.rendering_backend)
79-
80-
# # Force PyVista to off-screen if not already
81-
# # pv.global_theme.off_screen = True
82-
# print("PyVista OFF_SCREEN before:", pv.OFF_SCREEN)
83-
# pv.OFF_SCREEN = True
84-
85-
# print("\n=== Rendering test ===")
86-
# sphere = pv.Sphere()
87-
# plotter = pv.Plotter(off_screen=True)
88-
# plotter.add_mesh(sphere, color="tomato")
89-
# plotter.show(screenshot="backend_test.png")
90-
# print("Rendered sphere saved as backend_test.png")
91-
# '
92-
# env:
93-
# PYVISTA_OFF_SCREEN: true
94-
# # VTK_DEFAULT_OPENGL_WINDOW: vtkOSOpenGLRenderWindow
95-
# # VTK_DEFAULT_OPENGL_WINDOW: vtkXOpenGLRenderWindow
96-
9740
# JB2 has --execute, but this way we can see how long it takes
9841
- name: Execute the notebook
9942
run: jupyter nbconvert --to notebook --execute --inplace 03-viz.ipynb
10043
env:
10144
PYVISTA_OFF_SCREEN: true
102-
# VTK_DEFAULT_BACKEND: X
103-
# VTK_USE_OSMESA: "1"
104-
# VTK_DEFAULT_OPENGL_WINDOW: vtkOSOpenGLRenderWindow
105-
# VTK_DEFAULT_OPENGL_WINDOW: vtkXOpenGLRenderWindow
10645

10746
- name: Build HTML
10847
run: jupyter book build --html --strict --ci

0 commit comments

Comments
 (0)