##// END OF EJS Templates
Python vs IPython: recommend %cd, %env over !cd, !export (#14629)...
Python vs IPython: recommend %cd, %env over !cd, !export (#14629) https://ipython.readthedocs.io/en/latest/interactive/python-ipython-diff.html#shell-assignment The quick overview mentioned `!cd DIR` among examples of shell commands one might use — but that doesn't work as user would hope (can only affect commands in same ! e.g. `!cd /; pwd`). That's not as bad now that `!cd` prints a warning, but IMHO better to provide the right mental model up front. => Replaced that with minimal motivation why `!cd` and `!export` can't work, recommending some %magic alternatives; moved it out of examples to not distract, and right before Magics section.

File last commit:

r27319:02470596
r29044:cb55d942 merge main
Show More
build_release
21 lines | 493 B | text/plain | TextLexer
#!/usr/bin/env python3
"""IPython release build script.
"""
import os
import sys
from toollib import sh, get_ipdir, cd, build_command
def build_release():
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
cd(ipdir)
# Build source and binary distros
sh(build_command)
# don't try to change, xz, bz2 deprecated.
sh(' '.join([sys.executable, 'tools/retar.py', 'dist/*.gz']))
if __name__ == '__main__':
build_release()