Thanks to visit codestin.com
Credit goes to github.com

Skip to content

2.0.0 #658

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 26 commits into from
Jan 19, 2017
Merged

2.0.0 #658

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e68cbf5
Try getting the error message in response_handler
alexandresobolevski Dec 21, 2016
19162af
Did not mean to commit this
alexandresobolevski Dec 21, 2016
35f3bcd
Always raise PlotlyRequestError
alexandresobolevski Dec 22, 2016
cf4d831
Change expected exception
alexandresobolevski Dec 22, 2016
cf159d6
Factor out `get_config` and `get_credentials`.
theengineear Dec 22, 2016
15d3c8b
Generalize our `PlotlyRequestError`.
theengineear Dec 27, 2016
c0c6e6c
Create organized api modules :tada:!
theengineear Dec 27, 2016
403034e
Use the new api definitions in all api calls.
theengineear Dec 27, 2016
a320248
Use `api.v2.plot_schema` to get GRAPH_REFERENCE.
theengineear Dec 27, 2016
4304f0e
:wrench: Allow `proxy_*` in `sign_in`.
theengineear Dec 27, 2016
6634971
Use requests.compat.json instead of plain json.
theengineear Dec 29, 2016
9832c11
:dolls: Remove outdated comment.
theengineear Jan 4, 2017
70e7211
Move FF from `tools.py` to `/figure_factory` pkg.
theengineear Jan 6, 2017
fb02d40
Stop doing weird protected imports for FF stuff.
theengineear Jan 6, 2017
c859ac0
Fix FF docs.
theengineear Jan 6, 2017
867fc11
Some pep:8ball: changes.
theengineear Jan 6, 2017
a617845
Add an `optional_imports` module.
theengineear Oct 2, 2015
51db9bc
Use `optional_imports` instead of `_*_imported`.
theengineear Jan 9, 2017
b7af7e3
Update CHANGELOG.md.
theengineear Jan 11, 2017
65ee9d2
Ensure `plot` sends layout along.
theengineear Jan 17, 2017
8fd6c8f
Namespace `session` import in `plotly.py`.
theengineear Jan 18, 2017
8ea90fe
Add `users.current` endpoint to v2 api.
theengineear Jan 18, 2017
0b6e010
Raise `PlotlyError` if sign_in fails.
theengineear Jan 18, 2017
1a6605f
Fail if user tries to import FF without `numpy`.
theengineear Jan 18, 2017
0259649
Move all FF tests into `test_optional`.
theengineear Jan 18, 2017
f1b4981
Version bump —> 2.0.0 (see CHANGELOG.md).
theengineear Jan 18, 2017
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
Prev Previous commit
Next Next commit
Ensure plot sends layout along.
I can’t believe that this wasn’t tested anywhere before!
  • Loading branch information
theengineear committed Jan 18, 2017
commit 65ee9d2b8cfba8a8d9f7ad6929f158fa35ecf3d2
1 change: 1 addition & 0 deletions plotly/plotly/plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def plot(figure_or_data, validate=True, **plot_options):

fig = tools._replace_newline(figure) # does not mutate figure
data = fig.get('data', [])
plot_options['layout'] = fig.get('layout', {})
response = v1.clientresp(data, **plot_options)

# Check if the url needs a secret key
Expand Down
9 changes: 7 additions & 2 deletions plotly/tests/test_core/test_plotly/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@ def test_plot_valid(self):
'x': [1, 2, 3],
'y': [2, 1, 2]
}
]
],
'layout': {'title': 'simple'}
}
py.plot(fig, auto_open=False, filename='plot_valid')
url = py.plot(fig, auto_open=False, filename='plot_valid')
saved_fig = py.get_figure(url)
self.assertEqual(saved_fig['data'][0]['x'], fig['data'][0]['x'])
self.assertEqual(saved_fig['data'][0]['y'], fig['data'][0]['y'])
self.assertEqual(saved_fig['layout']['title'], fig['layout']['title'])

@raises(PlotlyError)
def test_plot_invalid(self):
Expand Down