Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6502

Run python script using existing ipython kernel without console

$
0
0

I can run a python script from a bash shell like so:

>> python script.py

I can also start an iPython kernel and connect multiple iPython consoles to the same kernel like so:

>> ipython kernel...To connect another client to this kernel, use:--existing kernel-8987.json

then, for as many consoles as I would like, I execute

>> jupyter console --existing kernel-8987.json

However, what I would like to do is start a kernel, but then run scripts without opening a console. I'd like to do something like this:

>> ipython --existing kernel-8987.json script.py

Is this possible to do this somehow?


Viewing all articles
Browse latest Browse all 6502

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>