[jupyter] ipywidgets: is there a potential race condition tween java-script and a python thread?

2016-12-23 Thread nleclercq . fr
Hi all, I'm currently evaluating a Jupyter based solution for our data acquisition and visualization platform. Concerning the acquisition part, the idea is to monitor the scan progression and provide some feedback to the user updating some (ipy)widgets - such as progress bar, text-area, ...

Re: [jupyter] any close notification for widgets and cells?

2016-12-22 Thread nleclercq . fr
Hi Sylvain, Je vois... So the best approach, for now, would be to hide the 'X' button and add a 'close' button to our widgets layout triggering the appropriate 'thread exit' code on python side. Ok, it doesn't cover the 'cell closed' case but could help. Thanks. N. Le jeudi 22 décembre 2016

Re: [jupyter] Re: any close notification for widgets and cells?

2016-12-21 Thread nleclercq . fr
Oops, complaining was not the idea. I simply thought that the answer were obvious for the average Jupiter user. I was wrong. Sorry for that and many thanks for replying. Le mercredi 21 décembre 2016 19:20:41 UTC+1, takowl a écrit : > > On 21 December 2016 at 17:38, wrote:

[jupyter] Re: any close notification for widgets and cells?

2016-12-21 Thread nleclercq . fr
No answer so far :( Are my questions stupid? A simple yes or no for each of them would really help. Thanks. -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email

[jupyter] any close notification for widgets and cells?

2016-12-20 Thread nleclercq . fr
Hi all, I need to stop a thread running in the background when the associated interface (i.e. main ipywidget) is closed or when the associated cell is deleted. Not doing so would lead to a bunch of zombie threads after a while. So my questions are: Is there a way to be notified when the user

Re: [jupyter] 'real-time' bqplot update from external source?

2016-12-19 Thread nleclercq . fr
Is this really as simple as that? Great! I had a look to bokeh and things are much more tricky... Thanks. Le lundi 19 décembre 2016 13:34:53 UTC+1, Min RK a écrit : > > If you fetch data in a background thread and update the bqplot object, > this should work. For the background updates to work