Created
September 29, 2016 23:08
-
-
Save cfperez/eae59263a87aba9dbceff1e107e59efc to your computer and use it in GitHub Desktop.
Get the kernel name as it appears in htop/ps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from os.path import basename | |
| from IPython import get_ipython | |
| shell = get_ipython() | |
| print(basename(shell.kernel.config.IPKernelApp.connection_file)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment