Migration Guide
This guide helps you migrate between versions of Streamlit Lightweight Charts Pro.
v0.2.x → v0.3.0
Core Package Renamed
Version 0.3.0 renames the core dependency from lightweight-charts-core to lightweight-charts-pro.
Update Dependencies:
# pyproject.toml or requirements.txt
- lightweight-charts-core>=0.2.0
+ lightweight-charts-pro>=0.3.0
Update Imports:
# Python code
- from lightweight_charts_core import BaseChart
+ from lightweight_charts_pro import BaseChart
Lazy Loading Removed
The lazy loading feature was removed in v0.3.0 as it was not functional for Streamlit components.
Remove Lazy Loading Code:
- from streamlit_lightweight_charts_pro import (
- lazy_chart,
- LazyLoadingManager,
- )
+ from streamlit_lightweight_charts_pro import renderChart
- chart = lazy_chart(data, chunk_size=1000)
+ chart = renderChart(data)
Breaking Changes
Lazy loading functions removed:
lazy_chart(),LazyLoadingManager, etc.Package rename:
lightweight-charts-core→lightweight-charts-proConfiguration changes: Removed
lazyLoadingfrom chart configuration
No Action Required
All existing
renderChart()calls work unchangedChart styling and configuration remain the same
Type definitions are backward compatible (except lazy loading)
Future Versions
Future migration guides will be added here as new versions are released.
Best Practices
When upgrading:
Read the changelog: Check
CHANGELOG.mdfor all changesTest thoroughly: Run your test suite after upgrading
Update gradually: Test in development before production
Pin versions: Use exact versions in production dependencies
Getting Help
If you encounter migration issues:
Check the GitHub Issues
Review the API documentation
Open a new issue with reproduction steps