Broken if no Internet Connection Available
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, python, vscode
- Ambito
- data-visualization, frontend
Direzione di ricerca
Riprodurre il problema con l’esempio PyVista Icosahedron mostrato in un notebook Python di VS Code offline, quindi esaminare lo stack trace di trame-vtk.js e l’output della console per sviluppatori. Tracciare quale risorsa o stato non è disponibile senza accesso a Internet e verificare che il grafico venga caricato correttamente offline quando le risorse necessarie sono incluse nel pacchetto o gestite localmente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- Desktop
OS:
- Windows
Browsers Affected:
- VS Code Python Notebook (i.e. Windows Webview2)
- Chrome
- Firefox
- Microsoft Edge
- Safari
- Opera
- Brave
- IE 11
- Lingua principale
- Python
- Stelle
- 705
- Fork
- 88
- Merge medio
- 1h 43m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Kitware/trame
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Trame maintenance tasksForse di nuovo libera @jourdain l’ha presa 195 giorni fa e non c’è nessuna pull request aperta. Aperta
Tutte le issue di Kitware/trame
Issue simili
-
intake mcp-intake needs-ac needs-human-review priority:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
Ikalus1988/MisakaNet#3848 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
521xueweihan/HelloGitHub#4105 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
igormcsouza/bookloud#54 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
aws-samples/sample-per-model-bedrock#526 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ok-oldking/ok-wuthering-waves#1802 ·
I maintainer di solito rispondono entro 2 giorni