Broken if no Internet Connection Available
Does not work without internet connection; gets stuck in loading screen. (using through pyvista, in a VS Code notebook) I belive the issue is with trame and not pyvista itself?
A clear and concise description of what the bug is. Before submitting, please remove unnecessary sections.
To Reproduce
Steps to reproduce the behavior:
- disable internet connection
- try to plot mesh in pyvista
Code
# disable internet, restart VS Code, create blank .ipynb
import pyvista as pv
pv.Icosahedron().plot()
developer console output:
index-5844b947.js:23 error: Uncaught TypeError: Cannot read properties of null (reading '0')
Fs.console.error @ index-5844b947.js:23
(anonymous) @ index-5844b947.js:23
setTimeout
i @ trame-vtk.js:1
Promise.then
t0 @ vue.global.js:5
updateViewState @ trame-vtk.js:3564
await in updateViewState
(anonymous) @ trame-vtk.js:3564
(anonymous) @ vue.global.js:5
tq @ vue.global.js:5
tW @ vue.global.js:5
t.__weh.t.__weh @ vue.global.js:5
t4 @ vue.global.js:5
ec @ vue.global.js:5
mount @ vue.global.js:5
t.mount @ vue.global.js:5
Fs @ index-5844b947.js:23
await in Fs
(anonymous) @ index-5844b947.js:23
trame-vtk.js:1 Uncaught TypeError: Cannot read properties of null (reading '0')
at Ge (trame-vtk.js:1:9731)
at t.setCameraShaderParameters (trame-vtk.js:189:8250)
at Q5.t.updateShaders (trame-vtk.js:7:15366)
at Q5.t.drawArrays (trame-vtk.js:7:14002)
at t.renderPieceDraw (trame-vtk.js:189:11585)
at t.renderPiece (trame-vtk.js:189:12388)
at t.render (trame-vtk.js:178:3470)
at t.opaquePass (trame-vtk.js:178:3204)
at t.apply (trame-vtk.js:1:62141)
at t.traverse (trame-vtk.js:1:62005)
Expected behavior
I don't think generally a python plotting package should be loading external resources please package all resources. I don't know what it is trying to load? The only thing i can see is that it depends on google fonts which are not available, but i don't see how that is causing the JavaScript error?
Platform:
Device:
- [x] Desktop
OS:
- [x] Windows
Browsers Affected:
- [x] VS Code Python Notebook (i.e. Windows Webview2)
- [ ] Chrome
- [ ] Firefox
- [ ] Microsoft Edge
- [ ] Safari
- [ ] Opera
- [ ] Brave
- [ ] IE 11
Done the following and it worked for me
uv venv -p 3.11
source .venv/bin/activate\n
uv pip install "pyvista[all]"
uv pip install jupyterlab
Turn wifi off
jupyter lab
Execute the following in the cell
import pyvista as pv
pv.Icosahedron().plot()
I can see the 3D view with everything
uv pip list
Package Version
------------------------- --------------
aiohappyeyeballs 2.6.1
aiohttp 3.12.13
aiosignal 1.3.2
anyio 4.9.0
appnope 0.1.4
argon2-cffi 25.1.0
argon2-cffi-bindings 21.2.0
arrow 1.3.0
asttokens 3.0.0
async-lru 2.0.5
attrs 25.3.0
babel 2.17.0
beautifulsoup4 4.13.4
bleach 6.2.0
certifi 2025.6.15
cffi 1.17.1
charset-normalizer 3.4.2
cmocean 4.0.3
colorcet 3.1.0
comm 0.2.2
contourpy 1.3.2
cycler 0.12.1
debugpy 1.8.14
decorator 5.2.1
defusedxml 0.7.1
executing 2.2.0
fastjsonschema 2.21.1
fonttools 4.58.4
fqdn 1.5.1
frozenlist 1.7.0
h11 0.16.0
httpcore 1.0.9
httpx 0.28.1
idna 3.10
imageio 2.37.0
ipykernel 6.29.5
ipython 9.3.0
ipython-pygments-lexers 1.1.1
ipywidgets 8.1.7
isoduration 20.11.0
jedi 0.19.2
jinja2 3.1.6
json5 0.12.0
jsonpointer 3.0.0
jsonschema 4.24.0
jsonschema-specifications 2025.4.1
jupyter-client 8.6.3
jupyter-core 5.8.1
jupyter-events 0.12.0
jupyter-lsp 2.2.5
jupyter-server 2.16.0
jupyter-server-proxy 4.4.0
jupyter-server-terminals 0.5.3
jupyterlab 4.4.4
jupyterlab-pygments 0.3.0
jupyterlab-server 2.27.3
jupyterlab-widgets 3.0.15
kiwisolver 1.4.8
markdown-it-py 3.0.0
markupsafe 3.0.2
matplotlib 3.10.3
matplotlib-inline 0.1.7
mdurl 0.1.2
meshio 5.3.5
mistune 3.1.3
more-itertools 10.7.0
msgpack 1.1.1
multidict 6.6.3
nbclient 0.10.2
nbconvert 7.16.6
nbformat 5.10.4
nest-asyncio 1.6.0
notebook-shim 0.2.4
numpy 2.3.1
overrides 7.7.0
packaging 25.0
pandocfilters 1.5.1
parso 0.8.4
pexpect 4.9.0
pillow 11.2.1
platformdirs 4.3.8
pooch 1.8.2
prometheus-client 0.22.1
prompt-toolkit 3.0.51
propcache 0.3.2
psutil 7.0.0
ptyprocess 0.7.0
pure-eval 0.2.3
pycparser 2.22
pygments 2.19.2
pyparsing 3.2.3
python-dateutil 2.9.0.post0
python-json-logger 3.3.0
pyvista 0.45.2
pyyaml 6.0.2
pyzmq 27.0.0
referencing 0.36.2
requests 2.32.4
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rich 14.0.0
rpds-py 0.25.1
scooby 0.10.1
send2trash 1.8.3
setuptools 80.9.0
simpervisor 1.0.0
six 1.17.0
sniffio 1.3.1
soupsieve 2.7
stack-data 0.6.3
terminado 0.18.1
tinycss2 1.4.0
tornado 6.5.1
traitlets 5.14.3
trame 3.10.2
trame-client 3.9.1
trame-common 1.0.0
trame-server 3.4.2
trame-vtk 2.9.0
trame-vuetify 3.0.1
types-python-dateutil 2.9.0.20250516
typing-extensions 4.14.0
uri-template 1.3.0
urllib3 2.5.0
vtk 9.4.2
wcwidth 0.2.13
webcolors 24.11.1
webencodings 0.5.1
websocket-client 1.8.0
widgetsnbextension 4.0.14
wslink 2.3.4
yarl 1.20.1