Skip to content

A demo for sidebar menu of streamlit component built by Vue.js. Inspired by streamlit-options-menu

License

Notifications You must be signed in to change notification settings

ashinwz/streamlit-sidebar-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streamlit siderbar menu in Vue.js

Using Vue.js to build up the sidebar menu component and the menu bar supports switching multi-pages

Setup

Copy paste of the original demo.

  • Ensure you have Python 3.8+, Node.js, and npm installed.
  • Clone this repo.
  • Create a new Python virtual environment for the template:
$ python3 -m venv venv  # create venv
$ . venv/bin/activate   # activate venv
$ pip install streamlit # install streamlit
  • Initialize and run the component template frontend:
$ cd my_component/frontend
$ npm install    # Install npm dependencies
$ npm run serve  # Start the Webpack dev server
  • From a separate terminal, run the template's Streamlit app:
$ . venv/bin/activate  # activate the venv you created earlier
$ streamlit run my_component/__init__.py  # run the example
  • If all goes well, you should see something like this: Quickstart Success Quickstart Success

Resources

About

A demo for sidebar menu of streamlit component built by Vue.js. Inspired by streamlit-options-menu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published