import jupyter_client
a = jupyter_client.KernelManager()
a.kernel_name = "python3"
a.start_kernel()
p = a.client()
m = p.execute("print('Hello, World')")
Hi,Thanks for the reply.I tried using pieces of the code, and see that my code gets stuck onmsg = kernel.get_iopub_msg()
Is this normal?Thanks,Regards,Saurabh
On Monday, February 22, 2016 at 1:04:26 PM UTC-7, Jan Schulz wrote:Hi,
On 22 February 2016 at 20:54, <saso...@colorado.edu> wrote:
> I have a general question. So if I try to run code using jupyter_client, am
> I running against a running instance of Jupyter, or am I starting an
> instance everytime I need to run code?
You run it on a kernel which you started (-> `a.start_kernel()`), so
as long as that kernel is alive, you can run code on it (and the
previous defined variables/functions) are available.
Best,
Jan
--
Jan Schulz
mail: ja...@gmx.net
web: http://www.katzien.de
--
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 jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/081e9943-3715-4f5f-ad40-628bddc040c1%40googlegroups.com.
Here’s a script that runs some code with execute_interactive and captures various outputs.
-Min
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/3b83bc11-6762-49a4-a659-ba555c7ee7cb%40googlegroups.com.
Here is a simple jupyter_client wrapper for playing around: