python - "jump" to directory in ipython -
i'm trying create alias in ipython "jump" directory. example, work in home , scratch directories, , awesome if can switch between these directories. in bash, done line
alias sd='cd /scratch/users/"
how done in ipython? specifically, i'm using ipython version 0.11.
i looked @ $alias
, i'm doing wrong.
thanks!
defining own ipython magic functions explained here.
you'll want use chdir()
os module change working directory.
Comments
Post a Comment