Embed Stlite frame into Sphinx documentation.
This is Sphinx extension to provide directive to render Streamlit application on document using Stlite.
When you use this, your document will display interactive contents.
This is example to display table from pandas DataFrame.
.. stlite::
import streamlit as st
import pandas as pd
df = pd.DataFrame({
'first column': [1, 2, 3, 4],
'second column': [10, 20, 30, 40]
})
st.write(df)If you want to know how does it display, go to demo page of document.
You can also set external python file.
.. stlite:: example.py- Install from PyPI (e.g.
pip install atsphinx-stlite) - Add
atsphinx.stlitetoextensionsinconf.pyof your document. - Write contents refer to documents.
- Build your document using HTML-based builders (e.g.
make html) - Show it!
Do you have a feedback to this?
When you want to contribute to this project, please follow the atsphinx's common contributing guide.
This project is licensed under the Apache License 2.0. See it.