[jupyter] Re: How does jupyter show dataframe as html table ?

2017-12-19 Thread Lawrence D’Oliveiro
On Wednesday, December 20, 2017 at 3:13:55 PM UTC+13, Jeff Zhang wrote: > > Just wondering how does jupyter do that ? > Python code can format text output as HTML or Markdown, and can also output arbitrary PNG graphics and audio. Examples here

Re: [jupyter] Auto-running notebook and hooking an event on completion

2017-12-19 Thread Pouya Ghadimi Karahrodi
Is this resolved ? I am trying to automate a notebook run and conversion to pdf. The missing step is the save after the notebook run completion. I am managing this through commands: %run ./notebook.ipynb --inputParameters and then subprocess.call(["jupyter", "nbconvert"

[jupyter] How does jupyter show dataframe as html table ?

2017-12-19 Thread Jeff Zhang
Just wondering how does jupyter do that ? Is there any display hook for that ? and how's that implemented. 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

Re: [jupyter] Where can I find materials for how to use IPython api

2017-12-19 Thread Jeff Zhang
Thanks Thomas, I'd like to embed ipython into some kind of notebook like jupyter. So I'd like to use Ipython advanced apis for capturing the output, code completion and etc. 在 2017年12月19日星期二 UTC+8下午7:56:08,takowl写道: > > Hi Jeff, > > You could look at some IPython extensions to see how they

[jupyter] how to test for running server?

2017-12-19 Thread Tim Harsch
Hi all, I see with JupyterHub API you can POST or DELETE to /users/{name}/server but there doesn't seem to be a GET. If that's true is there another way I can test for a running server other than POST or DELETE which have their side effects?.. Thanks, Tim -- You received this message

[jupyter] Re: Where can I find materials for how to use IPython api

2017-12-19 Thread Lawrence D’Oliveiro
On Wednesday, December 20, 2017 at 12:51:28 AM UTC+13, Jeff Zhang wrote: > > > I'd like to embed IPython in my project, so I would use the internal api > of IPython. The only thing I can find for now is this link > https://ipython.readthedocs.io/en/stable/ > But what other materials that I can

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

2017-12-19 Thread Thomas Kluyver
I think the design of ZMQ is that each thread should have its own socket. But I don't know whether this would help with the issue you're seeing. And there may be an extra complication because the kernel binds the sockets (not connects), and I think only one socket can be bound to an endpoint at

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

2017-12-19 Thread Christian Schafmeister
Yes - this is how the pzmq (a Common Lisp wrapper library for the zmq library) works as well. Here is the code that I added the mutex to (it's Common Lisp but you should be able to read it): https://github.com/clasp-developers/cl-jupyter/blob/master/src/message.lisp#L300 The calls to

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

2017-12-19 Thread Thomas Kluyver
The Jupyter protocol relies on ZMQ 'multipart' messages. IIRC, a multipart message is a series of individual messages with the SNDMORE flag set on all but the last one. I don't know if those parts are meant to be separated out again if two threads are sending parts interleaved to the same

Re: [jupyter] Binary vs text websocket frames

2017-12-19 Thread Christian Schafmeister
Thank you very much! Our messages appear to always add a "buffers" field even when the list of buffers is empty. I'll fix that. On Monday, December 18, 2017 at 1:17:35 PM UTC-5, Jason Grout wrote: > > The websocket frames are sent in either binary or text, depending on > whether there are

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

2017-12-19 Thread Christian Schafmeister
I'm certain it's a problem on my kernel side, it has to do with sending messages to jupyter and not receiving them from jupyter. The messages are send out using multiple calls to the pzmq:send function and when multiple threads were doing this at the same time the messages got garbled. I

Re: [jupyter] Where can I find materials for how to use IPython api

2017-12-19 Thread Thomas Kluyver
Hi Jeff, You could look at some IPython extensions to see how they use the API: https://github.com/ipython/ipython/wiki/Extensions-Index . What sort of project are you planning to embed IPython into? Thomas On 19 December 2017 at 11:51, Jeff Zhang wrote: > > I'd like to

[jupyter] Where can I find materials for how to use IPython api

2017-12-19 Thread Jeff Zhang
I'd like to embed IPython in my project, so I would use the internal api of IPython. The only thing I can find for now is this link https://ipython.readthedocs.io/en/stable/ But what other materials that I can find for using IPython api. -- You received this message because you are