cheng-chi / blender_notebook

A simple command line tool to wrap blender 2.8+ as a jupyter kernel.
MIT License
70 stars 18 forks source link

Jupyter kernel doesn't start in 2.90.1 #5

Open konstantin-anori opened 3 years ago

konstantin-anori commented 3 years ago

In blender 2.90.1 jupyter kernel hangs and after some time raises an exception: RuntimeError: Kernel didn't respond to kernel_info_request

There is a workaround: If after blender starts you create a new file (File->New->General) jupyter works fine.

It seems like the timer hack in kernel.py doesn't work any more. Kernel is started by loadHandler() when you create a new file.

I'd be very glad to fix it myself but don't know blender API well enough.

cheng-chi commented 3 years ago

Interesting, I will take a look this weekend.

cheng-chi commented 3 years ago

@konstantin-anori Sorry for the extreeeeeme delay. Just letting you know that I have started working on it. According to my experiment, 2.91 works if you launch it directly from a terminal (and launch kernel in browser), but fails if launched from vscode. Still investigating.

cheng-chi commented 3 years ago

@konstantin-anori Unable to reproduce your error

john-rogers commented 3 years ago

Many thanks for this cheng-chi, it's just what i needed. Although i experienced the same issue as konstantin-anori his fix worked for me. I'm using Blender 2.92 and python 3.7.4