python-adaptive / adaptive

:chart_with_upwards_trend: Adaptive: parallel active learning of mathematical functions

Home Page:http://adaptive.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Runner fails in the notebook

ncuxomun opened this issue · comments

Hi.

Thank you very much for sharing your project!

I have attempted to run some tutorials on my machine(s), OS: Windows 10 | Python 3.8.5, but the runner fails to execute. For example:
image.

Please note that when I tried running the examples on Binder, everything worked smoothly. Can you please help me resolve the issue because I would like to run a set of my experiments?

Thank you very much for your attention!

Could you try runner.task.print_stack() to see the error.

Could you try runner.task.print_stack() to see the error.

Hi, Bas. May I call you by your name?
Thanks for responding. Here is the error:
image

I think you are just missing the relevant bit of the error message here.

I screen'ed entire message in the notebook. How can I find the relevant bit?

The part that comes after the raise RuntimeError on the last line.

I ran the script version, and the error message is:
image

Could you try

pip install loky

and try again?

Hello!
Thank you so much for the suggestion - it worked! But I could not plot the figure as shown below:
image
I did not observe the plotting issue when I was facing the previous issue.

What version holoviews do you have installed?

It is holoviews 1.14.1, the version that is requested and installed when installing adaptive.

I can reproduce it after upgrading bokeh from 2.2.3 to 2.3.0.

I will come up with a fix.

This is this issue holoviz/holoviews#4848. HoloViews folks plan to have a release in the next few days.

In the meantime, you can fix it by doing

pip install -U bokeh=2.2.3

Thanks a lot! I think I should be good to start exploring the package.