Oh I see you want the name of the file, not the directory. On Mon, Jun 19, 2017 at 2:30 PM, [email protected] <[email protected]> wrote:
> Isn't the Python kernel run with its current working directory set to be > the same as the noteobook? > In which case you can os.getcwd()...? > perhaps I misunderstand your objective. > > On Mon, Jun 19, 2017 at 2:17 PM, DG <[email protected]> wrote: > >> Thanks Roland! >> >> Changing the line of code to: >> sessions = json.load(urllib2.urlopen('http://127.0.0.1:'+NB_Port+'/api/ >> sessions?token=e72d0fdd7891272a7db87f391c00dfead81a8659f43a917e')) >> >> >> Made the script work again. The token however was manually copied/pasted >> from the terminal after starting jupyter. >> >> Now the question becomes: How do I get the security token automatically? >> >> BTW, I could not find those "release notes" you mention, documenting >> /api/sessions. Care to point me to the correct location? >> >> -- >> 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 [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/jupyter/e3df37c0-2c21-480a-85f1-590439710329%40googlegroups.com >> <https://groups.google.com/d/msgid/jupyter/e3df37c0-2c21-480a-85f1-590439710329%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > BeakerNotebook.com > ScottDraves.com <http://www.ScottDraves.com> > @Scott_Draves <http://twitter.com/scott_draves> > > -- BeakerNotebook.com ScottDraves.com <http://www.ScottDraves.com> @Scott_Draves <http://twitter.com/scott_draves> -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAMaD%2Bf6o_tWU8m24OecSoT6%3Dc-q2E%3DU_uBZD4vhBKf0Ry2LZuw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
