3 ms·
You can keep ipython kernel running in background if you want. Quick unscientific test showed that it didn't reduce ipython console startup time significantly.
by zokier 13y ago
You can keep ipython kernel running in background if you want. Quick unscientific test showed that it didn't reduce ipython console startup time significantly. But it should be possible to make a leaner console to connect to the kernel.
edit: my test was flawed, with more accurate test there is almost a full second time difference:
$ echo -n | time ipython console --existing kernel-29793.json
1.06user 0.06system 0:01.52elapsed 74%CPU (0avgtext+0avgdata 29968maxresident)k
0inputs+64outputs (0major+19245minor)pagefaults 0swaps
$ echo -n | time ipython console
1.07user 0.08system 0:02.40elapsed 48%CPU (0avgtext+0avgdata 30264maxresident)k
0inputs+72outputs (0major+20538minor)pagefaults 0swaps
of course two seconds is ridiculously slow either way