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

Example 2 for Butterfly chart (version2) #4984

Draft
wants to merge 726 commits into
base: doc-prod
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
726 commits
Select commit Hold shift + click to select a range
fc66ae3
fix typo
LiamConnors Nov 5, 2024
a22a7be
stocks date to string and test_trendline_on_timeseries fix
FBruzzesi Nov 6, 2024
86e3c91
Fix recursion error
marthacryan Nov 7, 2024
0888963
Fix test requirements conflicts
marthacryan Nov 7, 2024
538de38
Fix test requirements conflicts
marthacryan Nov 7, 2024
c272633
Revert changes to chart studio tests
marthacryan Nov 7, 2024
c55f5cd
Merge branch 'master' of github.com:plotly/plotly.py into np2
marthacryan Nov 7, 2024
6319ab9
Merge pull request #4622 from bnavigator/np2
marthacryan Nov 7, 2024
44a52e5
merge master and rm FIXME comment
FBruzzesi Nov 7, 2024
c6341c0
reorder content
LiamConnors Nov 7, 2024
2f2e84e
various small docs fixes
LiamConnors Nov 7, 2024
a84f754
update starting point text
LiamConnors Nov 7, 2024
593a1ed
Update px-arguments.md
LiamConnors Nov 7, 2024
0a3de82
Merge branch 'master' into version-6-migration
LiamConnors Nov 7, 2024
7f241f3
Merge branch 'master' of github.com:plotly/plotly.py into anywidget
marthacryan Nov 7, 2024
dc87b3c
Create util for display jupyter version warnings and update imports
marthacryan Nov 7, 2024
22d90c4
Remove deprecated code
marthacryan Nov 7, 2024
fc74b2e
do not repeat new_series unnecessarely
FBruzzesi Nov 8, 2024
499e2fa
bump version, use numpy for range
FBruzzesi Nov 8, 2024
d2e1008
trigger ci now that new version is published
FBruzzesi Nov 8, 2024
742b2ec
add narwhals to np2_optional.txt
FBruzzesi Nov 8, 2024
269dea6
version
FBruzzesi Nov 8, 2024
dd42534
add grouped stacked bar chart example
LiamConnors Nov 8, 2024
67c8d46
Merge branch 'version-6-migration' of https://github.com/plotly/plotl…
LiamConnors Nov 8, 2024
bee13cd
Update jupyter version warnings to import jupyterlab later
marthacryan Nov 8, 2024
e4b5d79
Update performance.md
LiamConnors Nov 11, 2024
5497d17
install plotly.js v3.0.0-rc.0
archmoj Nov 12, 2024
dc6b652
rebuild using plotly.js v3.0.0-rc.0
archmoj Nov 12, 2024
39e52de
modify changelog
archmoj Nov 12, 2024
4f7f521
add redirect
LiamConnors Nov 12, 2024
c24c871
Merge pull request #4860 from plotly/plotly.js-v3.0.0-rc.0
archmoj Nov 12, 2024
972a59d
Merge pull request #4862 from plotly/fix-link
gvwilson Nov 12, 2024
946590f
Merge with master
marthacryan Nov 12, 2024
3a85b8a
Switch to npm ci instead of npm i
marthacryan Nov 12, 2024
fc8eff2
Move warnings out of utils file to avoid psutils import error
marthacryan Nov 12, 2024
c65ca44
Fix import paths for new location of util
marthacryan Nov 12, 2024
6d3f0a7
Remove unused import
marthacryan Nov 12, 2024
4d99b35
Merge pull request #4823 from plotly/anywidget
marthacryan Nov 12, 2024
5c389e5
Merge branch 'master' into version-6-migration
LiamConnors Nov 12, 2024
05c7257
do not assign offsetgroup to traces in px for bar, violin, box, and h…
emilykl Nov 12, 2024
b1dc48d
Merge branch 'master' into plotly-with-narwhals
MarcoGorelli Nov 12, 2024
3c578c1
shorten text
LiamConnors Nov 12, 2024
370fd3b
add note on dataframe support
LiamConnors Nov 12, 2024
d3cb4ee
Unpin jupyterlab version
marthacryan Nov 12, 2024
366b017
Merge pull request #4866 from plotly/unpin-jl
archmoj Nov 12, 2024
17fb96f
Merge branch 'master' into plotly-with-narwhals
FBruzzesi Nov 12, 2024
a3ecf91
Fix psutil import error
marthacryan Nov 12, 2024
d31c728
Merge pull request #4868 from plotly/psutil-err
marthacryan Nov 12, 2024
37c6ac2
Fix FigureWidget.show
marthacryan Nov 12, 2024
30dbd63
Code formatting
marthacryan Nov 13, 2024
0c08c5e
Update version of plotly.js to 3.0.0-rc.0
marthacryan Nov 13, 2024
a2670b0
Merge pull request #4871 from plotly/plotlyjs-rc
archmoj Nov 13, 2024
9f2c55b
Merge branch 'master' into plotly-with-narwhals
FBruzzesi Nov 13, 2024
ffb571b
Merge pull request #4869 from plotly/widget-show
marthacryan Nov 13, 2024
5898816
Merge pull request #4790 from FBruzzesi/plotly-with-narwhals
emilykl Nov 13, 2024
f0157bb
Merge branch 'master' into version-6-migration
LiamConnors Nov 13, 2024
7e4ec79
add note on dataframe support
LiamConnors Nov 13, 2024
1eeee65
fix issue with code running
LiamConnors Nov 13, 2024
963c5aa
add note on performance
LiamConnors Nov 13, 2024
ad2c0a5
fix: Setting category_orders was leading to missing data
MarcoGorelli Nov 14, 2024
52d562a
fix: Avoid using iter_rows in _check_dataframe_all_leaves to enable c…
MarcoGorelli Nov 14, 2024
eadc70b
simplify
MarcoGorelli Nov 14, 2024
5e6fb93
it gets simpler
MarcoGorelli Nov 14, 2024
14a1da6
Update packages/python/plotly/plotly/tests/test_optional/test_px/test…
MarcoGorelli Nov 14, 2024
93a39b6
better variable names
MarcoGorelli Nov 14, 2024
b8b4d29
better variable names
MarcoGorelli Nov 14, 2024
b127443
set offsetgroup only in group barmode
emilykl Nov 14, 2024
2bc6a0f
Merge pull request #4877 from MarcoGorelli/fix-category-orders
emilykl Nov 14, 2024
4e76f58
Limit offsetgroup to Histogram and Bar traces
emilykl Nov 14, 2024
390dfc5
Merge branch 'master' into fix-bar-charts
emilykl Nov 14, 2024
762f17b
also set offsetgroup if no barmode is set
emilykl Nov 14, 2024
ac8af46
boolean order of operations...
emilykl Nov 14, 2024
131330c
feat: modify template generator to handle new traces
gvwilson Nov 14, 2024
e41dc36
handle barmode/offsetgroup edge cases
emilykl Nov 14, 2024
e7af5ef
Merge branch 'master' into add-new-traces-to-templategen
archmoj Nov 14, 2024
2b98cce
formatting
emilykl Nov 14, 2024
e7f3756
formatting
emilykl Nov 14, 2024
4a1f120
Update v6-changes.md
LiamConnors Nov 14, 2024
3bd901b
Update doc/python/performance.md
LiamConnors Nov 14, 2024
9c7dc27
Update doc/python/performance.md
LiamConnors Nov 14, 2024
4cdd340
Update doc/python/performance.md
LiamConnors Nov 14, 2024
458a5d4
fix 3d
LiamConnors Nov 14, 2024
df65774
Merge branch 'version-6-migration' of https://github.com/plotly/plotl…
LiamConnors Nov 14, 2024
87a5a05
Update doc/python/performance.md
LiamConnors Nov 14, 2024
e00b553
Update doc/python/px-arguments.md
LiamConnors Nov 14, 2024
39fdfea
Update doc/python/px-arguments.md
LiamConnors Nov 14, 2024
aebdbe5
add note on previous versions
LiamConnors Nov 15, 2024
57f2c71
Merge branch 'version-6-migration' of https://github.com/plotly/plotl…
LiamConnors Nov 15, 2024
c5285b4
edit dependencies section
LiamConnors Nov 15, 2024
ca84936
update arrays and dtypes text
LiamConnors Nov 15, 2024
3110baa
don't need this
emilykl Nov 15, 2024
ab08bd4
formatting
emilykl Nov 15, 2024
db1e0d9
move set barmode outside trace loop
emilykl Nov 15, 2024
298f5ce
we only need to check barmode in layout_patch, not args
emilykl Nov 15, 2024
ac3177c
change args to layout_patch
emilykl Nov 15, 2024
b195c2e
don't need this
emilykl Nov 15, 2024
b347077
formatting
emilykl Nov 15, 2024
48b8d06
update comment
emilykl Nov 16, 2024
062d43c
update example
LiamConnors Nov 18, 2024
79b212a
update example
LiamConnors Nov 18, 2024
2d192e7
link out to Plotly Express arguments page
LiamConnors Nov 18, 2024
84f4e66
Merge pull request #4865 from plotly/fix-bar-charts
emilykl Nov 18, 2024
a42bfb3
merge master; revise this branch following narwhals changes
emilykl Nov 18, 2024
afd9418
chore: Address pandas deprecation warning in test
MarcoGorelli Nov 19, 2024
2425b0a
Merge branch 'master' into version-6-migration
LiamConnors Nov 19, 2024
070f279
Update doc/python/px-arguments.md
LiamConnors Nov 19, 2024
65acf3d
Merge pull request #4890 from MarcoGorelli/pandas-compat
emilykl Nov 20, 2024
1c4c3c9
rename requires-dev to requires-optional
emilykl Nov 21, 2024
c7f9019
update comment
MarcoGorelli Nov 21, 2024
817fef7
Merge pull request #4895 from MarcoGorelli/update-comment
LiamConnors Nov 21, 2024
cd6c101
Update packages/python/plotly/templategen/utils/__init__.py
archmoj Nov 21, 2024
73771de
Merge branch 'master' into add-new-traces-to-templategen
archmoj Nov 21, 2024
9818daf
update filename
emilykl Nov 21, 2024
6454bf5
very light cleanup (formatting; remove packages which are also in req…
emilykl Nov 21, 2024
493952a
clean up jupyter requirements (thanks @marthacryan)
emilykl Nov 21, 2024
6074eea
remove unneccessary step
emilykl Nov 21, 2024
340372a
remove requires-optional from MANIFEST
emilykl Nov 21, 2024
aba3ab2
display deprecated warnings for mapbox traces and skip their validati…
archmoj Nov 12, 2024
b49da0e
formatting
emilykl Nov 22, 2024
1607ccf
Merge branch 'master' into better-pandas-warning
emilykl Nov 22, 2024
b8c5faa
update changelog
emilykl Nov 22, 2024
c541ce1
update changelog
emilykl Nov 22, 2024
7f2ce44
Merge remote-tracking branch 'upstream/master' into avoid-iter-row
MarcoGorelli Nov 22, 2024
c27c49d
Merge pull request #4644 from plotly/better-pandas-warning
emilykl Nov 22, 2024
34af731
Update getting-started.md
LiamConnors Nov 22, 2024
a410628
remove known limitation
LiamConnors Nov 22, 2024
eaae154
mention modin and cuDF
LiamConnors Nov 22, 2024
8db1fbc
Merge branch 'master' into version-6-migration
LiamConnors Nov 22, 2024
26232a2
Update CHANGELOG.md
LiamConnors Nov 22, 2024
61f695d
Update CHANGELOG.md
LiamConnors Nov 22, 2024
260d6c9
Update CHANGELOG.md
LiamConnors Nov 22, 2024
79636ab
Merge branch 'master' into avoid-iter-row
emilykl Nov 22, 2024
011eedc
remove mention of version 7 not working
LiamConnors Nov 22, 2024
d4bd812
Merge branch 'version-6-migration' of https://github.com/plotly/plotl…
LiamConnors Nov 22, 2024
8a81385
reorg of changelog
LiamConnors Nov 22, 2024
185eda3
Merge pull request #4878 from MarcoGorelli/avoid-iter-row
emilykl Nov 22, 2024
0a4f0a0
Merge pull request #4881 from plotly/add-new-traces-to-templategen
archmoj Nov 22, 2024
4010260
add DeprecationWarning warning type in codegen
emilykl Nov 25, 2024
c187794
capitalization
emilykl Nov 25, 2024
cb3dba7
clean up basedatatypes (return to previous)
emilykl Nov 25, 2024
9908d72
add deprecation warnings to px mapbox functions
emilykl Nov 25, 2024
3b31f3a
formatting
emilykl Nov 25, 2024
e688d28
Merge branch 'master' into v6-mapbox-deprecated-warning
emilykl Nov 25, 2024
5d113b9
cleanup
emilykl Nov 25, 2024
fa0305d
test: Pass native dataframe to `px.histogram` in `test_pass_df_columns`
MarcoGorelli Nov 25, 2024
4a21e76
Merge pull request #4900 from plotly/v6-mapbox-deprecated-warning
archmoj Nov 25, 2024
55473a1
Update bar-charts.md
LiamConnors Nov 25, 2024
71a183e
Update doc/python/v6-changes.md
LiamConnors Nov 25, 2024
6096262
Update v6-changes.md
LiamConnors Nov 25, 2024
87339c3
Update CHANGELOG.md
LiamConnors Nov 26, 2024
6fe6a88
Update doc/python/performance.md
LiamConnors Nov 26, 2024
58cda6d
Merge branch 'version-6-migration' of https://github.com/plotly/plotl…
LiamConnors Nov 26, 2024
17148c9
Update performance.md
LiamConnors Nov 26, 2024
a6a6f17
Update CHANGELOG.md
LiamConnors Nov 26, 2024
e483903
Update CHANGELOG.md
LiamConnors Nov 26, 2024
d6716cd
Merge branch 'version-6-migration' of https://github.com/plotly/plotl…
LiamConnors Nov 26, 2024
f6654a2
Add back v4 migration
LiamConnors Nov 26, 2024
6f42099
Update LaTeX.md
LiamConnors Nov 26, 2024
4b743f6
Merge pull request #4902 from MarcoGorelli/pass-native-in-test
marthacryan Nov 26, 2024
306b47f
Update v4-migration.md
LiamConnors Nov 26, 2024
760aabf
Merge branch 'master' into version-6-migration
LiamConnors Nov 26, 2024
fe19d81
Update v4-migration.md
LiamConnors Nov 26, 2024
0d056db
Merge branch 'version-6-migration' of https://github.com/plotly/plotl…
LiamConnors Nov 26, 2024
fb4ac7e
Update doc/python/v6-changes.md
LiamConnors Nov 26, 2024
1adeae7
Update CHANGELOG.md
LiamConnors Nov 26, 2024
8471804
Merge branch 'version-6-migration' of https://github.com/plotly/plotl…
LiamConnors Nov 26, 2024
7549844
Update doc/python/getting-started.md
LiamConnors Nov 26, 2024
d77a0e2
Update doc/python/v6-changes.md
LiamConnors Nov 26, 2024
485a1d8
Update doc/python/performance.md
LiamConnors Nov 26, 2024
45ead3f
remove version pins
LiamConnors Nov 27, 2024
2b8e2ba
Update doc/python/px-arguments.md
LiamConnors Nov 27, 2024
9f07429
Merge pull request #4840 from plotly/version-6-migration
LiamConnors Nov 27, 2024
b79f78a
Update CHANGELOG.md
LiamConnors Nov 27, 2024
a6ace21
Merge pull request #4907 from plotly/LiamConnors-patch-3
LiamConnors Nov 27, 2024
135141e
Update Plotly.js version to 3.0.0-rc.1
LiamConnors Nov 27, 2024
64d13c5
update Plotly.js rc version in changelog
LiamConnors Nov 27, 2024
b7727a5
Merge pull request #4908 from plotly/update-plotly-js
LiamConnors Nov 27, 2024
173ea1e
version changes for v6.0.0rc0
marthacryan Nov 27, 2024
7548b07
Merge pull request #4910 from plotly/release-6.0.0rc0
marthacryan Nov 27, 2024
8256ba2
chore: Fix heading in changelog
LiamConnors Nov 28, 2024
8f50e2b
Merge pull request #4915 from plotly/LiamConnors-patch-4
LiamConnors Nov 28, 2024
913441b
fix: add narwhals to conda recipe
LiamConnors Nov 28, 2024
0916930
fix: px.timeline was failing when x_start and/or x_end were already d…
MarcoGorelli Nov 28, 2024
ba09922
py38 compat
MarcoGorelli Nov 28, 2024
49ed9b3
fix: pandas DataFrame with non-default Index was resulting in scrambled
MarcoGorelli Nov 30, 2024
f824169
handle dtype conversion for empty arrays
emilykl Dec 2, 2024
ac9ddce
handle dtype conversion for empty arrays; check array.size
emilykl Dec 2, 2024
ca90f21
skip b64 encoding if array is empty
emilykl Dec 3, 2024
f7675c3
add tests
emilykl Dec 3, 2024
d9121c9
patch: deepcopy figure fix
FBruzzesi Dec 3, 2024
43ac339
Merge pull request #4922 from plotly/fix-4919
emilykl Dec 3, 2024
484f2df
Merge branch 'master' into patch/deepcopy-figure-fix
FBruzzesi Dec 3, 2024
a5e628c
Merge pull request #4921 from MarcoGorelli/index-alignment
emilykl Dec 5, 2024
477b88f
Merge pull request #4914 from MarcoGorelli/fix-timeline
emilykl Dec 5, 2024
6808a97
test: add basic deepcopy figure test
FBruzzesi Dec 6, 2024
b07c1a3
Merge branch 'master' into patch/deepcopy-figure-fix
FBruzzesi Dec 6, 2024
5951882
Update narwhals version
emilykl Dec 6, 2024
9745c9b
Merge branch 'master' into conda-update
emilykl Dec 6, 2024
7252900
Merge pull request #4916 from plotly/conda-update
emilykl Dec 6, 2024
7c858b6
add .DS_Store to .gitignore
emilykl Dec 6, 2024
9c1d326
add equality test, multiple frames and numpy arrays
FBruzzesi Dec 6, 2024
53d5dce
Merge branch 'master' into patch/deepcopy-figure-fix
FBruzzesi Dec 6, 2024
3e47cf8
Merge pull request #4930 from plotly/chore-4929-ds-store-gitignore
emilykl Dec 6, 2024
444eca4
Merge branch 'master' into patch/deepcopy-figure-fix
FBruzzesi Dec 7, 2024
a7ed5d9
Merge pull request #4926 from FBruzzesi/patch/deepcopy-figure-fix
marthacryan Dec 9, 2024
db68dba
bump cache
LiamConnors Dec 9, 2024
7b15316
Merge pull request #4937 from plotly/fix-failing-build-doc
LiamConnors Dec 10, 2024
0093ce0
Add files via upload
Coding-with-Adam Dec 10, 2024
adb108f
Update and rename plotly-py-citation.yml to CITATION.cff
Coding-with-Adam Dec 10, 2024
31df48f
Merge branch 'plotly:master' into master
Coding-with-Adam Dec 10, 2024
07b1208
Merge pull request #4939 from Coding-with-Adam/master
Coding-with-Adam Dec 12, 2024
00fc0db
Update autors of Plotly.PY in CITATION.cff
Coding-with-Adam Dec 16, 2024
231edaa
Merge pull request #4944 from plotly/Coding-with-Adam-patch-1
gvwilson Dec 17, 2024
0953cda
Update traitlet values before initial render of widget
marthacryan Jan 6, 2025
273bab6
Remove extra imports and extra setting of traitlets
marthacryan Jan 7, 2025
0929e2d
Use correct source data for data traitlet
marthacryan Jan 7, 2025
215017f
Remove unnecessary setting of traitlets
marthacryan Jan 7, 2025
429eeb9
Add comment and revert changes to variable
marthacryan Jan 9, 2025
0089f32
Lint
marthacryan Jan 9, 2025
1fc6bdd
Merge pull request #4956 from plotly/update-traitlets
marthacryan Jan 9, 2025
7eb6dfd
move plotly-geo and chart-studio to their own repos
emilykl Jan 11, 2025
529c89d
Merge branch 'master' into merge-recent-docs-changes
LiamConnors Jan 14, 2025
ed67d12
Update release.md to remove package.json versioning
marthacryan Jan 14, 2025
434423f
remove mention of fig.show
LiamConnors Jan 14, 2025
c4225c3
Merge pull request #4967 from plotly/marthacryan-patch-1
marthacryan Jan 14, 2025
124d4e3
Remove specific version from README
marthacryan Jan 14, 2025
3410e9d
Remove instructions to change version in README
marthacryan Jan 14, 2025
666c025
Merge pull request #4968 from plotly/figure-widget-updates
LiamConnors Jan 14, 2025
d831305
Merge pull request #4969 from plotly/marthacryan-patch-1
marthacryan Jan 14, 2025
3d36f14
Merge pull request #4966 from plotly/merge-recent-docs-changes
LiamConnors Jan 15, 2025
989e974
remove references to plotly-geo and chart-studio as subdirectories of…
emilykl Jan 14, 2025
2aa76bf
add note on dicts and arrays
LiamConnors Jan 21, 2025
357ad0c
Update doc/python/px-arguments.md
LiamConnors Jan 22, 2025
0ca20aa
Merge pull request #4976 from plotly/update-docs-for-dataframes
LiamConnors Jan 23, 2025
fdf94de
Example 2 for Butterfly chart (version2)
SimaRaha Jan 26, 2025
fe7147b
Update to plotly.js 3.0.0
marthacryan Jan 28, 2025
769d12f
Merge pull request #4987 from plotly/upgrade-plotlyjs-3.0
marthacryan Jan 28, 2025
49581b8
version changes for v6.0.0
marthacryan Jan 28, 2025
7ee50d2
Merge pull request #4989 from plotly/release-6.0.0
marthacryan Jan 28, 2025
81b842e
update plotly.py versions
LiamConnors Jan 28, 2025
a465792
Merge pull request #4990 from plotly/make-6-0-0-docs-live
LiamConnors Jan 28, 2025
0b9d2e3
Remove require.js from doc nb.tpl file
marthacryan Jan 28, 2025
5e079e1
Merge pull request #4992 from plotly/marthacryan-patch-1
marthacryan Jan 28, 2025
85ac208
Merge branch 'master' into move-chart-studio-and-plotly-geo
emilykl Jan 29, 2025
3abd6d4
fix: custom category order was hard-coded
MarcoGorelli Jan 30, 2025
9043fff
add go.Pie comparison
MarcoGorelli Jan 30, 2025
99cbc45
remove unnecessary paragraph
emilykl Jan 30, 2025
d974535
Merge pull request #5000 from MarcoGorelli/hardcoded-var
emilykl Jan 30, 2025
9910078
Merge pull request #4972 from plotly/move-chart-studio-and-plotly-geo
emilykl Jan 30, 2025
f096a0b
Merge branch 'plotly:master' into patch-3
rl-utility-man Feb 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
79 changes: 32 additions & 47 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@ commands:
. venv/bin/activate
pip install --upgrade pip wheel
pip install -r ./test_requirements/requirements_<<parameters.py>>_optional.txt
cd js
npm ci
npm run build
- run:
name: Install plotly-geo
command: |
cd packages/python/plotly-geo
. ../plotly/venv/bin/activate
pip install -e .
cd packages/python/plotly
. venv/bin/activate
pip install plotly-geo
- run:
name: Test core
command: |
Expand Down Expand Up @@ -112,9 +115,9 @@ commands:
- run:
name: Install plotly-geo
command: |
cd packages/python/plotly-geo
. ../plotly/venv/bin/activate
pip install -e .
cd packages/python/plotly
. venv/bin/activate
pip install plotly-geo
- run:
name: Install orca
command: |
Expand Down Expand Up @@ -249,13 +252,13 @@ jobs:
- test_optional:
py: "312_no_numpy"

# Orca
python_38_orca:
python_312_np2:
docker:
- image: cimg/python:3.8-browsers
- image: cimg/python:3.12-browsers
steps:
- test_orca:
py: "38"
- test_optional:
py: "312_np2"


# Percy
python_39_percy:
Expand All @@ -281,8 +284,9 @@ jobs:
. venv/bin/activate
pip install --upgrade pip wheel
pip install -e ./packages/python/plotly
pip install -e ./packages/python/plotly-geo
pip install plotly-geo
pip install -r ./packages/python/plotly/test_requirements/requirements_39_pandas_2_optional.txt

- run:
name: Build html figures (Pandas 2)
command: |
Expand All @@ -306,30 +310,6 @@ jobs:
npx percy snapshot -c test/percy/snapshots.yml test/percy/
rm test/percy/*.html

# Chart studio
python_38_chart_studio:
docker:
- image: cimg/python:3.8
resource_class: large

steps:
- checkout
- run:
name: Install dependencies
command: |
cd packages/python/chart-studio
python -m venv venv
. venv/bin/activate
pip install --upgrade pip wheel
pip install -r ./test_requirements/requirements_38.txt
- run:
name: Tests
command: |
cd packages/python/chart-studio
. venv/bin/activate
pytest -x chart_studio/tests/
no_output_timeout: 20m

plotlyjs_dev_build:
docker:
- image: cimg/python:3.8-node
Expand All @@ -347,9 +327,9 @@ jobs:
. venv/bin/activate
pip install --upgrade pip wheel
pip install -r ./test_requirements/requirements_38_core.txt black inflect
pip install jupyterlab~=3.0
pip install jupyterlab
- run:
name: Update jupyterlab-plotly version
name: Update jupyter widget plotly.js version
command: |
cd packages/python/plotly
. venv/bin/activate
Expand Down Expand Up @@ -403,7 +383,7 @@ jobs:
conda config --remove channels defaults
conda config --add channels conda-forge
conda create -n env --yes python=3.9 conda-build=3.28.4 conda-verify
conda install -n env -c conda-forge jupyterlab=3 nodejs=16
conda install -n env -c conda-forge jupyterlab nodejs=16
conda init bash
mkdir output

Expand All @@ -412,9 +392,9 @@ jobs:
command: |
eval "$(conda shell.bash hook)"
conda activate env
cd packages/javascript/jupyterlab-plotly
cd packages/python/plotly/js
npm ci
npm run build:prod
npm run build
git status

- run:
Expand All @@ -438,13 +418,13 @@ jobs:
git status

- run:
name: NPM Pack
name: Build Widget javascript bundle
command: |
eval "$(conda shell.bash hook)"
conda activate env
cd packages/javascript/jupyterlab-plotly
npm pack
mv jupyterlab-plotly*.tgz ../../../output
cd packages/python/plotly/js
npm ci
npm run build

- run:
name: Zip output
Expand Down Expand Up @@ -491,7 +471,12 @@ jobs:
pip install -r requirements.txt
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
pip uninstall -y plotly
pip install -e ../packages/python/plotly
cd ../packages/python/plotly
pip install -e .
cd js
npm ci
npm run build
cd ../../../../doc
fi
cd ..
- run:
Expand Down Expand Up @@ -613,7 +598,7 @@ workflows:
- python_311_optional
- python_312_optional
- python_39_pandas_2_optional
- python_38_orca
- python_39_percy
- python_312_no_numpy
- python_312_np2
- build-doc
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ build
dist
plotly.egg-info/

# macOS utility file
**/.DS_Store

plotly/tests/test_orca/images/*/failed
plotly/tests/test_orca/images/*/tmp
/plotly-package/plotly/tests/test_core/test_offline/plotly.min.js
Expand All @@ -59,6 +62,7 @@ doc/check-or-enforce-order.py
packages/javascript/jupyterlab-plotly/lib/
packages/python/plotly/jupyterlab_plotly/labextension/
packages/python/plotly/jupyterlab_plotly/nbextension/index.js*
packages/python/plotly/plotly/package_data/widgetbundle.js

test/percy/*.html
test/percy/pandas2/*.html
36 changes: 35 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,45 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [6.0.0] - 2025-01-28

### Added
- Add `plotly[express]` extra for easily installing Plotly Express dependencies [[#4644](https://github.com/plotly/plotly.py/pull/4644)]
- Add `subtitle` attribute to all Plotly Express traces [[#4830](https://github.com/plotly/plotly.py/pull/4830)].

### Removed
- Drop deprecated `pointcloud` and `heatmapgl` traces from the API [[#4815](https://github.com/plotly/plotly.py/pull/4815)]
- Drop `tenacity` dependency [[#4831](https://github.com/plotly/plotly.py/pull/4831)]
- Drop support for Jupyter Notebook version 6 and earlier [[#4822](https://github.com/plotly/plotly.py/pull/4822)]. The minimum supported version is now 7.0.0.

### Updated
- Update Plotly.js from version 2.34.2 to version 3.0.0 See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#300----2025-01-27) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
- Make offsetgroup work with barmode "stacked" and "relative" for bar traces [[#7009](https://github.com/plotly/plotly.js/pull/7009)]
- Drop support for deprecated attributes `titlefont`, `titleposition`, `titleside`, and `titleoffset` [[#7212](https://github.com/plotly/plotly.js/pull/7212)].
- Drop deprecated pointcloud and heatmapgl traces and gl2d subplots [[#7213](https://github.com/plotly/plotly.js/pull/7213)]
- Drop support for deprecated `bardir` attribute (use `orientation` instead) [[#7214](https://github.com/plotly/plotly.js/pull/7214)]
- Drop support for deprecated `annotation.ref` attribute (use `annotation.xref` and `annotation.yref` instead) [[#7215](https://github.com/plotly/plotly.js/pull/7215)]
- Drop support for deprecated error bar `opacity` attribute (use alpha channel of error bar `color` attribute instead) [[#7214](https://github.com/plotly/plotly.js/pull/7216)]
- Drop support for deprecated attribute `gl3d.cameraposition` (use `gl3d.camera` instead) [[#7217](https://github.com/plotly/plotly.js/pull/7217)]
- Drop deprecated `plot3dPixelRatio` from config [[#7231](https://github.com/plotly/plotly.js/pull/7231)]
- Drop deprecated `zauto`, `zmin` and `zmax` from the surface trace [[#7234](https://github.com/plotly/plotly.js/pull/7234)]
- Drop deprecated `autotick` attributes from cartesian axes [[#7236](https://github.com/plotly/plotly.js/pull/7236)]
- Drop `transforms` from the API [[#7240](https://github.com/plotly/plotly.js/pull/7240), [#7254](https://github.com/plotly/plotly.js/pull/7254)]
- Deprecate Mapbox-based traces.[[#4900](https://github.com/plotly/plotly.py/pull/4900)]. See the [MapLibre Migration](https://plotly.com/python/mapbox-to-maplibre/) page for details on migrating from Mapbox to Maplibre.
- Update plotly.py to use base64 encoding of typed arrays e.g. numpy in plotly JSON to keep precision intact and improve performance [[#4470](https://github.com/plotly/plotly.py/pull/4470)].
- Make plotly-express dataframe agnostic via Narwhals [[#4790](https://github.com/plotly/plotly.py/pull/4790)].
- Update `go.FigureWidget` to use `anywidget` [[#4823](https://github.com/plotly/plotly.py/pull/4823)]
- Use modern [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) to load plotly.js bundle instead of requirejs which is [no longer under active development](https://github.com/requirejs/r.js/compare/2.3.6...2.3.7) [[#4736](https://github.com/plotly/plotly.py/pull/4763)]

### Fixed
- Fix a bug in JupyterLab >= 4 and Jupyter Notebook >= 7 that caused LaTeX to not render in plotly charts [[#4763](https://github.com/plotly/plotly.py/pull/4763)].
- Fix `go.FigureWidget.show` to return `FigureWidget` instead of displaying `Figure` [[#4869](https://github.com/plotly/plotly.py/pull/4869)]

## [5.24.1] - 2024-09-12

### Updated

- Updated Plotly.js from version 2.35.0 to version 2.35.2. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2352----2024-09-10) for more information.
- Updated Plotly.js from version 2.35.0 to version 3.0.0-rc.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2352----2024-11-11) for more information.

## [5.24.0] - 2024-08-29

Expand Down
15 changes: 15 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Kruchten"
given-names: "Nicolas"
orcid: https://orcid.org/0000-0002-8416-789X
- family-names: "Seier"
given-names: "Andrew"
- family-names: "Parmer"
given-names: "Chris"
title: "An interactive, open-source, and browser-based graphing library for Python"
version: 5.24.1
doi: 10.5281/zenodo.14503524
date-released: 2024-09-12
url: "https://github.com/plotly/plotly.py"
4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License

Copyright (c) 2016-2018 Plotly, Inc
Copyright (c) 2016-2024 Plotly Technologies Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading