Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Buefy web components for Streamlit

License

NotificationsYou must be signed in to change notification settings

hal9ai/streamfy

Repository files navigation

Modern frontend web components based onBulma andBuefy forStreamlit.

Live demo atstreamfy.streamlit.app

Getting Started

Installstreamfy:

pip install streamfy

Create a simple applicationapp.py:

importstreamlitasstimportstreamfyassysy.carousel(items=["https://picsum.photos/id/1051/1230/500","https://picsum.photos/id/1052/1230/500","https://picsum.photos/id/1053/1230/500",])

Run this application:

streamlit run app.py

A file with all components is available inexamples/all.py:

Take a look atBuefy's documentation for a list of all properties and examples available.

Contributing

Ensure you havePython 3.6+,Node.js, andnpm installed.

Clone this repo and create a new Python virtual environment:

$ python3 -m venv venv  # create venv$ . venv/bin/activate   # activate venv$ pip install streamlit # install streamlit

Initialize and run the component frontend:

$ cd streamfy/frontend$ npm install    # Install npm dependencies$ npm run serve  # Start the Webpack dev server

From a separate terminal, run the Streamlit app:

$ . venv/bin/activate  # activate the venv you created earlier$ streamlit run streamfy/__init__.py  # run the example

If all goes well, you should see something like this:

Modify the frontend code atstreamfy/frontend/src/Streamfy.vue and the Python code atstreamfy/__init__.py.

Resources


[8]ページ先頭

©2009-2025 Movatter.jp