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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -