Last active
January 3, 2021 16:12
-
-
Save nbraud/7c7374e2ab266397037c86c4133778be to your computer and use it in GitHub Desktop.
ipython#12753 crash testcase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
COMMAND_STYLE="$(tput bold)$(tput setaf 4)" | |
NOTICE_STYLE="$(tput bold)$(tput setaf 3)" | |
NORMAL_STYLE="$(tput sgr0)" | |
run() { | |
echo "${COMMAND_STYLE}\$ $@${NORMAL_STYLE}" | |
"$@" | |
echo | |
} | |
notice() { | |
echo "${NOTICE_STYLE}# $@${NORMAL_STYLE}" | |
} | |
trap "run rm -rf '${PWD}/py-nines'" EXIT | |
run git clone https://gitlab.com/chaotic-evil/reliability/py-nines.git | |
run cd py-nines | |
run python3 -m venv .venv | |
run . .venv/bin/activate | |
run pip install . IPython | |
notice "This IPython shell has broken tab-completion, and will crash after the first command where the user requested a completion" | |
run python3 -m IPython -i -c 'from nines import Probability' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment