Skip to content
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

[WIP] Plotly 3.0.0 - Deep Jupyter Integration, Validation, Performance, and More #942

Merged
merged 279 commits into from Jul 5, 2018
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
279 commits
Select commit Hold shift + click to select a range
9a738c5
Added examples to documentation of standalone utility functions
Mar 19, 2018
f55d043
JSLint-cleanup of Figure.js
Mar 19, 2018
13ba045
Big refactor of codegen and project output structure
Mar 21, 2018
3a972e1
Added back support for subplots and anchor properties with suffix of 1
Mar 25, 2018
3773ba9
Some matplotlylib fixes
Mar 25, 2018
2c68db5
Some fixes for bullet figure_factor
Mar 25, 2018
8756f5e
Review and cleanup of codegen package
Mar 26, 2018
c154dd6
merge from ipyplotly_integration
Kully Mar 27, 2018
01d597d
Cleanup/review of basevalidators.py
Mar 27, 2018
aea6dfe
Codegen text wrapping refinements
Mar 29, 2018
0eeaaa5
Review / cleanup of basedatatypes.py
Mar 29, 2018
144325b
Return trace/layout deltas for do_* operations even if source_view_id…
Apr 1, 2018
8a7b476
Fix for broken Frame() constructor
Apr 3, 2018
45ec084
Added validator tests.
Apr 3, 2018
e5eed19
Remove PEP484 type annotations from codegen properties (docstring ins…
Apr 4, 2018
69d6b5c
Don't autoimport graph_objs submodules
Apr 4, 2018
d537452
Completed review / cleanup of basedatatypes.py
Apr 5, 2018
c937f8e
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully Apr 5, 2018
ccbd940
Add support for `strict` option to in string validator
Apr 6, 2018
1d5db95
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully Apr 6, 2018
5bd77f3
Cleanup / review of basewidget.py
Apr 7, 2018
58629de
Cleanup / review of callbacks.py
Apr 7, 2018
6f6672e
Cleanup / review of serializers.py: Removed traitlets dependency from…
Apr 7, 2018
4e57805
Don't normalize color string during coercion
Apr 8, 2018
a62e412
Optimize imports and re-enable recursive submodule imports
Apr 8, 2018
b5e4131
Making numpy an optional dependency
Apr 10, 2018
b74ff02
When building relayout/restyle strings don't use brackets
Apr 12, 2018
53ee212
Dispaatch changes to callbacks after sending udpate messages to the
Apr 12, 2018
bd16d77
Don't skip apply relayout/restyle/update operations on view that emit…
Apr 12, 2018
2455dc1
make ipywidgets an optional dependency
Apr 12, 2018
35bf539
Merge branch 'master' of https://github.com/plotly/plotly.py into ipy…
Kully Apr 12, 2018
06fec5c
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully Apr 12, 2018
c6d6540
Add traces with subplots cleanup
Apr 13, 2018
a89dcb5
Rework handling of unknown kwargs in datatype classes
Apr 14, 2018
ac59d45
Replace use of add_traces for scalar trace with add_trace
Apr 14, 2018
920817c
Support deprecated Histogram2dcontour class in Data (traces) validator
Apr 14, 2018
5489a89
Add pretty print based __repr__() for BaseFigure and BasePlotlyType
Apr 14, 2018
4822f15
Fix FigureWidget frame validation
Apr 15, 2018
70e76e1
Leave _frame_objs as empty list (not None) in BaseFigureWidget
Apr 16, 2018
4fb462f
Added validator for literal properties (e.g. the 'type' prop of traces)
Apr 16, 2018
5740d73
pull from maste
Kully Apr 16, 2018
a561275
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully Apr 16, 2018
49e0075
Jupyterlab support!!!!!
Apr 17, 2018
1bc4aca
Cleanup js webpack config a little. Remove unused json transform
Apr 17, 2018
f140fd8
minor test fixes for ipyplotly_integration (#975)
Kully Apr 18, 2018
90c14eb
WIP property assignment tests
Apr 18, 2018
8ad6873
Added tests for compound array assignment (and caught some bugs!)
Apr 19, 2018
8836c93
Pass frames param to superclass in BaseFigureWidget, need this for va…
Apr 19, 2018
0d3c4fd
Added tests using .update() method, fixed bug when updating compound …
Apr 19, 2018
aff9d28
Added BasePlotlyType and BaseLayoutType property tests
Apr 21, 2018
687559b
Added figure property tests
Apr 21, 2018
d9e2306
Added relayout message tests
Apr 21, 2018
c43a349
Make plotly_relayout, plotly_restyle, and plotly_update private
Apr 21, 2018
a2c782f
Added support for tuple/dot item syntax on figure
Apr 21, 2018
bc19f2f
Added tests for restyle and update messages
Apr 21, 2018
af61f25
Added test for batch_animate operation and message
Apr 21, 2018
e96abc1
Added message tests for adding traces
Apr 21, 2018
df15d14
Cleanup naming of message tests
Apr 21, 2018
0543793
Added tests for moving/deleting traces
Apr 21, 2018
a7c42f0
Added move/delete traces validation tests
Apr 21, 2018
49bc6e8
Added on_change callback tests
Apr 22, 2018
503413b
Added test to validate FigureWidget has no frames
Apr 22, 2018
b6a6f80
merge 054379335aa0010a5fc895466e1226dcda55dc1a
Kully Apr 23, 2018
11dc3cc
Make plotly_relayout, plotly_restyle, and plotly_update public again
Apr 23, 2018
61f4795
Fix param name error in batch_update()/batch_animate()
Apr 24, 2018
dbbc6f6
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully Apr 24, 2018
7e7c543
make mock import PyVer dependant
Kully Apr 25, 2018
05c9f39
Handle None in validator present methods
Apr 28, 2018
30063d4
Fix webgl plots in JupyterLab!
Apr 28, 2018
f150a8c
Test fixes 2 (#994)
Kully May 7, 2018
e590fd0
use explicit relative imports for py2 compat
Kully May 14, 2018
af0d247
specified type and instance in super() for scatter attrs//basevalidat…
Kully May 14, 2018
b86d44b
specify type and instance for super() for codegen code
Kully May 14, 2018
f0d863d
moved **kwargs to bottom of constructor signatures // super() -> supe…
Kully May 14, 2018
a88e3d4
road to removing super() and **kwargs codegen changes so CODEGEN proc…
Kully May 15, 2018
5d493f9
f0d863d + messing around in basevalidators (CODEGEN works)
Kully May 16, 2018
e57d5c6
everything works but graph objs and __init__ is deleted
Kully May 17, 2018
15cc55b
revert to old schema
Kully May 17, 2018
bd31ed8
rewrite __dir__ for Layout for Py2 compat
Kully May 18, 2018
16a14c0
improve __dir__ again (115) - error in compare_dict is gone
Kully May 18, 2018
0dc1999
unicode -> bytes strings in Py2
Kully May 20, 2018
a873bd9
added __init__ to test_figure_messages//typo//Py2 converts all grabbe…
Kully May 22, 2018
d52a5f2
figx figure_messages
Kully May 22, 2018
56353cd
fixed test_offline
Kully May 23, 2018
ae20331
optional import reads __init__ matplotlylib file
Kully May 23, 2018
8f1513a
remove unneeded import in test_ff
Kully May 23, 2018
1af5339
matplotlylib is now importing via optional_imports
Kully May 23, 2018
002225a
use six.string_types so unicode doesnt throw error
Kully May 23, 2018
e9b3f57
matplotlib 2.2.2 - convert unicode to btyte str for matplotlib renderer
Kully May 25, 2018
9a38172
improve fullmatch function in basedatatypes
Kully May 25, 2018
c72da6a
erasing/dealing with some TODOs
Kully May 25, 2018
d409428
light PEP-8 79 char housekeeping
Kully May 25, 2018
0eeae6b
remove py36 from tox test env
Kully May 25, 2018
5a1719c
remove graph_objs from SOURCES.txt in plotly.egg
Kully May 25, 2018
1d8c4de
remove the lines
Kully May 25, 2018
b52481a
revert SOURCES.txt edit
Kully May 25, 2018
eb54590
codegen __init__ pep-8
Kully May 28, 2018
48f8239
add graph_objs//rm from gitignore
Kully May 28, 2018
2bb78a2
change gitignore
Kully May 28, 2018
0a5e227
init and graph_objs.py files
Kully May 28, 2018
842c44e
ModuleNotFoundError -> ImportError
Kully May 28, 2018
cf0a25d
remove plotly/validators from gitignore
Kully May 30, 2018
4f07d3a
add init file to figure_widget test in core
Kully May 30, 2018
d062180
conditional for figurewidget in test_core
Kully May 30, 2018
01ff5a5
figurewidget graph_objs test improve
Kully May 30, 2018
e63eedd
remove Numpy dependancy from test_propery test
Kully May 31, 2018
2dfb0f8
comment out up-to-date schema test
Kully May 31, 2018
2eac663
added validators file to plotly.egg-info
Kully May 31, 2018
361d478
properly comment out class for test_graph_reference
Kully May 31, 2018
81dbbc3
remove deprecated classes in figure_factory tests
Kully May 31, 2018
2e19cd1
removed deprecated messages in matplotlylib tests
Kully May 31, 2018
e8de1c6
started removing deprecations in matplotlylib
Kully May 31, 2018
20ec3bd
completely removed deprecated messages in matplotlylib
Kully May 31, 2018
73928e0
fixed failing matplotlylib tests from last PR
Kully May 31, 2018
8997455
deprecations are off of figure_factory module imports
Kully May 31, 2018
02e08cb
loosen conditions for data check in offline html
Kully Jun 1, 2018
eee449e
remodel the datetime test
Kully Jun 1, 2018
f32bb4c
test_utils fixed
Kully Jun 1, 2018
c3cf3a4
bump version number
Kully Jun 1, 2018
f1b0d76
test_api - removing mock test
Kully Jun 1, 2018
a1fbe62
remove all assert_called_once to assert.count == 1 in test_v1
Kully Jun 1, 2018
02ff392
comment out 'assert_called_once' method and add Py2 friendly replacement
Kully Jun 4, 2018
76966c4
remove the commentted assert_called_once calls
Kully Jun 4, 2018
83219df
added py36 to core testing - seeing if tests pass for tox -- -a
Kully Jun 4, 2018
bac2430
add py36 to envlist
Kully Jun 4, 2018
60452fd
remove py2.7 and see what happens
Kully Jun 4, 2018
4f666cb
put py2 back in and add py36 to setup classifiers
Kully Jun 4, 2018
1f2e9fd
do a bunch of ls to see what is happening
Kully Jun 5, 2018
d7b2dd9
remove py36 from classifiers in setup
Kully Jun 5, 2018
868040a
add figurefactory import
Kully Jun 5, 2018
995e2d0
remove py36 from envlist and circle file
Kully Jun 5, 2018
d81357f
remove figure_factory import from last import
Kully Jun 5, 2018
b44f184
rewrite install_requires section in setup.py
Kully Jun 5, 2018
86d2942
return install_requires decorator to >=4.0.6 like before
Kully Jun 7, 2018
907f5a8
add _plotly_utils/__init__.py to SOURCES.txt
Kully Jun 7, 2018
b9e7587
null change to top_level
Kully Jun 7, 2018
c06a8b4
specify decorator
Kully Jun 7, 2018
85ad071
original decorator req
Kully Jun 7, 2018
f3fd9c6
add violin dir to setup
Kully Jun 7, 2018
dfec10c
all dirs in graph_objs and validators added to setup
Kully Jun 7, 2018
600b7b6
Merge remote-tracking branch 'origin/master' into ipyplotly_integration
jonmmease Jun 11, 2018
287be5b
Convert update_schema into a setup.py command. Convert to run with Py…
jonmmease Jun 11, 2018
2b3fe9d
Code generation updates to support schema changes introduced with SPL…
jonmmease Jun 11, 2018
664c88d
Use proper plotly name for constructing properties (not undercase)
jonmmease Jun 11, 2018
f5a5d5a
Download schema for explicitly defined plotly.js version from the plo…
jonmmease Jun 11, 2018
072b89c
Update plotly.js to explicitly defined version by downloading from pl…
jonmmease Jun 11, 2018
4618bd3
Exclude transform data types from code generation (We don't support t…
jonmmease Jun 11, 2018
ef62935
Update to plotly.js 1.38.2 (codegen and offline and widget)
jonmmease Jun 11, 2018
3b93e20
compute graph_objs and validator packages recursively for setup.py
jonmmease Jun 11, 2018
095d432
Add warnings import
jonmmease Jun 11, 2018
b992c9f
Make recursive package lookup backwards compatible
jonmmease Jun 11, 2018
a0df901
fix facet_grid ff - annotations and shapes are now tuples
Kully Jun 11, 2018
af779c3
.get handling for layout
Kully Jun 11, 2018
bffb1c0
fix pytest validator min/max values test
jonmmease Jun 11, 2018
0fb8600
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
jonmmease Jun 11, 2018
9ee03f7
Allow color array properties to be N-dimensional
jonmmease Jun 11, 2018
ea6cb85
Allow data_array types to be multi-dimensional numpy arrays.
jonmmease Jun 11, 2018
0128246
Fix figure cropping problem using plotly.plotly.iplot
jonmmease Jun 11, 2018
f5805b5
Add Python 2 string compatibility (treat unicode as a string type)
jonmmease Jun 11, 2018
7617945
Force initial plot width to be chosen based on notebook width.
jonmmease Jun 11, 2018
5444fcc
v3.0.0rc2
chriddyp Jun 11, 2018
88c4bce
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
chriddyp Jun 11, 2018
ae64033
Just use six.string_types for string compatibility
jonmmease Jun 11, 2018
968567a
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
jonmmease Jun 11, 2018
f03b52e
add virtualenv to gitignore
chriddyp Jun 11, 2018
c2999d7
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
chriddyp Jun 11, 2018
f279e42
rm .egg-info from git
chriddyp Jun 11, 2018
1b13ecc
rm plotly.egg-info
chriddyp Jun 11, 2018
3315155
Fix __repr__ pretty printer for graph objs and add tests
jonmmease Jun 12, 2018
ee5e647
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
jonmmease Jun 12, 2018
663a386
Fix repr for Python 2
jonmmease Jun 12, 2018
2827283
Remove Plotly.Plots.resize call
jonmmease Jun 12, 2018
27567cb
Call newPlot on phosphorjs's 'after-attach' event.
jonmmease Jun 12, 2018
b46b7be
Remove the need to manually install widget extension in classic notebook
jonmmease Jun 12, 2018
f0a8dbc
v3.0.0rc4
chriddyp Jun 12, 2018
d6f628a
Add new toplevel `updateplotlyjs` setup.py command
jonmmease Jun 12, 2018
39fa7e5
Update code generation
jonmmease Jun 12, 2018
72ee40c
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
jonmmease Jun 12, 2018
a1d5143
Strip out save_image and save_html methods.
jonmmease Jun 12, 2018
6148b88
Don't break plotly.plot when passed a dict containing a Layout object
jonmmease Jun 12, 2018
3d0460e
Don't error if plotly.js introduces a property not in our schema
jonmmease Jun 12, 2018
8c1c3dc
Handle creation of new subplot objects in response to default properties
jonmmease Jun 12, 2018
562090b
More Python 2 string type fixes
jonmmease Jun 12, 2018
e02716d
Don't error if plotly.js introduces a layout property not present in …
jonmmease Jun 12, 2018
c0a4098
Python 2 compat. No list.clear()
jonmmease Jun 12, 2018
af5a9ef
Better handling for nested lists in validation
jonmmease Jun 12, 2018
4d715d6
v3.0.0rc5
chriddyp Jun 13, 2018
9f63db1
v3.0.0rc6
chriddyp Jun 13, 2018
9754ed6
Update package.json description for widget JS library
jonmmease Jun 13, 2018
06786ae
Update package.json project url
jonmmease Jun 13, 2018
3b648aa
Add js license
jonmmease Jun 13, 2018
827ab6e
Remove trailing slash that was breaking widget install on windows
jonmmease Jun 13, 2018
693e1a2
3.0.0rc7
jonmmease Jun 13, 2018
6e4a272
Convert __repr__() test to use assertEqual for better error messages …
jonmmease Jun 13, 2018
8a22d2a
Fixed bug in on_change callback registration
jonmmease Jun 13, 2018
59e24ae
rc8
jonmmease Jun 13, 2018
aefae22
Python 2 fix (keyword parameter not allowed after *args)
jonmmease Jun 13, 2018
f3c69cd
Fix on_change callback tests
jonmmease Jun 13, 2018
b4e6b01
Added new SrcValidator base class for src properties (e.g. `xsrc`)
jonmmease Jun 13, 2018
d4242ac
Python 2 future division for repr test
jonmmease Jun 13, 2018
aa1c3cb
3.0.0rc9
jonmmease Jun 13, 2018
f38d8d9
Remove test repr cases with numpy arrays for now.
jonmmease Jun 13, 2018
eb566a1
comment out not failing test
Kully Jun 21, 2018
83dbc43
getting started on migration-guide.md
Kully Jun 21, 2018
cbed6b9
migration guide and editted notebook examples
Kully Jun 22, 2018
cc4f53c
testing markdown #
Kully Jun 22, 2018
dbbffe3
rough outline of migration guide
Kully Jun 22, 2018
1990218
Added new leading `arg` parameter to all graph obj constructors.
jonmmease Jun 25, 2018
6d06759
Run code generation with the new arg parameter
jonmmease Jun 25, 2018
fa659c4
__repr__ refinements
jonmmease Jun 25, 2018
25427cc
migration-guide upgraded
Kully Jun 25, 2018
e230527
merge from remote branch
Kully Jun 25, 2018
7ad2a2a
Fix __repr__ for `Frame` objects
jonmmease Jun 25, 2018
a50f492
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
jonmmease Jun 25, 2018
9877e1f
Don't initialize `uid` on traces in frames
jonmmease Jun 25, 2018
00ffef4
Fix two errors in recent codegen updates
jonmmease Jun 25, 2018
f6a8575
Rerun code generation
jonmmease Jun 25, 2018
cd9b614
update installation instructions for migration guide
Kully Jun 26, 2018
de23ce0
blurb about doc string for batch animate
Kully Jun 26, 2018
476b8d3
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully Jun 26, 2018
24f6f0d
update pip install in migration guide
Kully Jun 26, 2018
51d79ae
Add contributing.md section on updating plotly.js version
jonmmease Jun 27, 2018
6b889eb
Updated Plotly.js version to 1.38.3
jonmmease Jun 27, 2018
932e6af
Add auto-resizing of figures in JupyterLab when no width/heigh explic…
jonmmease Jun 27, 2018
ee26008
Update frontend version to 0.1.1 and remove some duplication
jonmmease Jun 27, 2018
f184a94
Added contribution instructions for publishing plotlywidget to npm
jonmmease Jun 27, 2018
cad341d
Update version to 3.0.0rc10
jonmmease Jun 27, 2018
069ed58
getting started putting installation in README and rewriting migratio…
Kully Jun 27, 2018
959e24f
fixed up migration-guide
Kully Jun 27, 2018
1cc7234
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully Jun 27, 2018
e4bdb5f
add new figure.data section and other things
Kully Jun 28, 2018
2bd87fc
jon's comments
Kully Jun 28, 2018
651b215
updatedd API as it was regenerated
Kully Jul 1, 2018
e9edc39
Fix error when displaying default callback.Points object
jonmmease Jul 1, 2018
0e47d11
Add docstring examples of installing hover/unhover/click callbacks
jonmmease Jul 1, 2018
7af6dd0
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
jonmmease Jul 3, 2018
40b31cf
Update version to rc11, but switch to proper semver format '3.0.0-rc.11'
jonmmease Jul 3, 2018
7793c8f
Only send the stable portion of the version in plot.ly requests
jonmmease Jul 3, 2018
2e45a14
Revert version string back to 3.0.0rc11 and use LooseVersion to extra…
jonmmease Jul 3, 2018
6b93527
Add retrying logic from #964 to see if helps "sign in failed" test er…
jonmmease Jul 4, 2018
484c52e
Increate timeout of `tox --notest` command in circle.yml
jonmmease Jul 4, 2018
779e149
Add retrying to setup.py dependencies
jonmmease Jul 4, 2018
69339e2
Don't be picky about the status code on expected PlotlyRequestErrors
jonmmease Jul 4, 2018
a439aff
Review and updates to migration guide
jonmmease Jul 4, 2018
43f6236
Reorganize README and add link to migration guide
jonmmease Jul 4, 2018
97547d1
Update changelog for version 3.0.0rc11
jonmmease Jul 4, 2018
a04bcaf
Bump retrying's stop_max_delay from 30s to 90s (still hitting CI test…
jonmmease Jul 4, 2018
3fa38e5
Added an example to the docstring of the `on_selection` function
jonmmease Jul 5, 2018
27d3a6f
Updated readme, changelog, and migration guide for 3.0.0 release
jonmmease Jul 5, 2018
9302882
Version 3.0.0
jonmmease Jul 5, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
24 changes: 19 additions & 5 deletions .gitignore
Expand Up @@ -10,14 +10,28 @@

*.tox

build

dist

debug_script.py

test_output.txt

plotly/api/v2/spectacle_presentations.py

plotly/presentation_objs/
plotly/presentation_objs/

.idea

js/node_modules/

# Compiled javascript
plotlywidget/static/

.pytest_cache

# virtual envs
vv
venv

# dist files
build
dist
plotly.egg-info/
4 changes: 4 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,4 @@
include LICENSE
include README.rst
include README.md
include plotlywidget.json
7 changes: 7 additions & 0 deletions _plotly_utils/README.md
@@ -0,0 +1,7 @@
This package is for utilities that are used during code generation
and at runtime. The reason for not placing these under the main plotly/
package is that this avoids the complications of importing the module
we're generating code into during code generation.

This module must be independent of (it must not import from) both
plotly/ and codegen/
Empty file added _plotly_utils/__init__.py
Empty file.