Skip to content

Commit 1cc7234

Browse files
committed
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plotly.py into ipyplotly_integration
merging from remote base
2 parents 959e24f + cad341d commit 1cc7234

File tree

12 files changed

+210
-129
lines changed

12 files changed

+210
-129
lines changed

contributing.md

+21
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,20 @@ pip install -r optional-requirements.txt
117117
$ jupyter nbextension install --py --symlink --sys-prefix plotlywidget
118118
$ jupyter nbextension enable --py --sys-prefix plotlywidget
119119

120+
## Update to a new version of Plotly.js
121+
First update the version of the `plotly.js` dependency in `js/package.json`.
122+
123+
Then run the `updateplotlyjs` command with:
124+
125+
```bash
126+
$ python setup.py updateplotlyjs
127+
```
128+
129+
This will download new versions of `plot-schema.json` and `plotly.min.js` from
130+
the `plotly/plotly.js` GitHub repository (and place them in
131+
`plotly/package_data`). It will then regenerate all of the `graph_objs`
132+
classes based on the new schema.
133+
120134
## Testing
121135

122136
We take advantage of two tools to run tests:
@@ -221,5 +235,12 @@ And ask one of your friends to do it too. Our tests should catch any issues, but
221235

222236
<3 Team Plotly
223237

238+
#### Publish widget library to npm
239+
240+
```bash
241+
cd ./js
242+
npm publish --access public
243+
```
244+
224245
# Contributing to the Figure Factories
225246
If you are interested in contributing to the ever-growing Plotly figure factory library in Python, check out the [documentation](https://github.com/plotly/plotly.py/blob/master/plotly/figure_factory/README.md) to learn how.

js/package-lock.json

+70-79
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plotlywidget",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "The plotly.py ipywidgets library",
55
"author": "The plotly.py team",
66
"license": "MIT",
@@ -31,7 +31,7 @@
3131
"ify-loader": "^1.1.0"
3232
},
3333
"dependencies": {
34-
"plotly.js": "1.38.2",
34+
"plotly.js": "1.38.3",
3535
"@jupyter-widgets/base": "^1.0.0",
3636
"lodash": "^4.17.4"
3737
},

0 commit comments

Comments
 (0)