Skip to content

fix: remove show_link argument from plotly.offline.plot() (closes #468) - #469

Merged
ghtmtt merged 1 commit into
ghtmtt:masterfrom
Jah-yee:fix/remove-show-link-argument
Oct 7, 2026
Merged

ghtmtt merged 1 commit into
ghtmtt:masterfrom
Jah-yee:fix/remove-show-link-argument

Conversation

@Jah-yee

@Jah-yee Jah-yee commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Summary

plotly 4.2.3 removed the show_link parameter from plotly.offline.plot(), which causes a TypeError when rendering plots in the QGIS DataPlotly plugin.

Fix

Remove show_link=False from all three call sites in DataPlotly/core/plot_factory.py:

  • Line 868: build_html() method
  • Line 963: scatter plot method
  • Line 1021: another plot method

Testing

Verified syntax is correct via python3 -m py_compile.

Related Issue

Fixes #468

plotly 4.2.3 removed the show_link parameter from plotly.offline.plot(),
which causes TypeError when rendering plots in QGIS DataPlotly plugin.
Remove show_link=False from all three call sites in plot_factory.py.

Fixes ghtmtt#468
@Jah-yee

Jah-yee commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Created a fix for this issue — removed show_link=False from all three plotly.offline.plot() call sites in plot_factory.py. The show_link parameter was removed in plotly 4.2.3. All changes are syntax-verified.

@ghtmtt

ghtmtt commented Oct 7, 2026

Copy link
Copy Markdown
Owner

thanks!

@ghtmtt
ghtmtt merged commit ff942a0 into ghtmtt:master Oct 7, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: plot() got an unexpected keyword argument 'show_link'

2 participants