Skip to content

Warning "Cannot find reference 'Bar' in '__init__.py" in IntelliJ IDEA #389

Description

@osya

To fix it please add the line __all__ = ['AngularAxis', 'Annotation', 'Annotations', 'Area', 'Bar', 'Box', 'Choropleth', 'ColorBar', 'Contour', 'Contours', 'Data', 'ErrorX', 'ErrorY', 'ErrorZ', 'Figure', 'Font', 'Heatmap', 'Histogram', 'Histogram2d', 'Histogram2dContour', 'Histogram2dcontour', 'Layout', 'Legend', 'Line', 'Margin', 'Marker', 'Mesh3d', 'Pie', 'RadialAxis', 'Scatter', 'Scatter3d', 'Scattergeo', 'Scattergl', 'Scene', 'Stream', 'Surface', 'Trace', 'XAxis', 'XBins', 'YAxis', 'YBins', 'ZAxis'] in the file plotly\graph_objs\__init__.py

Activity

  1. cldougl commented on Mar 3, 2016

    @cldougl
    Member

    Hey @osya can you let us know what issue this is causing for you?

  2. osya commented on Mar 4, 2016

    @osya
    Author

    In IntelliJ IDEA, PyCharm the following warning appeares: "Caannot find reference 'Bar' in @init.py"
    plotly_warning
    . Adding line all = ... in init.py solves this warning

  3. grrttedwards commented on Oct 28, 2016

    @grrttedwards

    I encountered this issue, and was able to move past it by adding the line noted in the OP.

    Is this something that other users don't have a problem with? I was unable to use graph_obj.Bar.

  4. theengineear commented on Jan 12, 2017

    @theengineear
    Contributor

    Resolved in 1.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions