Skip to content

Commit a8a68fb

Browse files
committed
Merge pull request #378 from plotly/offline-plot
offline `plot` command
2 parents 77f86cc + 9212e84 commit a8a68fb

File tree

6 files changed

+318
-299
lines changed

6 files changed

+318
-299
lines changed

CHANGELOG.md

+25
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
66

7+
## [1.9.4] - 2015-01-11
8+
### Added
9+
- Offline plotting now works outside of the IPython/Juypter notebook. Here's an example:
10+
```
11+
from plotly.offline import plot
12+
from plotly.graph_objs import Scatter
13+
14+
plot([Scatter(x=[1, 2, 3], y=[3, 1, 6])])
15+
```
16+
17+
This command works entirely locally. It writes to a local HTML file with the necessary [plotly.js](https://plot.ly/javascript) code to render the graph. Your browser will open the file after you make the call.
18+
19+
The call signature is very similar to `plotly.offline.iplot` and `plotly.plotly.plot` and `plotly.plotly.iplot`, so you can basically use these commands interchangeably.
20+
21+
If you want to publish your graphs to the web, use `plotly.plotly.plot`, as in:
22+
23+
```
24+
import plotly.plotly as py
25+
from plotly.graph_objs import Scatter
26+
27+
py.plot([Scatter(x=[1, 2, 3], y=[5, 1, 6])])
28+
```
29+
30+
This will upload the graph to your online plotly account.
31+
732
## [1.9.3] - 2015-12-08
833
### Added
934
- Check for `no_proxy` when determining if the streaming request should pass through a proxy in the chunked_requests submodule. Example: `no_proxy='my_stream_url'` and `http_proxy=my.proxy.ip:1234`, then `my_stream_url` will not get proxied. Previously it would.

0 commit comments

Comments
 (0)