[jupyter] Re: how to test for running server?

2017-12-20 Thread Tim Harsch
Right. Sorry, I should have been more clear. In the case of DELETE, if you attempt to DELETE when no server is running you will get a HTTP 400 and no action taken. But, if you DELETE and a server is running then the server stops and you will get HTTP 204(I think). Similar logic for POST.

[jupyter] Re: how to test for running server?

2017-12-20 Thread Lawrence D’Oliveiro
On Wednesday, December 20, 2017 at 11:44:35 AM UTC+13, Tim Harsch wrote: > > 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

[jupyter] Planning to shutdown tmpnb.org in favor of mybinder.org

2017-12-20 Thread MinRK
tmpnb.org powers https://try.jupyter.org, and is a lightweight service for temporary notebook servers. However, tmpnb gets a lot less light as the number of users grows, and the scope of what we want to demo grows. Since tmpnb only allows serving a single repo, we’ve had to build an enormous

Re: [jupyter] Insert Current date - Markdown ?

2017-12-20 Thread Thomas Kluyver
Something like this extension? http://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/datestamper/readme.html If that's not quite what you're after, have a look through this list of extensions, there may be one that's closer:

[jupyter] Insert Current date - Markdown ?

2017-12-20 Thread Fionn Delahunty
Is it possible to have markdown update with the current date? Saves me updating the date each time I edit a file. -- 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] Re: How does jupyter show dataframe as html table ?

2017-12-20 Thread Thomas Kluyver
Plus overview docs here: http://ipython.readthedocs.io/en/stable/config/integrating.html#rich-display On 20 December 2017 at 07:08, Lawrence D’Oliveiro wrote: > On Wednesday, December 20, 2017 at 3:13:55 PM UTC+13, Jeff Zhang wrote: >> >> Just wondering how does jupyter

Re: [jupyter] IPython.notebook.kernel.execute() won't let me assign js UTF-8 strings

2017-12-20 Thread Thomas Kluyver
Hi Harris, Can you show the code that you're running? I'm having trouble following the description. Thomas On 20 December 2017 at 06:23, Harris Joseph wrote: > > To avoid collisions on the server's filesystem, I am trying to upload csv > files as strings directly

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

2017-12-20 Thread Fernando Perez
On Mon, Dec 18, 2017 at 10:48 PM, Roland Weber wrote: > Restart the kernel before each section. That will clear all state in > memory, and reset the execution count > You can also force that number to be any value with: ip = get_ipython() ip.history_manager.enabled = False

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

2017-12-20 Thread Thomas Kluyver
You could use the --execute option when you call nbconvert. On 20 December 2017 at 02:30, Pouya Ghadimi Karahrodi < pouya.ghad...@gmail.com> wrote: > 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

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

2017-12-20 Thread Charles Forelle
The pandas DataFrame class defines a _repr_html_ method that returns an HTML string. On Wed, Dec 20, 2017 at 2:13 AM Jeff Zhang wrote: > Just wondering how does jupyter do that ? Is there any display hook for > that ? and how's that implemented. Thanks > > > -- > You received