You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
625 B

{% from 'common.jinja2' import app_username, bin_dir %}
{% set profile_dir = '/home/' + app_username + '/.ipython/profile_default' %}
ipython-profile:
cmd.run:
- name: {{ bin_dir }}/ipython profile create
- runas: {{ app_username }}
- creates: {{ profile_dir }}
file.managed:
- name: {{ profile_dir }}/ipython_config.py
- contents:
- c.InteractiveShellApp.extensions = ['autoreload']
- c.InteractiveShellApp.exec_lines = ['%autoreload 2']
require:
- pip: pip-installs
automatic-activate:
file.append:
- name: '/home/{{ app_username }}/.bashrc'
- text: 'source activate'