Registry / web-framework / streamlit-vertical-slider

streamlit-vertical-slider

JSON →
library2.5.5pypypiunverified

Streamlit-vertical-slider is a custom Streamlit component that creates a customizable vertical slider with various styling options including color, thumb shape, and height. It extends Streamlit's native widget capabilities to provide a vertical input method. The current version is 2.5.5, released on December 21, 2023. The project appears to have an active, though not rapid, release cadence, with significant updates in versions 2.0 and 2.5.

pip install streamlit-vertical-slider
INSTALL
IMPORT
SIG · STREAMLIT-VERTICAL
S
streamlit-vertical-slider
web-frameworkpythonv2.5.5
Install
15.6s avg
Import
Disk
440MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.5.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.940 runs
installs and imports cleanly · install 0.0s · import 0.000s · 451.9MB
glibc
py 3.103.940 runs
installs and imports cleanly · install 15.6s · import 0.000s · 421MB
440MB installed
● package 440MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

vertical_slider
from streamlit_vertical_slider import vertical_slider
from streamlit_vertical_slider import vertical_slider

This quickstart demonstrates how to import and use the `vertical_slider` component with various customization options. It sets up a basic Streamlit app, displays a vertical slider, and shows its current value.

import streamlit as st from streamlit_vertical_slider import vertical_slider st.set_page_config(layout="centered") st.title("Vertical Slider Demo") value = vertical_slider( label="Adjust Value", key="my_vertical_slider", height=300, # Optional - Defaults to 300 thumb_shape="circle", # Optional - Defaults to "circle" (can be "square", "pill") step=1, default_value=50, min_value=0, max_value=100, track_color="#D3D3D3", # Optional - Defaults to Streamlit Red (a light gray often used) slider_color=('red','blue'), # Optional - Can be a single color or tuple for gradient thumb_color="orange", # Optional - Defaults to Streamlit Red value_always_visible=True # Optional - Defaults to False ) st.write(f"Current Slider Value: {value}") # Example of how to access the value if not directly assigned if 'my_vertical_slider' in st.session_state: st.write(f"Value from session state: {st.session_state['my_vertical_slider']}")
Debug
Known issues
breakingOlder versions (1.0, 1.0.1, 1.0.2, 2.0.5) were yanked from PyPI due to upgrade issues or being faulty. Users should ensure they are on version 2.5.x or newer for stability and latest features.
fix
Upgrade to the latest stable version: `pip install --upgrade streamlit-vertical-slider`
affects: <2.5.0
breakingVersion 2.0 introduced significant changes, including an upgrade to Material-UI v5, support for Dark Mode, and new optional arguments like `label`, `thumb_shape`, and `height`. Code written for pre-2.0 versions might need adjustments to these new parameters.
fix
Review your `vertical_slider` arguments and update them to align with the V2.0+ API, especially for `height`, `thumb_shape`, and label handling.
affects: <2.0.0
gotchaIn versions prior to 2.5, there was an issue where the `default_value` was not consistently sent back to Streamlit, potentially causing unexpected behavior upon initial render or resets.
fix
Upgrade to version 2.5.0 or later to ensure `default_value` is handled correctly. `pip install --upgrade streamlit-vertical-slider`
affects: <2.5.0
gotchaThe `label` argument was refactored into a tooltip in version 2.5, which reduced the width of the widget by 30%. While generally an improvement, this might slightly alter layout for apps relying on the previous label rendering.
fix
Be aware of potential minor layout changes if upgrading from pre-2.5.0. Ensure your Streamlit app layout accommodates the potentially narrower slider if you relied on the previous label's width.
affects: All versions
Upgrade
Version history
2.5.5latest on PyPI · released Dec 22, 2023
Audit
Dependencies
streamlitrequiredThis is a custom component for Streamlit applications.
Agent activity
13 hits · last 30 days
node
10
Resources
streamlit-vertical-slider — pip install streamlit-vertical-slider · libregistry