Skip to content

Instantly share code, notes, and snippets.

@wakita
Last active July 14, 2020 02:25
Show Gist options
  • Save wakita/8b007afb4b422c816ed96bb6acef96ce to your computer and use it in GitHub Desktop.
Save wakita/8b007afb4b422c816ed96bb6acef96ce to your computer and use it in GitHub Desktop.
#!/bin/sh
mkdir -p venv logs
if [ ! -d examples ]; then
git clone https://github.com/joranbeasley/bokeh_wordcloud2.git
cp -r bokeh_wordcloud2/examples .
fi
option=$1
case "$option" in
pipi | git | clone)
rm -rf venv/$option
python3 -m venv venv/$option
source venv/$option/bin/activate
pip install --upgrade pip wheel bokeh;;
*)
echo "$0 {pipi | git | clone}"
esac
case $option in
pipi)
pip install git+https://github.com/joranbeasley/bokeh_wordcloud2.git#bokeh_wordcloud &> logs/$option-install.log;;
git)
pip install git+https://github.com/joranbeasley/bokeh_wordcloud2.git#bokeh_wordcloud &> logs/$option-install.log;;
clone)
#git clone git+https://github.com/joranbeasley/bokeh_wordcloud2.git
(cd bokeh_wordcloud2; pip install .) &> logs/$option-install.log;;
esac
python bokeh_wordcloud2/examples/simple_counts_static_html.py &> logs/$option-run.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment