[jupyter] Re: Working on a Common Lisp Jupyter notebook server - and experiencing a crash in ipython code

2017-12-18 Thread Roland Weber
On Monday, December 18, 2017 at 3:00:23 PM UTC+1, Christian Schafmeister wrote: > > I fixed the problem last night - it turned out to be a threading issue. > When I rapidly evaluated notebook cells (hitting shift-enter really fast) > the Python in Jupyter Notebook would crash as shown. > Multiple

[jupyter] Re: Restart snippet numbering in the middle of a notebook?

2017-12-18 Thread Roland Weber
Restart the kernel before each section. That will clear all state in memory, and reset the execution count. -- 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 to j

[jupyter] Restart snippet numbering in the middle of a notebook?

2017-12-18 Thread insearchofanswers87
If I am writing a book chapter with many sections, is there any way for me to start over with snippet #1 at the beginning of each section? Or do I need to use separate notebooks for each section to accomplish that? So basically, I want to forget about the snippets earlier in the notebook and be

Re: [jupyter] What is the best tool for monitoring jupyter notebooks websockets communication?

2017-12-18 Thread Thomas Kluyver
Oh, I missed that it's related to widgets. Widgets won't work in the Qt console, because they need an HTML frontend. You might need to insert some debugging code. On 18 December 2017 at 16:28, Christian Schafmeister < drschafmeis...@gmail.com> wrote: > Thank you! > > I'll give qtconsole a whirl.

Re: [jupyter] Binary vs text websocket frames

2017-12-18 Thread Jason Grout
The websocket frames are sent in either binary or text, depending on whether there are binary buffers encoded in the message (it is a per-message decision, not an overall decision). The decision logic is here: https://github.com/jupyter/notebook/blob/ca50f1af5afb525fd95b98b2e61e69db28094467/noteboo

Re: [jupyter] What is the best tool for monitoring jupyter notebooks websockets communication?

2017-12-18 Thread Christian Schafmeister
Thank you! I'll give qtconsole a whirl. On Monday, December 18, 2017 at 9:31:48 AM UTC-5, takowl wrote: > > I'm not sure about monitoring websockets, but the websocket messages > should be directly translated from the ZMQ messages. If you run the Qt > console with the debug option (jupyter qtco

Re: [jupyter] What is the best tool for monitoring jupyter notebooks websockets communication?

2017-12-18 Thread Christian Schafmeister
Hi - thank you. I've got an undergraduate working on adding jupyter widgets 7.0 level support. I'm going to point him at this group so that he can benefit from it. I posted another question (https://groups.google.com/forum/#!topic/jupyter/CeFeG63Ckw8) on binary vs text websocket frames and

Re: [jupyter] What is the best tool for monitoring jupyter notebooks websockets communication?

2017-12-18 Thread s...@draves.org
awesome to hear someone is working on common lisp and widgets! we did similar work for the jvm and found chrome's network debug panel to be adequate. it breaks the websocket traffic into frames and displays the json contents nicely, including interactive unfolding of the contents. On Mon, Dec 18,

Re: [jupyter] What is the best tool for monitoring jupyter notebooks websockets communication?

2017-12-18 Thread Thomas Kluyver
I'm not sure about monitoring websockets, but the websocket messages should be directly translated from the ZMQ messages. If you run the Qt console with the debug option (jupyter qtconsole --debug --kernel mykernelname), it should show all the messages it sends and receives in the terminal where yo

[jupyter] Binary vs text websocket frames

2017-12-18 Thread Christian Schafmeister
Hello, How can I control whether the jupyter server sends binary websocket frames vs text websocket frames to the browser? When monitoring websocket traffic between an ipython jupyter notebook kernel and the browser, all websocket frames, both to the browser and from the browser are in websock

[jupyter] What is the best tool for monitoring jupyter notebooks websockets communication?

2017-12-18 Thread Christian Schafmeister
Howdy, We are developing a jupyter notebook kernel in Common Lisp that supports jupyter widgets. What is the best tool for monitoring jupyter notebooks websockets communication? We primarily develop on OS X We have used Firefox 56.0.2 with the "Websocket monitor" extension - but that will s

[jupyter] Re: Working on a Common Lisp Jupyter notebook server - and experiencing a crash in ipython code

2017-12-18 Thread Christian Schafmeister
Thank you so much for your reply! Beyond the ZMQ connection I had a very fuzzy idea of what was going on. Your explanation has started to fill in a lot of gaps. I fixed the problem last night - it turned out to be a threading issue. When I rapidly evaluated notebook cells (hitting shift-enter r