Skip to content

Instantly share code, notes, and snippets.

View dgerod's full-sized avatar
💬
Thinking...

Diego ER dgerod

💬
Thinking...
View GitHub Profile
@dgerod
dgerod / custom_run.py
Last active June 19, 2019 15:12
The %my_run command execute a script in IPython as %run does but searching the file in the user path in addition to the python path.
# =======================================================================================
# Startup file with magic functions: %my_run, %add_custom_path, %clean_custom_path and
# %show_custom_path, which runs stuff in the python path as well as user specified paths.
#
# The %my_run command executes a script as %run does but searching the script in
# the user path in addition to python path.
#
# ---------------------------------------------------------------------------------------
# This is a modification of the code done by Gaute Hope <gaute.hope@nersc.no> due to
# IPython issue 101