Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
95d78c6
Migrate to Vite
sfc-gh-bnisco Jun 26, 2025
4b17060
Get tests working again, making progress on v2-ification
sfc-gh-bnisco Jun 27, 2025
51e78ac
Migrate all the assets to be loaded via Vite
sfc-gh-bnisco Jun 27, 2025
f37d1a5
Multiple instances working
sfc-gh-bnisco Jun 27, 2025
f9c1681
Some multiple bokeh chart fixes
sfc-gh-bnisco Jun 27, 2025
c844de5
Fix an issue where we were re-registering incorrectly
sfc-gh-bnisco Jun 27, 2025
74e9fe4
Fix up declaration
sfc-gh-bnisco Jun 27, 2025
a3516b0
Some cleanup
sfc-gh-bnisco Jun 27, 2025
0c8b942
Clean up key handling logic
sfc-gh-bnisco Jun 27, 2025
7245e45
Cleanup
sfc-gh-bnisco Jun 27, 2025
94728fb
Support themes
sfc-gh-bnisco Jun 30, 2025
991fa35
Test fixes, prod fixes, development README
sfc-gh-bnisco Jul 2, 2025
8befc67
Better vite building for frontend
sfc-gh-bnisco Jul 2, 2025
3f74f06
Update NOTICES
sfc-gh-bnisco Jul 2, 2025
f661356
Add a TODO
sfc-gh-bnisco Jul 2, 2025
edf705e
Cleanup
sfc-gh-bnisco Jul 2, 2025
e402786
Init fixes
sfc-gh-bnisco Jul 18, 2025
c686891
setup -> pyproject
sfc-gh-bnisco Jul 22, 2025
c6f4ebf
Manifest-driven fixes
sfc-gh-bnisco Jul 22, 2025
82b7c00
Use a glob in the manifest
sfc-gh-bnisco Jul 22, 2025
a420c08
Update types
sfc-gh-bnisco Jul 24, 2025
b19a50d
Prevent state leakage
sfc-gh-bnisco Jul 25, 2025
9ccb735
Utilize @streamlit/component-v2-lib types instead
sfc-gh-bnisco Jul 28, 2025
9ffd303
Simplify the init
sfc-gh-bnisco Jul 29, 2025
444631b
Fix up pyproject
sfc-gh-bnisco Jul 30, 2025
46ce5a5
Update NOTICES
sfc-gh-bnisco Jul 30, 2025
21f45ba
Update scripts since we moved away from setup.py
sfc-gh-bnisco Jul 30, 2025
4f044b3
Fixes for asset loading
sfc-gh-bnisco Aug 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Playwright E2E Tests
on:
push:
branches:
- "main"
- 'main'
pull_request:
types: [opened, synchronize, reopened]
# Allows workflow to be called from other workflows
Expand Down Expand Up @@ -32,12 +32,12 @@ jobs:
with:
ref: ${{ inputs.ref }}
persist-credentials: false
submodules: "recursive"
submodules: 'recursive'
fetch-depth: 2
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: '3.12'
- name: Enable and Prepare Latest Yarn
run: |
corepack enable
Expand All @@ -46,9 +46,9 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
cache-dependency-path: "**/yarn.lock"
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: Make frontend
run: |
cd streamlit_bokeh/frontend
Expand All @@ -68,7 +68,7 @@ jobs:
run: |
md5sum $(which python) > $GITHUB_WORKSPACE/python_cache_key.md5
md5sum e2e_playwright/test-requirements.txt >> $GITHUB_WORKSPACE/python_cache_key.md5
md5sum setup.py >> $GITHUB_WORKSPACE/python_cache_key.md5
md5sum pyproject.toml >> $GITHUB_WORKSPACE/python_cache_key.md5
date +%F >> $GITHUB_WORKSPACE/python_cache_key.md5
shell: bash
- name: Restore virtualenv from cache
Expand All @@ -81,8 +81,8 @@ jobs:
run: |
python -m venv venv
source venv/bin/activate
pip install setuptools
python setup.py sdist bdist_wheel
pip install build
python -m build
- name: Install Python test dependencies
run: |
source venv/bin/activate
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build, Test, and Release on merged release branch"
name: 'Build, Test, and Release on merged release branch'

on:
pull_request:
Expand Down Expand Up @@ -65,13 +65,13 @@ jobs:
# Save the access token to the local git config, so
# later git commands can work.
persist-credentials: true
submodules: "recursive"
submodules: 'recursive'
fetch-depth: 2

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: '3.12'

- name: Enable and Prepare Yarn
run: |
Expand All @@ -82,9 +82,9 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
cache-dependency-path: "**/yarn.lock"
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Make frontend
run: |
Expand All @@ -96,7 +96,7 @@ jobs:
run: |
md5sum $(which python) > $GITHUB_WORKSPACE/python_cache_key.md5
md5sum e2e_playwright/test-requirements.txt >> $GITHUB_WORKSPACE/python_cache_key.md5
md5sum setup.py >> $GITHUB_WORKSPACE/python_cache_key.md5
md5sum pyproject.toml >> $GITHUB_WORKSPACE/python_cache_key.md5
date +%F >> $GITHUB_WORKSPACE/python_cache_key.md5
shell: bash

Expand All @@ -111,8 +111,8 @@ jobs:
run: |
python -m venv venv
source venv/bin/activate
pip install setuptools
python setup.py sdist bdist_wheel
pip install build
python -m build

- name: Store Package
uses: actions/upload-artifact@v4
Expand Down
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ repos:
files: \.(s?css|jsx?|tsx?)$
args:
- --comment-style
- "/**| *| */"
- '/**| *| */'
- --license-filepath
- scripts/license-template.txt
- --fuzzy-match-generates-todo
exclude: |
(?x)
^streamlit_bokeh/frontend/public/bokeh/
^streamlit_bokeh/frontend/src/assets/bokeh/
|^streamlit_bokeh/frontend/.yarn/
- id: insert-license
name: Add license for all Python files
files: \.py$|\.pyi$
args:
- --comment-style
- "|#|"
- '|#|'
- --license-filepath
- scripts/license-template.txt
- --fuzzy-match-generates-todo
Expand All @@ -74,7 +74,7 @@ repos:
files: \.html$
args:
- --comment-style
- "<!--||-->"
- '<!--||-->'
- --license-filepath
- scripts/license-template.txt
- --fuzzy-match-generates-todo
Expand All @@ -84,11 +84,11 @@ repos:
- id: trailing-whitespace
exclude: |
(?x)
^streamlit_bokeh/frontend/public/bokeh
|^streamlit_bokeh/frontend/public/fonts
^streamlit_bokeh/frontend/src/assets/bokeh
|^streamlit_bokeh/frontend/src/assets/fonts
|^NOTICES$
- id: check-added-large-files
args: ["--maxkb=1024"]
args: ['--maxkb=1024']
exclude: |
(?x)
|^NOTICES$
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
recursive-include streamlit_bokeh/frontend/build *
recursive-include streamlit_bokeh/frontend/build *
include pyproject.toml
Loading
Loading