I have problem with jupyter notebooks which were working fine, but now I get no plot outputs. Sometimes I get the error “a webpage is slowing down your browser”, for example with this program if I uncomment the updatemenus
section:
import plotly.express as px
df = px.data.iris()
fig = px.scatter_3d(df, x='sepal_length', y='sepal_width', z='petal_width',
color='species', size='petal_length' ,text='species_id' )
fig.update_layout(scene_aspectmode='data')
# fig.update_layout(updatemenus=[
# dict(
# buttons=list([
# dict(
# args=['size','sepal_length'],
# label='sepal length',
# method='update'
# ),
# dict(
# args=['size','sepal_width'],
# label='sepal width',
# method='update'
# )
# ]),
# showactive=True,
# )
# ])
fig.show()
This is happening in both linux and windows. Has there been some recent update that could cause this?
Quick update, this seems to only be a 3D plot problem. If I use px.scatter it’s fine.
nvidia (manjaro linux): 460.56-1
nvidia (windows): 442.5
I think I’ve narrowed the problem down a bit further. Tried again on a different windows machine. The 3D plots fail again in firefox, but work in chrome.
Marcas
March 18, 2021, 4:57pm
4
I had similar problems with Firefox. It was due to my security setting, which are pretty tight. I managed to find some settings to make it workable. I’m not an expert but suspect that general security of FF browser may be responsible for some problem with Dash. I use it anyway
Thanks, but so far changing the security settings doesn’t help.
I have little more info from looking at the web console, I get these errors:
WebGL warning: checkFramebufferStatus: Using format enabled by implicitly enabled extension: WEBGL_color_buffer_float. For maximal portability enable it explicitly.
Script terminated by timeout at:
modifyPixelData@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb:65:34
computeOffScreenCanvas@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb:107:21
apply@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb:129:64
[601]</e.exports/<@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:79867
[601]</e.exports@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:79932
[600]</e.exports@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:77221
s/c[e]<@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:34:54090
s@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:34:54194
[255]</</</u.update@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:34:54572
[255]</</</e.exports@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:34:53354
[250]</f.update@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:34:36999
[250]</e.exports@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:34:33608
createScene@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:34:177081
[880]</w.tryCreatePlot@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:803550
[880]</w.initializeGLPlot@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:804319
_@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:802869
[870]</r.plot@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:788114
[818]</r.drawData@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:582789
[778]</c.syncOrAsync@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:470349
[814]</r.plot@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:559392
[814]</r.newPlot@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:67:554251
@http://localhost:8888/notebooks/run/.../.../Untitled2.ipynb line 2 > injectedScript:1:248
execCb@http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:1693:33
check@http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:881:51
enable@http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:1173:22
init@http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:786:26
localRequire/<@http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:1457:36
Source map error: Error: request failed with status 404
Resource URL: http://localhost:8888/static/notebook/js/main.min.js?v=3d694ae0395dfef075eb0c5e8f10a21a8689f66b1e109f0c303b3573fd6512da3aebdc33284fe88676520a882517a504aec0051332d7d513d7c542465fc96b6f
Source Map URL: main.min.js.map
oat
February 15, 2022, 9:24am
6
I got similar error message and an empty windown in Firefox when trying to plot more than 1 million points in 3D scatter plot using go.Sctter3D :
WebGL warning: checkFramebufferStatus: Using format enabled by implicitly enabled extension: WEBGL_color_buffer_float. For maximal portability enable it explicitly.
However, I can get the plot shown when I reduce the num of points to close to or below 1 million…
I suspects this issue could be dependent on graphic card (I’m using NVIDIA Quadro RTX 4000 with 71.8GB memory) and also web browerser (same plot is not shown in Chrome, Brave, and Edge at all)