= get_ipython().__class__.__name__ == 'ZMQInteractiveShell'
is_jupyter is_jupyter
True
To add existing environment as a jupyter kernel:
List kernels
Remove kernel
Install new kernel
To make sure path is always available in the jupyter kernel do the following (taken from here):
/Users/username/.ipython
add these lines (use i
to enter insert mode and Esc
to exit, save and quit as :wq
:
sys.path
can be different in python env and jupyter kernel. The solution that worked is here, in short, one has to compare the sys.executable
for both the environment AND jupyter kernel (this one is listed using jupyter kernelspec list
and looking into relevant kernel.json
file) a must-read that I still need to go over is here here.
In jupyter config file modify and uncomment following line: c.MultiKernelManager.default_kernel_name='newDefault' \n"