Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvinwan/ds8-interact
side server for UC Berkeley DS8's JuypterHub deployment to copy remote notebooks into user accounts
https://github.com/alvinwan/ds8-interact
Last synced: about 2 months ago
JSON representation
side server for UC Berkeley DS8's JuypterHub deployment to copy remote notebooks into user accounts
- Host: GitHub
- URL: https://github.com/alvinwan/ds8-interact
- Owner: alvinwan
- License: apache-2.0
- Created: 2015-08-12T02:42:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-05T05:52:16.000Z (about 8 years ago)
- Last Synced: 2024-10-12T13:44:47.042Z (3 months ago)
- Language: Python
- Homepage: data8.org/text
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> **Note:** This project has been moved to Data 8's github repository at [https://github.com/data-8/DS8-Interact](https://github.com/data-8/DS8-Interact).
# DS8-Interact
side server for UC Berkeley DS8's JuypterHub deployment to copy remote notebooks
into user accounts# Getting Started
1. Create virtual environment `python3 -m venv env`.
2. Activate it. `source env/bin/activate`.
3. Install `pip install -r requirements.txt`.
4. Launch `python3 run.py`.
5. Test `py.test tests`.# Testing
Use `py.test tests`, or to see it in action:
1. Run the server `python run.py --development`.
2. From `remote` start another http server `python -m http.server`. This is a
dummy for the remote website, serving example notebooks.
3. Visit `http://localhost:8002/?file=http://localhost:8000/test.ipynb&destination=test.ipynb`
4. You will be redirected to the file on server; your browser may download
instead of serving it.
5. The file's contents will match that of remote/test.ipynb# Deploying
1. Setup in `/var/www/interact`.
2. Configurations are in `app/config.py`. Modify attributes accordingly in
`ProductionConfig`.
3. Run the server `python run.py --production`.
4. Point WSGI to `/var/www/interact/index.wsgi`.
5. Optionally use the *Apache2* configuration file.WSGI script and Apache configuration file assumes that the program is installed
under `/var/www/interact`.