Thanks to visit codestin.com
Credit goes to github.com

Skip to content

__init__.py shows up in navigation on 1.44.1 #11006

@cmathewsendsight

Description

@cmathewsendsight

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

Previously, __init__.py in pages would be invisible to autogenerated navigation. After an upgrade (and after testing with several versions), somewhere between 1.43.1 and 1.44.1, this behavior changed and now there is a blank "init" page in the navbar.

Reproducible Code Example

Steps To Reproduce

Can be reproduced by setting up a structure like so, and running streamlit run mainpage.py on 1.43.1 vs 1.44.1:

.
└── appname/
├── appname/
│ ├── pages/
│ │ ├── init.py
│ │ ├── page1.py
│ │ └── page2.py
│ ├── mainpage.py
│ └── init.py
├── README.md
└── poetry.lock

Expected Behavior

Expected that __init__.py/"init" should not be listed in pages.

Current Behavior

1.43.1:

Image

1.44.1

Image

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: 1.44.1
  • Python version: 3.10.12
  • Operating System: Ubuntu/Docker
  • Browser: Edge

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions