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

  1. {% from 'common.jinja2' import app_username, bin_dir %}
  2. {% set profile_dir = '/home/' + app_username + '/.ipython/profile_default' %}
  3. ipython-profile:
  4. cmd.run:
  5. - name: {{ bin_dir }}/ipython profile create
  6. - runas: {{ app_username }}
  7. - creates: {{ profile_dir }}
  8. file.managed:
  9. - name: {{ profile_dir }}/ipython_config.py
  10. - contents:
  11. - c.InteractiveShellApp.extensions = ['autoreload']
  12. - c.InteractiveShellApp.exec_lines = ['%autoreload 2']
  13. require:
  14. - pip: pip-installs
  15. automatic-activate:
  16. file.append:
  17. - name: '/home/{{ app_username }}/.bashrc'
  18. - text: 'source activate'