This file contains 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
# solution for: | |
# https://stackoverflow.com/questions/12544056/how-to-i-get-the-current-ipython-notebook-name | |
# | |
# aimed at: | |
# IPython 4.3.0 | |
''' | |
Library for getting the name of a Jupyter notebook from within an IPython | |
kernel launched for the notebook. | |
Probably doesn't work on OS X. | |
Usage: |
This file contains 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
#!/bin/sh | |
# Copyright (c) 2013, Ted Ying | |
# Permission is hereby granted, without written agreement and without | |
# license or royalty fees, to use, copy, modify, and distribute this | |
# software and its documentation for any purpose, provided that the | |
# above copyright notice and the following two paragraphs appear in | |
# all copies of this software. | |
# | |
# IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR | |
# DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |