Skip to content

Local plot schema #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
## [1.13.0]
### Added
- Python 3.5 has been added as a tested environment for this package.

### Updated
- `plotly.plotly.create_animations` and `plotly.plotly.icreate_animations` now return appropriate error messages if the response is not successful.

### Changed
- The plot-schema from `https://api.plot.ly/plot-schema` is no longer updated on import.

## [1.12.12] - 2016-12-06
### Updated
- Updated `plotly.min.js` to version 1.20.5 for `plotly.offline`.
Expand Down
15 changes: 9 additions & 6 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ setup_subs :

update_default_schema :
@echo "Making sure the default-schema.json file is up to date"
python -c "import json;\
from plotly.graph_reference import GRAPH_REFERENCE;\
f = open('plotly/graph_reference/default-schema.json', 'w');\
json.dump(GRAPH_REFERENCE, f, indent=4, sort_keys=True,\
separators=(',', ': '));\
python -c "import requests;\
from requests.compat import json as _json;\
response = requests.get('https://api.plot.ly/v2/plot-schema?sha1');\
f = open('plotly/package_data/default-schema.json', 'w');\
_json.dump(response.json()['schema'], f, indent=4,\
sort_keys=True, separators=(',', ': '));\
f.close()"
@echo "Auto-generating graph objects based on updated default-schema."
python update_graph_objs.py

install : sync_subs
@echo ""
Expand Down Expand Up @@ -65,7 +68,7 @@ update_plotlyjs_for_offline :
cdn_url = 'https://cdn.plot.ly/plotly-latest.min.js';\
response = urllib2.urlopen(cdn_url);\
html = response.read();\
f = open('./plotly/offline/plotly.min.js', 'w');\
f = open('./plotly/package_data/plotly.min.js', 'w');\
f.write(html);\
f.close()"
@echo "---------------------------------"
Expand Down
1 change: 0 additions & 1 deletion plotly/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
PLOTLY_DIR = os.path.join(os.path.expanduser("~"), ".plotly")
CREDENTIALS_FILE = os.path.join(PLOTLY_DIR, ".credentials")
CONFIG_FILE = os.path.join(PLOTLY_DIR, ".config")
GRAPH_REFERENCE_FILE = os.path.join(PLOTLY_DIR, ".graph_reference")
TEST_DIR = os.path.join(os.path.expanduser("~"), ".test")
TEST_FILE = os.path.join(PLOTLY_DIR, ".permission_test")

Expand Down
Loading