forked from holoviz-demos/gapminder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add anaconda-project.yml (holoviz-demos#1)
* Replaced .show() with .servable() * Added anaconda-project.yml * Update anaconda-project.yml Co-Authored-By: Julia Signell <jsignell@gmail.com> * Fixing up config and renaming
- Loading branch information
Showing
5 changed files
with
78 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# project-local contains your personal configuration choices and state | ||
/anaconda-project-local.yml | ||
|
||
# Files autocreated by Python | ||
__pycache__/ | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
|
||
# Notebook stuff | ||
/.ipynb_checkpoints | ||
|
||
# Spyder stuff | ||
/.spyderproject | ||
|
||
# Binder needs these file, but anaconda-project doesn't | ||
environment.yml | ||
panelserverextension.py | ||
postBuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# To reproduce: install 'anaconda-project', then 'anaconda-project run' | ||
name: gapminder | ||
description: | | ||
Using four different plotting libraries for Hans Rosling's gapminder | ||
example | ||
maintainers: | ||
- philippjfr | ||
|
||
channels: | ||
- pyviz | ||
- jbednar | ||
|
||
dependencies: &deps | ||
- python=3.6 | ||
- notebook ==5.7.8 | ||
- ipykernel ==5.1.0 | ||
- nomkl | ||
- altair | ||
- plotly | ||
- holoviews ==1.12.2 | ||
- hvplot ==0.4.0 | ||
- panel ==0.5.1 | ||
- param ==1.9.0 | ||
- pyviz_comms ==0.7.2 | ||
- bokeh ==1.1.0 | ||
- tornado<6 | ||
|
||
packages: *deps | ||
|
||
commands: | ||
dashboard: | ||
unix: panel serve gapminder.ipynb | ||
supports_http_options: true | ||
notebook: | ||
notebook: gapminder.ipynb | ||
test: | ||
unix: pytest --nbsmoke-run -k *.ipynb --ignore envs | ||
windows: pytest --nbsmoke-run -k *.ipynb --ignore envs | ||
env_spec: test | ||
lint: | ||
unix: pytest --nbsmoke-lint -k *.ipynb --ignore envs | ||
windows: pytest --nbsmoke-lint -k *.ipynb --ignore envs | ||
env_spec: test | ||
|
||
variables: {} | ||
downloads: {} | ||
|
||
env_specs: | ||
default: {} | ||
test: | ||
packages: | ||
- nbsmoke ==0.2.8 | ||
- pytest ==4.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from subprocess import Popen | ||
|
||
def load_jupyter_server_extension(nbapp): | ||
"""serve the app.ipynb directory with bokeh server""" | ||
Popen(["panel", "serve", "app.ipynb", "--allow-websocket-origin=*"]) | ||
"""serve the gapminder.ipynb directory with bokeh server""" | ||
Popen(["panel", "serve", "gapminder.ipynb", "--allow-websocket-origin=*"]) |