Skip to content

Instantly share code, notes, and snippets.

# 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:
@yingted
yingted / sync-acpi-intel.sh
Last active December 23, 2015 01:18 — forked from michel-slm/sync-acpi-intel.sh
Sync intel_backlight to acpi_video0 brightness using gamma.
#!/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