File size: 860 Bytes
8e2350f
 
 
 
4a99b94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Write some commands here that will run on root user before startup.
# For example, to clone transformers and install it in dev mode:
# git clone https://github.com/huggingface/transformers.git
# cd transformers && pip install -e ".[dev]"

# sudo -H pip install --upgrade pip
sudo -H pip install virtualenv


mkdir ~/my_project_dir
cd ~/my_project_dir
virtualenv my_project_env
source my_project_env/bin/activate
pip install jupyter


jupyter notebook \
    --ip 0.0.0.0 \
    --port 7183 \
    --no-browser \
    --allow-root \ 
    --NotebookApp.token='a' \
    --NotebookApp.password='' \
    --NotebookApp.allow_origin='*' \
    --NotebookApp.disable_check_xsrf=True \
    --NotebookApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \
    --NotebookApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \