Skip to content

Missing "import urllib" in "streamlit hello" mapping/dataframe demo code #2969

@BrunoGomesCoelho

Description

@BrunoGomesCoelho

The mapping and dataframe demo (streamlit hello, select mapping option on left hand size, have "show code" checked) seems to be missing "import urllib" in the code section below the live demo;

The code uses except urllib.error.URLError as e: but urllib is never imported; copying and pasting the code into an app does show the import error.

Tested on streamlit 0.78.0, python 3.8.

EDIT 1: make it clearer
EDIT 2: Just realized the same thing happens for the Dataframe demo, edited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers to the codebasetype:docsRequests for changes to docs (will be rerouted to docs repo)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions