Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel dead when running notebook in a server #37

Closed
vianamp opened this issue Jun 26, 2019 · 8 comments
Closed

Kernel dead when running notebook in a server #37

vianamp opened this issue Jun 26, 2019 · 8 comments
Labels

Comments

@vianamp
Copy link

vianamp commented Jun 26, 2019

I have a Jupyter notebook running on a server on a specific port and IP. The notebook runs fine locally however, the kernel dies when I run the notebook from another computer. The line that crashes is vp = Plotter(title='My title goes here').
I am running the notebook in the server with jupyter notebook --no-browser --port=8080 --ip 10.xxx.xx.xx. Access is done via http://10.xxx.xx.xx:8080/?token=xxx. Could you guys think of something else I can try? Thanks.

@marcomusy
Copy link
Owner

What is the output of:

# before importing anything

print(get_ipython())

from vtkplotter import settings

print(settings.notebookBackend)
print(settings.notebook_plotter)

@vianamp
Copy link
Author

vianamp commented Jun 26, 2019

I got this

<ipykernel.zmqshell.ZMQInteractiveShell object at 0x7ff9fa85f8d0>
k3d
None

@marcomusy
Copy link
Owner

..looks normal.. ..so this is already crashing?

from vtkplotter import settings, Plotter

vp = Plotter()

@vianamp
Copy link
Author

vianamp commented Jun 26, 2019

Yes, it crashes.

Could it be a Chrome-related problem?

@marcomusy
Copy link
Owner

marcomusy commented Jun 26, 2019

might be.. what if you run this instead:

import k3d

vertices = [
    -10, 0, -1,
    10, 0, -1,
    10, 0, 1,
    -10, 0, 1,
]

indices = [
    0, 1, 3,
    1, 2, 3
]

plot = k3d.plot()
plot += k3d.mesh(vertices, indices)
plot.display()

PS
you can also try if it crashes with:

vp = Plotter(screensize=(500,500))

@vianamp
Copy link
Author

vianamp commented Jun 26, 2019

Both codes worked!

Just by specifying screensize fixed my code. Any idea why is that?

@vianamp
Copy link
Author

vianamp commented Jun 26, 2019

Are you saying my 13inch screen isn't too big for the default screensize? :)

@marcomusy
Copy link
Owner

LOL ..no, that's because of a vtk call trying to get the physical size of your screen (which in your case does not exist since it on a server)..

It will be fixed in the next release, thanks for spotting the problem!
M.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants