Created
September 3, 2019 19:14
-
-
Save tmbdev/59dc5bbfb3d08a6881a1efe601835ee5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- | |
# Step 1: $ apt-get install ansible | |
# Step 2: $ ansible-playbook python3.yml | |
- hosts: "{{ host | default('localhost')}}" | |
become: yes | |
tasks: | |
- name: python3 apt | |
apt: | |
state: absent | |
name: | |
- python3-pip | |
- name: python3 apt | |
apt: | |
state: latest | |
name: | |
- libgraphviz-dev | |
- libpng-dev | |
- nodejs | |
- npm | |
- python3 | |
- python3-dev | |
- python3-pip | |
- python3-tk | |
- python3-autopep8 | |
- python3-future | |
- python3-futurist | |
- python3-h5py | |
- python3-imageio | |
- python3-isort | |
- python3-joblib | |
- python3-matplotlib | |
- python3-msgpack | |
- python3-pandas | |
#- python3-pygraph | |
- python3-pygraphviz | |
- python3-redis | |
- python3-scipy | |
- python3-simplejson | |
- python3-skimage | |
- python3-sklearn | |
- python3-sklearn-pandas | |
- python3-willow | |
- python3-zmq | |
- python3-numpy | |
- python3-numexpr | |
- python3-pexpect | |
- name: python3 pip | |
pip: | |
state: latest | |
executable: pip3 | |
name: | |
- pydot | |
- ipython | |
- jupyter | |
- jupyterlab | |
- jupyterlab-git | |
- jupyterlab-latex | |
- jupyterlab-gitlab | |
- bash_kernel | |
- sos | |
- sos-notebook | |
- sos-python | |
- sos-bash | |
- sos-rq | |
- xonsh_kernel | |
- graphviz | |
- sos-javascript | |
- sos-julia | |
- sos-java | |
# - pycallgraph | |
- braceexpand | |
- editdistance | |
- jupyter_contrib_nbextensions | |
- nbstripout | |
- jupytext | |
# $ python -m cProfile -o myscript.cprof myscript.py | |
# $ pyprof2calltree -k -i myscript.cprof | |
- pip: name=pyprof2calltree state=latest executable=pip3 | |
- pip: name=gprof2dot state=latest executable=pip3 | |
- apt: name=kcachegrind state=latest | |
- shell: python3 -m bash_kernel.install || true | |
- shell: python3 -m sos_notebook.install || true | |
- shell: python3 -m xonsh_kernel.install || true | |
- pip: state=latest executable=pip name=ipykernel | |
- shell: python -m ipykernel install || true | |
- pip: state=latest executable=pip3 name=git+git://github.com/jupyterlab/jupyterlab.git#egg=jupyterlab | |
- shell: jupyter labextension install transient-display-data | |
- shell: jupyter labextension install jupyterlab-sos | |
- pip: state=latest executable=pip3 name=rise | |
- shell: jupyter-nbextension install rise --py #--sys=prefix | |
- pip: state=latest executable=pip3 name=torch | |
- pip: state=latest executable=pip3 name=torchvision | |
- pip: state=latest executable=pip3 name=tensorflow-gpu | |
#- pip: state=latest executable=pip3 name=cleverhans | |
- shell: jupyter nbextension install --py jupytext | |
- shell: jupyter nbextension enable --py jupytext | |
- shell: jupyter lab build | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment