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

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -