https://github.com/caltechlibrary/caltechdata_plot
Demo interactive plotting tool that uses Bokeh server to produce an interactive plot by calling the caltechDATA (Invenio 3) API
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.6%) to scientific vocabulary
Keywords
Repository
Demo interactive plotting tool that uses Bokeh server to produce an interactive plot by calling the caltechDATA (Invenio 3) API
Basic Info
- Host: GitHub
- Owner: caltechlibrary
- License: other
- Language: Python
- Default Branch: master
- Homepage: http://plots.caltechlibrary.org
- Size: 14.6 KB
Statistics
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
caltechdata_plot
caltechdata_plot is a demo interactive plotting tool that uses Bokeh server to produce an interactive plot by calling the caltechDATA (Invenio 3) API
This is example is not general and only works with mineral spectra records 208 and 209.
Setup
- Install the Anaconda python distribution
- Install Bokeh by typing 'conda install bokeh'
- bokeh serve --show plot.py
AWS Setup
Instructions for setting up an AWS server that will show plots. This configuration has been tested on Ubuntu 16.04.
- Install Anaconda by downloading the installer below and following the prompts (you can update the links for new versions).
shell
curl https://repo.continuum.io/archive/Anaconda3-4.3.1-Linux-x86_64.sh > Anaconda3-4.3.1-Linux-x86_64.sh
bash Anaconda3-4.3.1-Linux-x86_64.sh
(You can also use a preconfigured AWS Anaconda community images, but this limits your choice of servers)
- Install Bokeh by typing 'conda install bokeh'
- Install nginx by typing 'sudo apt-get install nginx'
- Remove default and add configuration at '/etc/nginx/sites-enabled/plot'
```shell server { listen 80 defaultserver; servername plots.caltechlibrary.org;
access_log /tmp/bokeh.access.log;
error_log /tmp/bokeh.error.log debug;
location / {
proxy_pass http://127.0.0.1:5006;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host:$server_port;
proxy_buffering off;
}
} ```
- Restart web server with 'sudo service nginx restart'
- Add this configuration to /etc/systemd/system/plot.service
```shell [Unit] Description=Bokeh Plot After=syslog.target network.target remote-fs.target nss-lookup.target
[Service] Type=simple WorkingDirectory=/home/ubuntu/caltechdata_plot/ ExecStart=/home/ubuntu/anaconda3/bin/bokeh serve plot.py --allow-websocket-origin plots.caltechlibrary.org Restart=on-failure
[Install] WantedBy=multi-user.target ```
- Reload by typing 'sudo systemctl daemon-reload'
- You can start up bokeh with 'sudo systemctl start plot'
- Start the plotting server on reboot with 'sudo systemctl enable plot'
Command Line Usage
shell
bokeh serve plot.py
Owner
- Name: Caltech Library
- Login: caltechlibrary
- Kind: organization
- Email: helpdesk@library.caltech.edu
- Location: Pasadena, CA 91125
- Website: https://www.library.caltech.edu/
- Repositories: 84
- Profile: https://github.com/caltechlibrary
We manage the physical and digital holdings of the California Institute of Technology, provide services and training, and develop open-source software.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- tmorrell (1)