-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
minor test fixes for ipyplotly_integration #975
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
Changes from 1 commit
Commits
Show all changes
145 commits
Select commit
Hold shift + click to select a range
77b50f3
Update CHANGELOG.md
Kully fafcabf
(matplotlylib) Make convert_dash more robust to changes in matplotlib.
cbf037d
commit
Kully 065e59c
remove unnecessary data files in tests and robust data-path searching
Kully 9502440
pep-8: l -> L variable name
Kully f2ba912
bump version number up
Kully a15b744
Merge pull request #939 from plotly/rewrite-changelog-choro
Kully 5818d2b
remove shapefiles from folders and delete folders
Kully 6a7e7f2
removed data/ folder and modified choropleth code to match file names
Kully 6319d63
Merge pull request #940 from plotly/fix-choropleth
Kully c7bff98
changelog for fixed 2.4.1
Kully 3d8cd07
chelsea's comments
Kully cb71b64
Merge pull request #943 from plotly/changelog-for-fixed-choropleth
Kully 1b09e21
added fill_percent to params for insert, swap and remove
Kully b149e0d
html preview not working
Kully 9705dde
HTML preview now reflects the fill_percent param settings
Kully c26b763
tests are working
Kully 38f88ef
make update_default_schema
Kully 1991c7f
udpated changelog, removed TODOs, PEP-8 79 char line limit
Kully 35716d6
Merge branch 'master' into dashboard-percent
Kully 004bbb0
turn off hover for the lines
Kully c3682d3
0-padding
Kully 8f557c7
changelog
Kully a85cb8b
update changelog and version number for 2.5.0
Kully 8517f3f
change fill_percent example in doc to fill_percent=20
Kully 3c0d337
sort all node generators to make HTML output consistent for py2 + py3
Kully 8def60c
add choropleth files back
Kully 524a8a0
Merge pull request #938 from nburrus/convert-dash
jackparmer b091aaf
dashboards now autosize based on GUI
Kully 14a6a02
update dash workshop announcement
cldougl e994e55
Merge pull request #953 from plotly/announcement_update
cldougl 85d7549
version num to 2.5.0
Kully f898892
4 equal height vertical stacked example in doc string
Kully 2c07b12
rename box_1 to box_a, etc
Kully 736c42d
remove shapefiles in tests dir
Kully 7f08843
change version back for testing purposes
Kully 97213c9
version to 2.5.0
Kully 0482dce
try bumping npm v in circle.yml to 6.0.0
Kully edbd796
Don't crash if figure_factory is imported but pandas isn't installed.…
dpryan79 8e7c112
Merge pull request #958 from dpryan79/fix941
Kully c43c436
pr for #958 PR
Kully e406bef
add PR reference
Kully fbaaba2
remove a comment
Kully 8c7eb17
Merge pull request #947 from plotly/offline_mode_choropleth
Kully 8bde810
Merge branch 'master' into dashboard-percent
Kully d6d777b
Merge pull request #946 from plotly/dashboard-percent
Kully 56de411
Merge branch 'master' into changelog-ff-crash
Kully 98feab6
Merge pull request #959 from plotly/changelog-ff-crash
Kully cbc1779
update plotlyjs for offline
cldougl 2f59570
Merge pull request #971 from plotly/bump_pjs_1352
cldougl 70f82c4
moved py2.7 test env to last in core environments
Kully 1d4f440
remove ipyplotly folder
Kully f39a85b
fixed assert Scatter() == dict(type='scatter')
Kully f3f6811
fixed test_access_top_level in test_figure
Kully 07c0977
more in test_figures fixes
Kully 36ed3aa
merged to ipyplotly integration
Kully 425c36a
remove junk in test_figure.py from before base merge
Kully b2f5064
BaseFigure and BasePlotlyType inherit from PlotlyBase class
Kully de95849
remove commented validation function
Kully c611a23
comment out validate error in test_scatter
Kully e714499
add histogram2dcontour back to graph_reference TRACES
Kully 9ce82b4
FigureWidget to OLD_CLASS_NAMES
Kully 234b979
add update to Data def in graph_objs//remove to_string in test_update
Kully 55969d9
fixed test_offline in optional
Kully 6f822cd
test_plotl_mpl fixed
Kully bb90864
add py36 to core and optional test envs
Kully 41a63ff
break up datetime tests into multiple ones for better test control
Kully 871341c
fixed JSONEncoding errors
Kully 7a9aa99
last assert test in test_utils
Kully d2ca807
print statements for testing xaxis1
Kully de5d242
construct paths to choropleth files intelligently
Kully 183a6fa
update the changelog
Kully 53d57ca
bump version
Kully 2260054
changelog comments
Kully 0bde4e1
Merge pull request #980 from plotly/windows-choropleth
Kully 4a977cd
merge from Jon's PR
Kully c154dd6
merge from ipyplotly_integration
Kully f332e29
revert to current basedatatypes from #942
Kully 4397815
write in helper function for assert_dict_equal
Kully 6988d08
fix trisurf: hoverinfo needs 'none', not 'None'
Kully 0ea9e14
finished a few more classes in figure_factory tests
Kully 0f04191
remove comment
Kully 274b003
change error msg for pip installs in choropleth
Kully f982427
changelog update
Kully 77cf63f
fixed facet grid - annotations now tuples - FacetGrid tests in test_o…
Kully 588f7dd
remove DeprecationWarning from _dendrogram.py
Kully 24ef193
remove unneeded comments in facet_grid
Kully 8386272
change height, width default to np.inf in _Dendogram
Kully b256334
fixed all tests in optional figure_factory
Kully b8d04a6
PEP8 to greyscale list
Kully e890a4a
fix Quiver tests; remove commented TestDisplot for duplicate
Kully 100ef19
minor test fixes in test_tools resolved
Kully 89c4d38
playing around with matplotlylib - no success
Kully 51cd9bc
chelsea's comment
Kully 9f85771
fixed test_validate tests in test_core
Kully c4d1795
fixed offline tests
Kully cff0312
change assert error in decorator
Kully 399c2dc
flawed annotations dont return error, so not checking for one
Kully 98e2f54
fix minor tests in test_data
Kully 330d99b
fix test_error_bars
Kully 760b36a
null changes
Kully 9ffc488
added white space
Kully 0d96800
Merge branch 'ipyplotly_integration' into rebased-test-fixes
Kully cbd1304
rework mock import for Py3.3+ compat
Kully efd4c2a
deepcopy in assert_fig_equal
Kully f87a8b8
fixed all but one test in make_subplots
Kully 924501b
merge from ipyplotly-branch
Kully c90fe9c
Merge branch 'rebased-test-fixes' of https://github.com/plotly/plotly…
Kully 0bf48c2
fixed test_api - mock compatib issue
Kully 8fd5985
change errortype to ValueError to fix test
Kully a4d6c5d
fix merge for rebase continue
Kully 0505070
reverted back to old test in test_figure
Kully c937f8e
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully 3e53c10
merge to ipyplotly
Kully 7a0ad41
Merge pull request #984 from plotly/better-geopandas-msg
Kully d93772d
validators update
Kully 1d5db95
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully 56d0e5f
merging from ipyplotly_integration for up-to-date rebase
Kully 46c9186
fix test_graph_objs.py in test_core
Kully 3140f29
fix scatter.py
Kully 7fa119a
fix self.assert_fig_equal(ohlc.to_plotly_json()['data'][0],
Kully a3e3508
assert_dict_equal typo
Kully 3aaa3ed
fix PotlyError -> ValueError for TestTable class
Kully f6f7aaf
middle of putting .to_plotly_json in assert_fig_equal
Kully 35bf539
Merge branch 'master' of https://github.com/plotly/plotly.py into ipy…
Kully 06fec5c
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully 0e53bd0
Merge branch 'ipyplotly_integration' into rebased-test-fixes
Kully a59c0c2
updated test_tools - numpy arrays to lists
Kully 8f1e212
test_datetimes fixes
Kully 365edce
Fix typo (agruments)
simon04 e932378
Merge pull request #989 from simon04/agruments
Kully b981e72
test_offline changes
Kully 23646ca
do not strip fig of invalid elements wen running .get_figure\nthis is…
Kully 5740d73
pull from maste
Kully eeb7f7e
merge from ipyplotly_integration
Kully ec5cc2c
xaxis -> xaxis1 in make_subplots
Kully a561275
Merge branch 'ipyplotly_integration' of https://github.com/plotly/plo…
Kully 02ad817
Merge branch 'ipyplotly_integration' into rebased-test-fixes
Kully 2d9cc9e
xaxis -> xaxis1
Kully 41b0d03
test_plot
Kully 46051e9
fixed test_figure
Kully 499f29f
fixed test_append_trace - added assert_fig_equal func clone in test_core
Kully de4e6c6
fixed TestDistplot tests
Kully 5b0d607
removed test_plotly_base_classes test as PlotlyDict/PlotlyList are re…
Kully 42e2462
fixed tests in test_ff in optional
Kully File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chriddyp @jmmease
The purpose of this commit is to refactor
get_valid_graph_obj
function to not remove invalid properties of a figure when.get_figure()
is called. I think this is important because:raw=True
is still an option in the get_figure functiongraph_objs
dependency fromtools.py
#283 fwiwWhat do y'all think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this. The user will either get a
dict
with whatever was on the server (raw=True
) or a fully validFigure
.Do you think the stripping of invalid properties is something that regular users are going to need? I'm not clear on why we end up with figures with invalid properties on the server in the first place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wondered the same thing. In refactoring these tests I noticed that a few of the example figures I pulled from were 4 years old and contained params that are no longer part of the valid params.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be inclined to update the test data, but I'll leave it to you and @chriddyp to decide whether we need to support some kind of legacy property removal.