Skip to content

Release 3.7.0 #1456

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 17 commits into from
Mar 8, 2019
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
110 changes: 5 additions & 105 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,6 @@ jobs:
command: 'tox -e py27-core'
no_output_timeout: 20m

python-3.4-core:
docker:
- image: circleci/python:3.4-stretch-node-browsers
environment:
PLOTLY_TOX_PYTHON_34: python3.4

steps:
- checkout
- run:
name: Install tox
command: 'sudo pip install tox'
- run:
name: Test with tox
command: 'tox -e py34-core'
no_output_timeout: 20m

python-3.5-core:
docker:
- image: circleci/python:3.5-stretch-node-browsers
Expand Down Expand Up @@ -103,26 +87,6 @@ jobs:
command: 'tox -e py27-optional'
no_output_timeout: 20m

python-3.4-optional:
docker:
- image: circleci/python:3.4-stretch-node-browsers
environment:
PLOTLY_TOX_PYTHON_34: python3.4

steps:
- checkout
- run:
name: Install tox
command: 'sudo pip install tox'
- run:
name: Install npm dependencies
command: cd plotly/tests/test_optional/test_jupyter && npm install
no_output_timeout: 20m
- run:
name: Test with tox
command: 'tox -e py34-optional'
no_output_timeout: 20m

python-3.5-optional:
docker:
- image: circleci/python:3.5-stretch-node-browsers
Expand Down Expand Up @@ -200,11 +164,11 @@ jobs:
command: 'tox -e py27-plot_ly'
no_output_timeout: 20m

python-3.4-plot_ly:
python-3.5-plot_ly:
docker:
- image: circleci/python:3.4-stretch-node-browsers
- image: circleci/python:3.5-stretch-node-browsers
environment:
PLOTLY_TOX_PYTHON_34: python3.4
PLOTLY_TOX_PYTHON_35: python3.5

steps:
- checkout
Expand All @@ -213,7 +177,7 @@ jobs:
command: 'sudo pip install tox'
- run:
name: Test with tox
command: 'tox -e py34-plot_ly'
command: 'tox -e py35-plot_ly'
no_output_timeout: 20m

python-3.7-plot_ly:
Expand Down Expand Up @@ -322,67 +286,6 @@ jobs:
- store_artifacts:
path: plotly/tests/test_orca/images/linux/failed


python-2-7-conda:
docker:
- image: continuumio/miniconda3:4.5.4
environment:
PYTHON_VERSION: 2.7

steps:
- checkout
- run:
name: Create packages
command: .circleci/create_conda_packages.sh
no_output_timeout: 20m
- store_artifacts:
path: artifacts

python-3-5-conda:
docker:
- image: continuumio/miniconda3:4.5.4
environment:
PYTHON_VERSION: 3.5

steps:
- checkout
- run:
name: Create packages
command: .circleci/create_conda_packages.sh
no_output_timeout: 20m
- store_artifacts:
path: artifacts

python-3-6-conda:
docker:
- image: continuumio/miniconda3:4.5.4
environment:
PYTHON_VERSION: 3.6

steps:
- checkout
- run:
name: Create packages
command: .circleci/create_conda_packages.sh
no_output_timeout: 20m
- store_artifacts:
path: artifacts

python-3-7-conda:
docker:
- image: continuumio/miniconda3:4.5.4
environment:
PYTHON_VERSION: 3.7

steps:
- checkout
- run:
name: Create packages
command: .circleci/create_conda_packages.sh
no_output_timeout: 20m
- store_artifacts:
path: artifacts

plotlyjs_dev_build:
docker:
- image: circleci/python:3.7-stretch-node-browsers
Expand Down Expand Up @@ -442,20 +345,17 @@ workflows:
build:
jobs:
- python-2.7-core
- python-3.4-core
- python-3.5-core
- python-3.6-core
- python-3.7-core
- python-2.7-optional
- python-3.4-optional
- python-3.5-optional
- python-3.6-optional
# 3.7 optional disabled due to current shapely incompatibility
# - python-3.7-optional
- python-2.7-plot_ly
- python-3.4-plot_ly
- python-3.5-plot_ly
- python-3.7-plot_ly
- python-2-7-orca
- python-3-5-orca
- python-3-7-orca

31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,37 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).


## [3.7.0] - 2019-03-08

### Updated
- Updated Plotly.js to version 1.45.2. See the
[plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#1452----2019-03-07)
for more information.

### Added
- Added new `auto_play` argument to offline `plot` and `iplot` to control
whether figures with frames are automatically animated when the figure is
loaded
([#1447](https://github.com/plotly/plotly.py/pull/1447))
- Added support for uploading "offline" animations (those with inline data
arrays rather than grid references) to Chart Studio using `plotly.plotly.create_animations`
([#1432](https://github.com/plotly/plotly.py/pull/1432))

### Updated
- Updated implementation of the `ternary_contour` figure factory that was
added in 3.6.0. The new implementation uses the native plotly.js ternary axes
and provides ILR transform support.
([#1418](https://github.com/plotly/plotly.py/pull/1418))

### Fixed
- Make sure the trace `selectedpoints` property of `FigureWidget` traces is
updated on the Python side in response to plotly.js selection events
([#1433](https://github.com/plotly/plotly.py/issues/1433))
- Fix validation for 0-dimensional numpy arrays
([#1444](https://github.com/plotly/plotly.py/pull/1444)). Special thanks to
[@ankokumoyashi](https://github.com/ankokumoyashi) for this contribution!

## [3.6.1] - 2019-02-08

### Updated
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ Built on top of [plotly.js](https://github.com/plotly/plotly.js), `plotly.py` is

plotly.py may be installed using pip...
```
pip install plotly==3.6.1
pip install plotly==3.7.0rc1
```

or conda.
```
conda install -c plotly plotly=3.6.1
conda install -c plotly/label/test plotly=3.7.0rc1
```

### Jupyter Notebook Support
Expand Down Expand Up @@ -126,10 +126,10 @@ set NODE_OPTIONS=--max-old-space-size=4096
jupyter labextension install @jupyter-widgets/[email protected] --no-build

# FigureWidget support
jupyter labextension install plotlywidget@0.7.1 --no-build
jupyter labextension install plotlywidget@0.8.0-rc.1 --no-build

# offline iplot support
jupyter labextension install @jupyterlab/[email protected].1 --no-build
jupyter labextension install @jupyterlab/[email protected].2 --no-build

# JupyterLab chart editor support (optional)
jupyter labextension install [email protected] --no-build
Expand Down Expand Up @@ -166,7 +166,7 @@ and orca can be installed according to the instructions in the [orca README](htt
If you're migrating from plotly.py version 2, please check out the [migration guide](migration-guide.md)

## Copyright and Licenses
Code and documentation copyright 2018 Plotly, Inc.
Code and documentation copyright 2019 Plotly, Inc.

Code released under the [MIT license](LICENSE.txt).

Expand Down
9 changes: 8 additions & 1 deletion codegen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ def preprocess_schema(plotly_schema):

layout['template'] = template

# Rename concentrationscales to colorscale to match conventions
items = plotly_schema['traces']['sankey']['attributes']\
['link']['colorscales']['items']

if 'concentrationscales' in items:
items['colorscale'] = items.pop('concentrationscales')


def perform_codegen():
# Set root codegen output directory
Expand Down Expand Up @@ -217,7 +224,7 @@ def perform_codegen():

# submodule import
if node.child_compound_datatypes:

path_to_datatype_import_info.setdefault(key, []).append(
(f"plotly.graph_objs{node.parent_dotpath_str}",
node.name_undercase)
Expand Down
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ incremented.
Update CHANGELOG with release date and update README with final versions.

In the conda installation instructions, be sure to change the
"-c plotly/lable/test" argument to "-c plotly"
"-c plotly/label/test" argument to "-c plotly"

Commit updates.

Expand Down
16 changes: 8 additions & 8 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plotlywidget",
"version": "0.7.1",
"version": "0.8.0",
"description": "The plotly.py ipywidgets library",
"author": "The plotly.py team",
"license": "MIT",
Expand Down Expand Up @@ -31,7 +31,7 @@
"ify-loader": "^1.1.0"
},
"dependencies": {
"plotly.js": "1.45.1",
"plotly.js": "1.45.2",
"@jupyter-widgets/base": "^1.0.0",
"lodash": "^4.17.4"
},
Expand Down
2 changes: 1 addition & 1 deletion js/src/Figure.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var widgets = require("@jupyter-widgets/base");
var _ = require("lodash");

window.PlotlyConfig = {MathJaxConfig: 'local'};
var Plotly = require("plotly.js/dist/plotly");
var Plotly = require("plotly.js/dist/plotly.min");
var PlotlyIndex = require("plotly.js/src/lib/index");
var semver_range = "^" + require("../package.json").version;

Expand Down
2 changes: 0 additions & 2 deletions js/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module.exports = [
path: path.resolve(__dirname, '..', 'plotlywidget', 'static'),
libraryTarget: 'amd'
},
devtool: 'source-map',
node: {
fs: 'empty'
},
Expand Down Expand Up @@ -67,7 +66,6 @@ module.exports = [
libraryTarget: 'amd',
publicPath: 'https://unpkg.com/plotlywidget@' + version + '/dist/'
},
devtool: 'source-map',
node: {
fs: 'empty'
},
Expand Down
2 changes: 1 addition & 1 deletion plotly/_widget_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# for automated dev builds
#
# It is edited by hand prior to official releases
__frontend_version__ = '0.7.1'
__frontend_version__ = '0.8.0'
7 changes: 7 additions & 0 deletions plotly/basedatatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4117,6 +4117,13 @@ def _dispatch_on_selection(self,
"""
Dispatch points and selector info to selection callbacks
"""
if 'selectedpoints' in self:
# Update the selectedpoints property, which will notify all views
# of the selection change. This is a special case because no
# restyle event is emitted by plotly.js on selection events
# even though these events update the selectedpoints property.
self.selectedpoints = points.point_inds

for callback in self._select_callbacks:
callback(self, points, selector)

Expand Down
14 changes: 7 additions & 7 deletions plotly/graph_objs/_sankey.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,14 @@ def link(self):
each `link`. If `link.color` is omitted, then
by default, a translucent grey link will be
used.
concentrationscaless
plotly.graph_objs.sankey.link.Concentrationscal
es instance or dict with compatible properties
concentrationscalesdefaults
colorscales
plotly.graph_objs.sankey.link.Colorscale
instance or dict with compatible properties
colorscaledefaults
When used in a template (as layout.template.dat
a.sankey.link.concentrationscalesdefaults),
sets the default property values to use for
elements of sankey.link.colorscales
a.sankey.link.colorscaledefaults), sets the
default property values to use for elements of
sankey.link.colorscales
colorsrc
Sets the source reference on plot.ly for color
.
Expand Down
Loading