-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Orca integration for static image export (#1120)
Integrates orca into plotly.py to support exporting figures as static images 🎉 See #1120 for discussion of architecture and API updates. Also adds new `test_orca/` test suite.
- Loading branch information
Showing
45 changed files
with
12,733 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
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ ! -d $HOME/miniconda/envs/circle_optional ]; then | ||
# Download miniconda | ||
if [ "$PYTHON_VERSION" = "2.7" ]; then | ||
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh | ||
else | ||
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | ||
fi | ||
|
||
chmod +x miniconda.sh | ||
|
||
# Install miniconda | ||
./miniconda.sh -b -p $HOME/miniconda | ||
|
||
# Create environment | ||
# PYTHON_VERSION=3.6 | ||
$HOME/miniconda/bin/conda create -n circle_optional --yes python=$PYTHON_VERSION \ | ||
requests six pytz retrying psutil pandas decorator pytest mock nose poppler | ||
|
||
# Install orca into environment | ||
$HOME/miniconda/bin/conda install --yes -n circle_optional -c plotly plotly-orca | ||
fi |
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 |
---|---|---|
|
@@ -35,3 +35,6 @@ venv | |
build | ||
dist | ||
plotly.egg-info/ | ||
|
||
plotly/tests/test_orca/images/*/failed | ||
plotly/tests/test_orca/images/*/tmp |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,2 @@ | ||
from ._orca import to_image, write_image | ||
from . import orca |
Oops, something went wrong.