question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

K3d freezes Jupyter notebook after showing a mesh

See original GitHub issue

I am using vtkplotter with Trimesh in Jupyter notebook, but the k3d display takes about 5 seconds to load every time I run the cell with the show command. So I want to disable the k3d display and just use the default separate window. Right now I do this by uninstalling k3d from my Python environment. Is there a better way?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
panangamcommented, Nov 23, 2019

This worked perfectly for me, thank you! I’m still surprised your machine could actually still run the scene smoothly with all the vertex colors. To clarify, did vtkplotter use to assume that all meshes come with a color for each vertex?

Another tangent question. Is there a way to show the plot so that Z-axis is pointing up?

1reaction
panangamcommented, Nov 20, 2019

Update.

  1. I replicated the same behavior in Chrome, Safari, and Firefox on Mac OSX 10.14.5 so it’s not a browser specific issue.
  2. Compared to my bare bone k3d mesh object, the vtkplotter-generated scene has a bunch of extra values associated with the mesh, along with a mysterious yellow color. Whenever I try to change any of the value, my notebook freezes up again as well. Seems like vtkplotter might generated a bunch of extra information that is being recalculated every render. Thoughts?

Also, vtkplotter scene seems to look a bit smoother. Do you use a different shader?

Screen Shot 2019-11-20 at 2 03 44 PM Screen Shot 2019-11-20 at 2 05 06 PM
Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter Notebook + Matplotlib; Freeze on plot.show()
Is this in Jupyter Notebook or something of the sort? Usually you shouldn't be able to do matplotlib.use('QT4Agg') import matplotlib.
Read more >
vedo API documentation
Package vedo. A python module for scientific analysis of 3D objects and point clouds based on VTK and numpy.
Read more >
How to reset a Jupyter notebook(to resolve kernel crashes)
TLDR: Run /dsa/scripts/nbclean.py with the path to the offending notebook to clear all code cell outputs when you cause your jupyter server to ......
Read more >
3d interactive data visualisation with K3D-jupyter
K3D -jupyter is a Jupyter notebook 3d visualization package created ... The following Python code will make a surface plot of a function...
Read more >
Windows/Jupyter/Netgen GUI issue - Kunena
The notebook hangs executing the first Python command after importing the ... the end of the notebook, then the kernel crashes, so I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found