{"id":39440379,"url":"https://github.com/panel-extensions/panel-precision-slider","last_synced_at":"2026-01-18T04:19:14.117Z","repository":{"id":264080872,"uuid":"892306513","full_name":"panel-extensions/panel-precision-slider","owner":"panel-extensions","description":" A versatile slider with fine-tuned control, adjustable precision, and direct text input for exact values.","archived":false,"fork":false,"pushed_at":"2025-12-01T05:25:00.000Z","size":115,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-03T16:40:35.180Z","etag":null,"topics":["component","extension","panel","python","slider"],"latest_commit_sha":null,"homepage":"https://panel-extensions.github.io/panel-precision-slider/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panel-extensions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-21T21:42:14.000Z","updated_at":"2025-04-06T03:09:21.000Z","dependencies_parsed_at":"2025-01-01T06:18:30.636Z","dependency_job_id":"9a68d2ad-e20e-4265-a80b-949f8b16a4c4","html_url":"https://github.com/panel-extensions/panel-precision-slider","commit_stats":null,"previous_names":["panel-extensions/panel-precision-slider"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/panel-extensions/panel-precision-slider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panel-extensions%2Fpanel-precision-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panel-extensions%2Fpanel-precision-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panel-extensions%2Fpanel-precision-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panel-extensions%2Fpanel-precision-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panel-extensions","download_url":"https://codeload.github.com/panel-extensions/panel-precision-slider/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panel-extensions%2Fpanel-precision-slider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component","extension","panel","python","slider"],"created_at":"2026-01-18T04:19:13.372Z","updated_at":"2026-01-18T04:19:14.111Z","avatar_url":"https://github.com/panel-extensions.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✨ panel-precision-slider\n\n[![CI](https://img.shields.io/github/actions/workflow/status/panel-extensions/panel-precision-slider/ci.yml?style=flat-square\u0026branch=main)](https://github.com/panel-extensions/panel-precision-slider/actions/workflows/ci.yml)\n[![pypi-version](https://img.shields.io/pypi/v/panel-precision-slider.svg?logo=pypi\u0026logoColor=white\u0026style=flat-square)](https://pypi.org/project/panel-precision-slider)\n[![python-version](https://img.shields.io/pypi/pyversions/panel-precision-slider?logoColor=white\u0026logo=python\u0026style=flat-square)](https://pypi.org/project/panel-precision-slider)\n\nA versatile slider with fine-tuned control, adjustable precision, and direct text input for exact values.\n\n![Export-1732234916141](https://github.com/user-attachments/assets/5ac903ae-5bcf-4d8e-af17-40d76c5d9fb3)\n\n## Features\n\n- **Toggle Between Slider and Input:** Switch between a slider and a direct input field for value selection.\n- **Adjustable Step Size:** Show or hide the step size adjustment slider to control the precision of the value.\n- **Customizable Icons:** Use toggle icons to enhance the user interface for swapping views and showing steps.\n\n## Pin your version!\n\nThis project is **in its early stages**, so if you find a version that suits your needs, it’s recommended to **pin your version**, as updates may introduce changes.\n\n## Installation\n\nInstall it via `pip`:\n\n```bash\npip install panel-precision-slider\n```\n\n## Usage\n\n```python\nimport panel_precision_slider\n```\n\n## Development\n\n```bash\ngit clone https://github.com/panel-extensions/panel-precision-slider\ncd panel-precision-slider\n```\n\nFor a simple setup use [`uv`](https://docs.astral.sh/uv/):\n\n```bash\nuv venv\nsource .venv/bin/activate # on linux. Similar commands for windows and osx\nuv pip install -e .[dev]\npre-commit run install\npytest tests\n```\n\nFor the full Github Actions setup use [pixi](https://pixi.sh):\n\n```bash\npixi run pre-commit-install\npixi run postinstall\npixi run test\n```\n\nThis repository is based on [copier-template-panel-extension](https://github.com/panel-extensions/copier-template-panel-extension) (you can create your own Panel extension with it)!\n\nThe `PrecisionSlider` is a custom Panel component that provides a synchronized slider and input field for selecting numerical values with adjustable precision. Users can toggle between a slider and a direct input field, as well as show or hide the step size adjustment.\n\n### Basic Example\n\n```python\nimport panel as pn\nfrom panel_precision_slider import PrecisionSlider\n\npn.extension()\n\n# Instantiate the PrecisionSlider\nprecision_slider = PrecisionSlider(\n    value=5,\n    min=0,\n    max=10,\n    step=0.1,\n    show_step=True,\n    swap=False\n)\n\n# Display the slider\nprecision_slider\n```\n\n### Integrating with Other Panel Components\n\nYou can integrate `PrecisionSlider` with other Panel widgets and layouts to build interactive dashboards.\n\n```python\nimport panel as pn\nimport numpy as np\nimport holoviews as hv\nfrom panel_precision_slider import PrecisionSlider\n\nhv.extension('bokeh')\npn.extension()\n\ndef sine_wave(frequency):\n    x = np.linspace(0, 10, 500)\n    y = np.sin(2 * np.pi * frequency * x)\n    return hv.Curve((x, y), 'x', 'sin(2πfx)')\n\nprecision_slider = PrecisionSlider(name=\"Select Value\", value=2.5, min=0, max=5, step=0.05)\nsine_plot = pn.bind(sine_wave, precision_slider.param.value)\n\nlayout = pn.Column(\n    \"### Precision Slider Example\",\n    precision_slider,\n    sine_plot\n)\n\nlayout.servable()\n```\n\nNote: `copier` will show `Conflict` for files with manual changes during an update. This is normal. As long as there are no merge conflict markers, all patches applied cleanly.\n\n## ❤️ Contributing\n\nContributions are welcome! Please follow these steps to contribute:\n\n1. Fork the repository.\n2. Create a new branch: `git checkout -b feature/YourFeature`.\n3. Make your changes and commit them: `git commit -m 'Add some feature'`.\n4. Push to the branch: `git push origin feature/YourFeature`.\n5. Open a pull request.\n\nPlease ensure your code adheres to the project's coding standards and passes all tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanel-extensions%2Fpanel-precision-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanel-extensions%2Fpanel-precision-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanel-extensions%2Fpanel-precision-slider/lists"}