🐛 Describe the bug
DEM_MapVisualization.ipynb calls pds4_tools.view() which requires Tkinter (a GUI library). This fails in any headless environment (CI, servers, macOS without a display) with ModuleNotFoundError: No module named '_tkinter'.
🕵️ Expected behavior
Notebook visualizes the DEM data without requiring a GUI window.
📜 To Reproduce
- Install
requirements-geo.txt
- Run
notebooks/discipline/geo/DEM_MapVisualization.ipynb
- Cell calling
pds4_tools.view(xml_urls[1][0]) raises ModuleNotFoundError: No module named '_tkinter'
⚙️ Fix
Replace the pds4_tools.view() GUI call with inline matplotlib rendering using pds4_tools.read() to load the data and then plot it directly. The viewer is convenient locally but incompatible with headless or CI execution.
🖥 Environment Info
- pds4-tools~=1.4, Python 3.13.1, macOS headless via nbmake
🐛 Describe the bug
DEM_MapVisualization.ipynbcallspds4_tools.view()which requires Tkinter (a GUI library). This fails in any headless environment (CI, servers, macOS without a display) withModuleNotFoundError: No module named '_tkinter'.🕵️ Expected behavior
Notebook visualizes the DEM data without requiring a GUI window.
📜 To Reproduce
requirements-geo.txtnotebooks/discipline/geo/DEM_MapVisualization.ipynbpds4_tools.view(xml_urls[1][0])raisesModuleNotFoundError: No module named '_tkinter'⚙️ Fix
Replace the
pds4_tools.view()GUI call with inline matplotlib rendering usingpds4_tools.read()to load the data and then plot it directly. The viewer is convenient locally but incompatible with headless or CI execution.🖥 Environment Info