Repository Analysis

plotly/plotly.py

The interactive graphing library for Python :sparkles:

90.0 Strong AI signal View on GitHub
90.0
Adjusted Score
90.0
Raw Score
100%
Time Factor
2026-05-21
Last Push
18,562
Stars
Python
Language
630,232
Lines of Code
2054
Files
14232
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 10583MEDIUM 324LOW 3323

Pattern Findings

14232 matches across 15 categories. Click a row to expand file-level details.

Cross-File Repetition10554 hits · 52770 pts
SeverityFileLineSnippet
HIGHplotly/__init__.py0pandas plotting backend function, not meant to be called directly. to activate, set pandas.options.plotting.backend="plo
HIGHplotly/__init__.py0pandas plotting backend function, not meant to be called directly. to activate, set pandas.options.plotting.backend="plo
HIGHplotly/__init__.py0pandas plotting backend function, not meant to be called directly. to activate, set pandas.options.plotting.backend="plo
HIGHplotly/__init__.py0pandas plotting backend function, not meant to be called directly. to activate, set pandas.options.plotting.backend="plo
HIGHplotly/basedatatypes.py0initialize a property of this object using the provided value or a value popped from the arguments dictionary. if neithe
HIGHplotly/basedatatypes.py0initialize a property of this object using the provided value or a value popped from the arguments dictionary. if neithe
HIGHplotly/basedatatypes.py0initialize a property of this object using the provided value or a value popped from the arguments dictionary. if neithe
HIGHplotly/basedatatypes.py0dispatch points and device state all all hover callbacks
HIGHplotly/basedatatypes.py0dispatch points and device state all all hover callbacks
HIGHplotly/basedatatypes.py0dispatch points and device state all all hover callbacks
HIGHplotly/graph_objs/_heatmap.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_histogram2dcontour.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_histogram2d.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_choroplethmap.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_choroplethmapbox.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_cone.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_contourcarpet.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_volume.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_isosurface.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_densitymap.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_choropleth.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_densitymapbox.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_streamtube.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_mesh3d.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_contour.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_surface.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/layout/_coloraxis.py0determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale
HIGHplotly/graph_objs/_heatmap.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_histogram2dcontour.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_histogram2d.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_choroplethmap.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_choroplethmapbox.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_cone.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_contourcarpet.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_volume.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_isosurface.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_densitymap.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_choropleth.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_densitymapbox.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_streamtube.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_mesh3d.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_contour.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/_surface.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scatterternary/_marker.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scatterternary/marker/_line.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/splom/_marker.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/splom/marker/_line.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/parcats/_line.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scattergl/_marker.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scattergl/marker/_line.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scattermap/_marker.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/parcoords/_line.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scattermapbox/_marker.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scatterpolargl/_marker.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scatterpolargl/marker/_line.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/barpolar/_marker.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/barpolar/marker/_line.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scatter/_marker.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scatter/marker/_line.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
HIGHplotly/graph_objs/scatter3d/_marker.py0sets a reference to a shared color axis. references to these shared color axes are "coloraxis", "coloraxis2", "coloraxis
10494 more matches not shown…
Unused Imports2472 hits · 2253 pts
SeverityFileLineSnippet
LOW…e/test_figure_widget_backend/test_missing_anywidget.py6
LOW…e/test_figure_widget_backend/test_missing_anywidget.py10
LOWplotly/files.py1
LOWplotly/files.py1
LOWplotly/subplots.py3
LOWplotly/subplots.py3
LOWplotly/subplots.py3
LOWplotly/__init__.py38
LOWplotly/__init__.py38
LOWplotly/__init__.py38
LOWplotly/__init__.py38
LOWplotly/__init__.py38
LOWplotly/__init__.py38
LOWplotly/__init__.py38
LOWplotly/utils.py4
LOWplotly/utils.py4
LOWplotly/utils.py5
LOWplotly/exceptions.py1
LOWplotly/optional_imports.py1
LOWplotly/graph_objs/__init__.py5
LOWplotly/graph_objs/__init__.py6
LOWplotly/graph_objs/__init__.py7
LOWplotly/graph_objs/__init__.py8
LOWplotly/graph_objs/__init__.py9
LOWplotly/graph_objs/__init__.py10
LOWplotly/graph_objs/__init__.py11
LOWplotly/graph_objs/__init__.py12
LOWplotly/graph_objs/__init__.py13
LOWplotly/graph_objs/__init__.py14
LOWplotly/graph_objs/__init__.py15
LOWplotly/graph_objs/__init__.py16
LOWplotly/graph_objs/__init__.py17
LOWplotly/graph_objs/__init__.py18
LOWplotly/graph_objs/__init__.py19
LOWplotly/graph_objs/__init__.py20
LOWplotly/graph_objs/__init__.py21
LOWplotly/graph_objs/__init__.py22
LOWplotly/graph_objs/__init__.py23
LOWplotly/graph_objs/__init__.py24
LOWplotly/graph_objs/__init__.py25
LOWplotly/graph_objs/__init__.py26
LOWplotly/graph_objs/__init__.py27
LOWplotly/graph_objs/__init__.py28
LOWplotly/graph_objs/__init__.py29
LOWplotly/graph_objs/__init__.py30
LOWplotly/graph_objs/__init__.py31
LOWplotly/graph_objs/__init__.py32
LOWplotly/graph_objs/__init__.py33
LOWplotly/graph_objs/__init__.py34
LOWplotly/graph_objs/__init__.py35
LOWplotly/graph_objs/__init__.py36
LOWplotly/graph_objs/__init__.py37
LOWplotly/graph_objs/__init__.py38
LOWplotly/graph_objs/__init__.py39
LOWplotly/graph_objs/__init__.py40
LOWplotly/graph_objs/__init__.py41
LOWplotly/graph_objs/__init__.py42
LOWplotly/graph_objs/__init__.py43
LOWplotly/graph_objs/__init__.py44
LOWplotly/graph_objs/__init__.py45
2412 more matches not shown…
Hyper-Verbose Identifiers610 hits · 634 pts
SeverityFileLineSnippet
LOWcommands.py138def overwrite_plotlyjs_version_file(plotlyjs_version):
LOWcommands.py221def update_schema_bundle_from_master(args):
LOWcommands.py273def bump_version_pyproject_toml(new_version):
LOWcommands.py309def bump_version_package_json(new_version):
LOWcommands.py338def bump_version_citation_cff(new_version, new_date):
LOWcommands.py385def bump_version_changelog_md(new_version, new_date):
LOW…sts/test_optional/test_matplotlylib/test_date_times.py52 def test_pandas_time_series_date_formatter(self):
LOW…test_optional/test_autoshapes/test_axis_span_shapes.py31def subplot_empty_traces_fig_fixture():
LOW…test_optional/test_autoshapes/test_axis_span_shapes.py334def test_add_span_shape_no_empty_plot(
LOW…test_optional/test_autoshapes/test_axis_span_shapes.py375def test_non_subplot_add_span_shape(test_input, expected, non_subplot_fig_fixture):
LOW…test_optional/test_autoshapes/test_axis_span_shapes.py387def test_invalid_subplot_address(test_input, subplot_fig_fixture):
LOW…test_optional/test_autoshapes/test_axis_span_shapes.py393def _check_figure_shapes_custom_sized(test_input, expected, fig):
LOW…test_optional/test_autoshapes/test_axis_span_shapes.py474def test_custom_sized_subplots(test_input, expected, custom_sized_subplots):
LOW…test_optional/test_autoshapes/test_annotated_shapes.py55def test_add_shape_no_annotation(multi_plot_fixture):
LOW…test_optional/test_autoshapes/test_annotated_shapes.py62def test_add_annotated_shape_single_plot(single_plot_fixture):
LOW…test_optional/test_autoshapes/test_annotated_shapes.py77def test_add_annotated_shape_multi_plot(multi_plot_fixture):
LOW…test_optional/test_autoshapes/test_annotated_shapes.py108def test_bad_annotation_position(multi_plot_fixture):
LOW…test_optional/test_autoshapes/test_annotated_shapes.py148def test_annotation_position_override(multi_plot_fixture):
LOW…test_optional/test_autoshapes/test_annotated_shapes.py257def test_specify_annotation_as_dict(multi_plot_fixture):
LOW…test_optional/test_autoshapes/test_annotated_shapes.py286def test_default_annotation_positions(multi_plot_fixture):
LOW…test_optional/test_autoshapes/test_annotated_shapes.py331def draw_all_annotation_positions(testing=False):
LOW…test_optional/test_autoshapes/test_annotated_shapes.py424def test_all_annotation_positions():
LOW…test_optional/test_autoshapes/test_annotated_shapes.py436def test_vline_datetime_string_annotation():
LOW…test_optional/test_autoshapes/test_annotated_shapes.py446def test_hline_with_datetime_xaxis():
LOW…test_optional/test_autoshapes/test_annotated_shapes.py456def test_vrect_datetime_string_annotation():
LOW…test_optional/test_autoshapes/test_annotated_shapes.py466def test_vline_datetime_object_annotation():
LOW…test_optional/test_autoshapes/test_annotated_shapes.py485def test_vrect_datetime_object_annotation():
LOWtests/test_optional/test_autoshapes/common.py14def _check_figure_layout_objects(test_input, expected, fig, layout_key="shapes"):
LOWtests/test_optional/test_tools/test_figure_factory.py607 def test_datetime_candlestick(self):
LOWtests/test_optional/test_tools/test_figure_factory.py784 def test_simple_annotated_heatmap(self):
LOWtests/test_optional/test_tools/test_figure_factory.py882 def test_annotated_heatmap_kwargs(self):
LOWtests/test_optional/test_tools/test_figure_factory.py977 def test_annotated_heatmap_reversescale(self):
LOWtests/test_optional/test_tools/test_figure_factory.py1620 def test_gantt_validate_colors(self):
LOWtests/test_optional/test_tools/test_figure_factory.py1731 def test_gannt_groups_and_descriptions(self):
LOWtests/test_optional/test_utils/test_utils.py36 def test_masked_constants_example():
LOWtests/test_optional/test_utils/test_utils.py168 def test_encode_as_datetime_with_microsecond(self):
LOWtests/test_optional/test_utils/test_utils.py181 def test_encode_as_datetime_with_localized_tz(self):
LOWtests/test_optional/test_utils/test_utils.py216 def test_figure_json_encoding(self):
LOWtests/test_optional/test_utils/test_utils.py258 def test_datetime_json_encoding(self):
LOWtests/test_optional/test_utils/test_utils.py272 def test_pandas_json_encoding(self):
LOWtests/test_optional/test_utils/test_utils.py304 def test_encode_customdata_datetime_series(self):
LOWtests/test_optional/test_utils/test_utils.py333 def test_encode_customdata_datetime_homogeneous_dataframe(self):
LOWtests/test_optional/test_utils/test_utils.py367 def test_encode_customdata_datetime_inhomogeneous_dataframe(self):
LOWtests/test_optional/test_utils/test_utils.py388 def test_numpy_masked_json_encoding(self):
LOWtests/test_optional/test_utils/test_utils.py456 def test_invalid_encode_exception(self):
LOWtests/test_optional/test_utils/test_utils.py462 def test_numpy_integer_import(self):
LOWtests/test_optional/test_kaleido/test_kaleido.py59def test_kaleido_engine_to_image_returns_bytes():
LOWtests/test_optional/test_kaleido/test_kaleido.py70def test_kaleido_engine_to_image():
LOWtests/test_optional/test_kaleido/test_kaleido.py78def test_kaleido_engine_write_image(tmp_path):
LOWtests/test_optional/test_kaleido/test_kaleido.py87def test_kaleido_engine_to_image_kwargs():
LOWtests/test_optional/test_kaleido/test_kaleido.py100def test_kaleido_engine_write_image_kwargs(tmp_path):
LOWtests/test_optional/test_kaleido/test_kaleido.py122def test_kaleido_engine_write_images(tmp_path):
LOWtests/test_optional/test_kaleido/test_kaleido.py340def test_width_height_priority():
LOW…st_optional/test_figure_factory/test_figure_factory.py37 def test_wrong_histdata_format(self):
LOW…st_optional/test_figure_factory/test_figure_factory.py45 def test_unequal_data_label_length(self):
LOW…st_optional/test_figure_factory/test_figure_factory.py52 def test_simple_distplot_prob_density(self):
LOW…st_optional/test_figure_factory/test_figure_factory.py105 def test_simple_distplot_prob(self):
LOW…st_optional/test_figure_factory/test_figure_factory.py156 def test_distplot_more_args_prob_dens(self):
LOW…st_optional/test_figure_factory/test_figure_factory.py279 def test_distplot_more_args_prob(self):
LOW…st_optional/test_figure_factory/test_figure_factory.py402 def test_distplot_binsize_array_prob(self):
550 more matches not shown…
Decorative Section Separators298 hits · 627 pts
SeverityFileLineSnippet
MEDIUM…st_plotly_utils/validators/test_colorlist_validator.py33# ----------
MEDIUMtests/test_io/test_to_from_json.py216# ----------
MEDIUMtests/test_io/test_renderers.py89# ---------------
MEDIUMtests/test_io/test_renderers.py129# ------------
MEDIUMtests/test_io/test_renderers.py274# ----------
MEDIUMtests/test_core/test_figure_messages/test_on_change.py22 # --------------------
MEDIUMtests/test_core/test_figure_messages/test_on_change.py45 # ------------------------
MEDIUMtests/test_core/test_graph_objs/test_template.py132 # ------------------------
MEDIUMtests/test_core/test_graph_objs/test_template.py26 # -------------------------
MEDIUM…ts/test_core/test_update_objects/test_update_traces.py108 # --------------------------------
MEDIUM…ts/test_core/test_update_objects/test_update_traces.py282 # ------------------
MEDIUMplotly/_subplots.py348 # -----------------------------
MEDIUMplotly/_subplots.py361 # ----------------------
MEDIUMplotly/_subplots.py634 # -----------
MEDIUMplotly/_subplots.py638 # --------------------
MEDIUMplotly/_subplots.py768 # ---------------------
MEDIUMplotly/serializers.py29 # -----------------------
MEDIUMplotly/serializers.py34 # -----------------------------
MEDIUMplotly/serializers.py39 # ------------------
MEDIUMplotly/serializers.py57 # ----------------
MEDIUMplotly/serializers.py62 # -------------------
MEDIUMplotly/serializers.py84 # -----------
MEDIUMplotly/serializers.py89 # -----------------
MEDIUMplotly/serializers.py94 # ----------------
MEDIUMplotly/serializers.py99 # -------------------
MEDIUMplotly/basedatatypes.py483 # ------------------------------
MEDIUMplotly/basedatatypes.py488 # ------------------
MEDIUMplotly/basedatatypes.py498 # ------------------------------------------------------
MEDIUMplotly/basedatatypes.py681 # --------------
MEDIUMplotly/basedatatypes.py687 # -----------------
MEDIUMplotly/basedatatypes.py692 # ------------------
MEDIUMplotly/basedatatypes.py1681 # -----------------------
MEDIUMplotly/basedatatypes.py1685 # ---------------------
MEDIUMplotly/basedatatypes.py1694 # ------------------------------
MEDIUMplotly/basedatatypes.py1800 # -------------------
MEDIUMplotly/basedatatypes.py1804 # -----------------
MEDIUMplotly/basedatatypes.py1813 # -------------
MEDIUMplotly/basedatatypes.py1893 # ---------------
MEDIUMplotly/basedatatypes.py1897 # ----------------
MEDIUMplotly/basedatatypes.py1903 # ---------------------
MEDIUMplotly/basedatatypes.py1909 # -----------------------------------------------------
MEDIUMplotly/basedatatypes.py1925 # --------------------------------------------
MEDIUMplotly/basedatatypes.py1933 # --------------
MEDIUMplotly/basedatatypes.py4346 # ---------------
MEDIUMplotly/basedatatypes.py4350 # ------------
MEDIUMplotly/basedatatypes.py4354 # ---------------------
MEDIUMplotly/basedatatypes.py4580 # -----------------------
MEDIUMplotly/basedatatypes.py4584 # -------------------------
MEDIUMplotly/basedatatypes.py4590 # ---------------------------------------------
MEDIUMplotly/basedatatypes.py4760 # --------------
MEDIUMplotly/basedatatypes.py4766 # ----------------
MEDIUMplotly/basedatatypes.py4772 # ------------------
MEDIUMplotly/basedatatypes.py4893 # --------------
MEDIUMplotly/basedatatypes.py4899 # -----------------
MEDIUMplotly/basedatatypes.py4904 # ----------------
MEDIUMplotly/basedatatypes.py4909 # ------------------
MEDIUMplotly/basedatatypes.py5279 # -----------
MEDIUMplotly/basedatatypes.py5291 # ------------------
MEDIUMplotly/basedatatypes.py5327 # ----------------
MEDIUMplotly/basedatatypes.py5333 # ------------
238 more matches not shown…
Cross-Language Confusion26 hits · 124 pts
SeverityFileLineSnippet
HIGHtests/test_optional/test_utils/test_utils.py228 '"y": [1, 2, 3, null, null, "2014-01-05T00:00:00"], '
HIGHtests/test_optional/test_utils/test_utils.py276 assert j1 == '[1, 2, 3, "2014-01-05T00:00:00", null, null, null]'
HIGHtests/test_optional/test_utils/test_utils.py291 assert j3 == "[null]"
HIGHtests/test_optional/test_utils/test_utils.py392 assert j1 == "[1, 2, null]"
HIGHtests/test_optional/test_utils/test_utils.py453 expected_result = '[1, null, null, null, "platypus"]'
HIGHtests/test_optional/test_px/test_px_input.py276 assert df_out.equals(df)
HIGHtests/test_optional/test_px/test_px_input.py286 assert df_out.equals(df)
HIGHtests/test_optional/test_px/test_px_input.py490 assert petal_length.equals(petal_length)
HIGHtests/test_core/test_graph_objs/test_update.py71 If the original list is undefined, the updated list should be
HIGHtests/test_core/test_utils/test_utils.py11 expected_result = '[1, null, null, null, "platypus"]'
HIGHplotly/graph_objs/_violin.py845 a violin's `width` is undefined, `scalegroup` will default to
HIGHplotly/graph_objs/_violin.py1635 undefined, `scalegroup` will default to the trace's
HIGHplotly/graph_objs/_violin.py2073 undefined, `scalegroup` will default to the trace's
HIGHplotly/graph_objs/layout/_xaxis.py1413 Sets the spike color. If undefined, will use the series color
HIGHplotly/graph_objs/layout/_xaxis.py2610 Sets the spike color. If undefined, will use the series
HIGHplotly/graph_objs/layout/_xaxis.py3255 Sets the spike color. If undefined, will use the series
HIGHplotly/graph_objs/layout/_yaxis.py1421 Sets the spike color. If undefined, will use the series color
HIGHplotly/graph_objs/layout/_yaxis.py2628 Sets the spike color. If undefined, will use the series
HIGHplotly/graph_objs/layout/_yaxis.py3283 Sets the spike color. If undefined, will use the series
HIGHplotly/io/_base_renderers.py235if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web
HIGHplotly/io/_base_renderers.py315 if (!display || display === 'none') {{
HIGHplotly/io/_html.py31if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web
HIGHplotly/matplotlylib/mplexporter/tools.py18 if (window['d3'] === undefined) {{
HIGHplotly/matplotlylib/mplexporter/tools.py25 if (window['topojson'] === undefined) {{
HIGH…ly/matplotlylib/mplexporter/renderers/fake_renderer.py64 When the following are left undefined, they will be implemented via
HIGHplotly/offline/offline.py190if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web
Deep Nesting118 hits · 94 pts
SeverityFileLineSnippet
LOWcommands.py494
LOWtests/utils.py15
LOWtests/test_optional/optional_utils.py64
LOW…st_optional/test_figure_factory/test_figure_factory.py4199
LOW…st_optional/test_figure_factory/test_figure_factory.py4213
LOWtests/test_optional/test_px/test_px.py468
LOWtests/test_io/test_renderers.py453
LOW…est_core/test_graph_objs/test_instantiate_hierarchy.py16
LOWplotly/_subplots.py42
LOWplotly/_subplots.py897
LOWplotly/_subplots.py1086
LOWplotly/_subplots.py1169
LOWplotly/_subplots.py1265
LOWplotly/_subplots.py1515
LOWplotly/tools.py487
LOWplotly/serializers.py7
LOWplotly/basedatatypes.py159
LOWplotly/basedatatypes.py297
LOWplotly/basedatatypes.py679
LOWplotly/basedatatypes.py741
LOWplotly/basedatatypes.py862
LOWplotly/basedatatypes.py1115
LOWplotly/basedatatypes.py1418
LOWplotly/basedatatypes.py1468
LOWplotly/basedatatypes.py1710
LOWplotly/basedatatypes.py1870
LOWplotly/basedatatypes.py2530
LOWplotly/basedatatypes.py2821
LOWplotly/basedatatypes.py3907
LOWplotly/basedatatypes.py4438
LOWplotly/basedatatypes.py4504
LOWplotly/basedatatypes.py4732
LOWplotly/basedatatypes.py4870
LOWplotly/utils.py186
LOWplotly/utils.py74
LOWplotly/validator_cache.py17
LOWplotly/basewidget.py635
LOWplotly/basewidget.py806
LOWplotly/basewidget.py884
LOWplotly/express/_core.py170
LOWplotly/express/_core.py214
LOWplotly/express/_core.py302
LOWplotly/express/_core.py910
LOWplotly/express/_core.py1007
LOWplotly/express/_core.py1113
LOWplotly/express/_core.py1213
LOWplotly/express/_core.py1480
LOWplotly/express/_core.py1931
LOWplotly/express/_core.py2209
LOWplotly/express/_core.py2507
LOWplotly/express/_imshow.py20
LOWplotly/express/_imshow.py39
LOWplotly/express/_imshow.py56
LOWplotly/io/_json.py478
LOWplotly/io/_renderers.py36
LOWplotly/io/_renderers.py273
LOWplotly/io/_renderers.py319
LOWplotly/io/_base_renderers.py613
LOWplotly/io/_html.py35
LOWplotly/io/_orca.py1175
58 more matches not shown…
Redundant / Tautological Comments48 hits · 72 pts
SeverityFileLineSnippet
LOWcommands.py397 # Check if the header already exists, so that we don't add a double header
LOWplotly/_subplots.py1119 # Check if it's a named subplot type
LOWplotly/basedatatypes.py482 # Assign layout_plotly to layout
LOWplotly/basedatatypes.py1924 # Assign value to final parent dict or list
LOWplotly/basedatatypes.py5281 # Check if we should send null update
LOWplotly/utils.py88 # Set threshold to self.max_list_elements
LOWplotly/io/_json.py280 # Open file
LOWplotly/io/_json.py464 # Read file contents into JSON string
LOWplotly/io/_renderers.py492 # Check if we're running in a Colab web notebook
LOWplotly/io/_renderers.py496 # Check if we're running in a Kaggle notebook
LOWplotly/io/_renderers.py500 # Check if we're running in an Azure Notebook
LOWplotly/io/_renderers.py504 # Check if we're running in VSCode
LOWplotly/io/_renderers.py508 # Check if we're running in nteract
LOWplotly/io/_renderers.py512 # Check if we're running in CoCalc
LOWplotly/io/_renderers.py519 # Check if we're running in spyder and orca is installed
LOWplotly/io/_renderers.py106 # Check if we need to remove it as the default
LOWplotly/io/_renderers.py530 # Check if we're running in ipython terminal
LOWplotly/io/_renderers.py536 # Check if we're running in a Jupyter notebook or JupyterLab
LOWplotly/io/_kaleido.py360 # Check if trying to export to EPS format, which is not supported in Kaleido v1
LOWplotly/io/_kaleido.py540 # Open file
LOWplotly/io/_html.py488 # Check if file is a string
LOWplotly/io/_html.py507 # Check if we should copy plotly.min.js to output directory
LOWplotly/io/_orca.py981 # Check if we should run with Xvfb
LOWplotly/io/_orca.py1458 # Check if the orca server process exists
LOWplotly/io/_orca.py1652 # Open file
LOWplotly/io/_templates.py100 # Check if we need to remove it as the default
LOWplotly/io/_templates.py305 # Check if we can remove prop itself
LOWplotly/io/_templates.py488 # Check if we can remove the data altogether key
LOWplotly/figure_factory/_scatterplot.py27 # Check if endpts is a list or tuple
LOWplotly/figure_factory/_scatterplot.py34 # Check if endpts contains only numbers
LOWplotly/figure_factory/_scatterplot.py43 # Check if numbers in endpts are increasing
LOWplotly/figure_factory/_scatterplot.py98 # Check if pandas dataframe
LOWplotly/figure_factory/_scatterplot.py106 # Check if dataframe is 1 column or less
LOWplotly/figure_factory/_scatterplot.py379 # Check if index is made of string values
LOWplotly/figure_factory/_scatterplot.py792 # Push the trace into list
LOWplotly/figure_factory/utils.py127 # Check if endpts is a list or tuple
LOWplotly/figure_factory/utils.py134 # Check if endpts contains only numbers
LOWplotly/figure_factory/utils.py143 # Check if numbers in endpts are increasing
LOWplotly/figure_factory/_trisurf.py140 # Check if facecolors are already strings and can be skipped
LOWplotly/figure_factory/_quiver.py230 # Set angles to create arrow
LOWplotly/figure_factory/_quiver.py254 # Set coordinates to create arrow
LOWcodegen/compatibility.py171 # Write file
LOWcodegen/validators.py80 # Write file
LOWcodegen/datatypes.py633 # Write file
LOWcodegen/utils.py43 # Write file
LOWcodegen/utils.py123 # Write file
LOW_plotly_utils/basevalidators.py2730 # Check if v is a template identifier
LOWtemplategen/utils/__init__.py114 # Set automargin to true in case we need to adjust margins for
Excessive Try-Catch Wrapping39 hits · 42 pts
SeverityFileLineSnippet
LOWcommands.py57 except Exception:
LOWtests/test_optional/__init__.py6except Exception:
LOWtests/test_optional/test_utils/test_utils.py39 except Exception:
MEDIUMtests/test_optional/test_utils/test_utils.py36def test_masked_constants_example():
LOW…est_core/test_graph_objs/test_instantiate_hierarchy.py25 except Exception:
LOW…e/test_figure_widget_backend/test_missing_anywidget.py13except Exception:
LOWplotly/tools.py698 except Exception:
LOWplotly/basedatatypes.py5146 except Exception:
LOWplotly/graph_objs/__init__.py280 except Exception:
LOWplotly/graph_objs/__init__.py298 except Exception:
MEDIUMplotly/express/_core.py142def get_label(args, column):
LOWplotly/express/_core.py145 except Exception:
LOWplotly/express/_core.py157 except Exception:
LOWplotly/express/_core.py1024 except Exception:
LOWplotly/express/_core.py1585 except Exception:
LOWplotly/express/_core.py1954 except Exception: # pandas, Polars and pyarrow exception types are different
LOWplotly/express/_core.py2163 except Exception as exc:
LOWplotly/io/_renderers.py42 except Exception:
LOWplotly/io/_renderers.py557 except Exception:
LOWplotly/io/_kaleido.py321 except Exception:
LOWplotly/io/_base_renderers.py572 except Exception:
LOWplotly/io/_base_renderers.py830 except Exception: # python 2
MEDIUMplotly/io/_base_renderers.py32def __repr__(self):
LOWplotly/io/_orca.py124 except Exception as e:
LOWplotly/io/_orca.py253 except Exception:
LOWplotly/io/_orca.py1197 except Exception:
LOWplotly/io/_orca.py1207 except Exception:
LOWplotly/graph_objects/__init__.py281 except Exception:
LOWplotly/graph_objects/__init__.py299 except Exception:
LOWplotly/matplotlylib/mpltools.py555 except Exception:
LOWplotly/matplotlylib/mpltools.py564 except Exception:
LOWplotly/data/__init__.py428 except Exception as e:
LOWcodegen/__init__.py264 except Exception:
LOWcodegen/__init__.py279 except Exception:
LOW_plotly_utils/files.py14 except Exception:
LOW_plotly_utils/files.py22 except Exception:
LOW_plotly_utils/files.py25 except Exception: # Do not trap KeyboardInterrupt.
MEDIUM_plotly_utils/files.py9def _permissions():
LOW_plotly_utils/optional_imports.py31 except Exception:
Self-Referential Comments18 hits · 28 pts
SeverityFileLineSnippet
MEDIUMcommands.py146# This file is generated by the updatebundle commands.py command
MEDIUM…test_core/test_figure_messages/test_plotly_relayout.py62 # Initialize template object
MEDIUMplotly/basedatatypes.py2582 # Initialize template object
MEDIUMplotly/express/_core.py2580 # Create the trace
MEDIUMplotly/io/_sg_scraper.py1# This module defines an image scraper for sphinx-gallery
MEDIUMplotly/figure_factory/_2d_density.py66 >>> # Create a figure
MEDIUMplotly/figure_factory/_2d_density.py87 >>> # Create a figure
MEDIUMplotly/figure_factory/_gantt.py864 >>> # Create a figure
MEDIUMplotly/figure_factory/_gantt.py881 >>> # Create a figure with Plotly colorscale
MEDIUMplotly/figure_factory/_gantt.py900 >>> # Create a figure with Plotly colorscale
MEDIUMplotly/figure_factory/_gantt.py923 >>> # Create a figure with Plotly colorscale
MEDIUMplotly/figure_factory/_gantt.py940 >>> # Create a figure with Plotly colorscale
MEDIUMplotly/figure_factory/_trisurf.py329 >>> # Create a figure
MEDIUMplotly/figure_factory/_trisurf.py357 >>> # Create a figure
MEDIUMplotly/figure_factory/_trisurf.py386 >>> # Create a figure
MEDIUMplotly/figure_factory/_trisurf.py418 >>> # Create a figure
MEDIUMplotly/offline/_plotlyjs_version.py2# This file is generated by the updatebundle commands.py command
MEDIUM_plotly_utils/png.py2140 # Create a fresh target row, then copy L channel
Hallucination Indicators2 hits · 25 pts
SeverityFileLineSnippet
CRITICALtests/test_optional/test_px/test_px.py88 assert fig.layout.legend.title.text.startswith("SEX")
CRITICALtests/test_core/test_figure_messages/test_on_change.py96 self.figure.layout.xaxis.title.font.on_change(fn_title_font, "family")
Over-Commented Block29 hits · 24 pts
SeverityFileLineSnippet
LOWjs/src/widget.ts181 // Messages are implemented using trait properties. This is done so
LOW…test_optional/test_autoshapes/test_annotated_shapes.py1# Test annotations added by calling hline, vline, hrect, vrect with the annotation* keywords
LOWtests/test_core/test_graph_objs/test_scatter.py21
LOW…test_update_objects/test_row_col_subplot_addressing.py41
LOWplotly/_subplots.py1# Constants
LOWplotly/basedatatypes.py481
LOWplotly/basedatatypes.py521 # Handle data (traces)
LOWplotly/basedatatypes.py541 # explicitly set by the user for each trace.
LOWplotly/basedatatypes.py601 # Frames
LOWplotly/basedatatypes.py621 # ---------------
LOWplotly/basedatatypes.py1681 # -----------------------
LOWplotly/basedatatypes.py2901 """
LOWplotly/basedatatypes.py4361 # objects
LOWplotly/basewidget.py21 # These properties store the current state of the traces and
LOWplotly/basewidget.py61 # responsible for setting the message property to None after retreiving
LOWplotly/basewidget.py121 # completed yet.
LOWplotly/express/_core.py1981 continuous_aggs = []
LOWplotly/express/_core.py2001 # df.groupby(path[i:]).agg(...)
LOWplotly/figure_factory/_gantt.py541 scatter_data_dict[k]["showlegend"] = showlegend
LOW_plotly_utils/png.py1#!/usr/bin/env python
LOW_plotly_utils/png.py21#
LOW_plotly_utils/basevalidators.py461 # coerce_number is rarely used and not implemented
LOW_plotly_utils/basevalidators.py501 #
LOW_plotly_utils/basevalidators.py2001 for i, item in enumerate(info_array_items):
LOWdoc/python/line-and-scatter.md361 // point_size) < 1)):
LOWdoc/python/text-and-annotations.md801 # putting the note in the HTML to use the browser's automated word wrap,
LOWdoc/apidoc/conf.py1# Configuration file for the Sphinx documentation builder.
LOWdoc/apidoc/conf.py101# relative to this directory. They are copied after the builtin static files,
LOWdoc/apidoc/conf.py121
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippet
HIGHdoc/python/tile-map-layers.md92- A custom style URL. For example: https://tiles.stadiamaps.com/styles/stamen_watercolor.json?api_key=YOUR-API-KEY
HIGHdoc/python/tile-map-layers.md216fig.update_layout(map_style="https://tiles.stadiamaps.com/styles/stamen_watercolor.json?api_key=YOUR-API-KEY", map_cente
HIGHdoc/unconverted/python/tesla-supercharging-stations.md59my_google_maps_api_key = 'YOUR_API_KEY'
Fake / Example Data10 hits · 15 pts
SeverityFileLineSnippet
LOWdoc/python/table.md115 ["Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aeter
LOWdoc/python/table.md115 ["Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aeter
LOWdoc/python/table.md116 "Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aetern
LOWdoc/python/table.md116 "Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aetern
LOWdoc/python/table.md117 "Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aetern
LOWdoc/python/table.md117 "Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aetern
LOWdoc/python/table.md118 "Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aetern
LOWdoc/python/table.md118 "Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aetern
LOWdoc/python/table.md119 "Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aetern
LOWdoc/python/table.md119 "Lorem ipsum dolor sit amet, tollit discere inermis pri ut. Eos ea iusto timeam, an prima laboramus vim. Id usu aetern
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippet
MEDIUM…test_optional/test_autoshapes/test_annotated_shapes.py227# Test that you can add an annotation using annotation=go.layout.Annotation(...)
MEDIUM…test_optional/test_autoshapes/test_annotated_shapes.py256# Test that you can add an annotation using annotation=dict(...)
AI Slop Vocabulary3 hits · 4 pts
SeverityFileLineSnippet
LOWtests/test_core/test_graph_objs/test_graph_objs.py52 # compat, so we basically just create a checkpoint with this test.
MEDIUMplotly/express/imshow_utils.py1"""Vendored code from scikit-image in order to limit the number of dependencies
MEDIUMplotly/io/_base_renderers.py829 filename = stack[3].filename # let's hope this is robust...