1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

venv runs without jupyterlab-vim

This commit is contained in:
George Hunt 2021-03-08 01:57:10 +00:00
parent 9cd837cea5
commit 613d08f499
4 changed files with 44 additions and 2 deletions

View file

@ -0,0 +1,2 @@
notebook_dir: /opt/iiab/notebook
jupyter_venv: /opt/iiab/jupyter

View file

@ -0,0 +1,17 @@
- name: Make the directories to hold notebooks
file:
state: directory
path: '{{ notebook_dir }}'
- name: Use pip to install into a virtual environment
pip:
name:
- jupyterlab
#- jupyter_vim
virtualenv: "{{ jupyter_venv }}" # /opt/iiab/jupyter
virtualenv_site_packages: no
virtualenv_command: /usr/bin/virtualenv
virtualenv_python: python3
extra_args: "--no-cache-dir"
when: internet_available

View file

@ -0,0 +1,23 @@
- name: Install Jupyter if jupyter_installed not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: install.yml
when: jupyter_installed is undefined
#- include_tasks: enable-or-disable.yml
- name: Add 'jupyter' variable values to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: jupyter
option: "{{ item.option }}"
value: "{{ item.value | string }}"
with_items:
- option: name
value: Jupyter
- option: description
value: '"Raspberry Pi Jupyter python programming environment"'
- option: install
value: "{{ jupyter_install }}"
- option: enabled
value: "{{ jupyter_enabled }}"

View file

@ -564,8 +564,8 @@ phpmyadmin_enabled: False
vnstat_install: False
vnstat_enabled: False
jupyterhub_install: False
jupyterhub_enabled: False
jupyter_install: False
jupyter_enabled: False
# 9-LOCAL-ADDONS