|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
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}" \ |