Deploying graphs to a web page and Streamit development with Codespaces
I recently tried out GitHub Codespaces: it's an easy way to develop and deploy Streamit apps. Also, you don't need server-side code (like Streamlit) to deploy a chart to the web.
That’s London but that programmer is not me! Image created by me with AITubo
I was in London for a few days but only had an old, feeble, Windows tablet PC with me with no Python or IDE. But wanted to work on a small Streamlit app, so this was a great opportunity to try something that I’d been meaning to take a look at for a while — GitHub Codespaces. It turns out to be a great way of developing and deploying Streamlit apps.
Develop Streamlit Apps Online with Github Codespaces
(Medium - no paywall) Develop Streamlit apps online easily with Streamlit Community Cloud, Codespace and GitHub templates (use my template for free!).
But you don’t need to write any server-side code to deploy a Plotly or Altair graphic to a static web page.
How to Deploy Plotly or Altair Graphics to a Simple Static Web Page
(Medium - no paywall) Plotly and Altair have native methods to create basic web pages but with a little more effort, web templates get you a much better result.
I’ve just published this on Amazon.
eBook: Streamlit from Scratch
Streamlit is a framework for developing data science and visualisation applications. Streamlit from Scratch is a a book that will quickly get you up to speed developing those apps.
Streamlit is one of the most exciting things to have happened in the Python world. It is a framework for creating simple and elegant web applications in pure Python. Although it is aimed primarily at Data Scientists and Analysts, you can also use it as a general-purpose tool for creating web applications. No knowledge of HTML or JavaScript is needed. Streamlit from Scratch will take from building a simple we page through to creating fully functional interactive data dashboards. It covers:
Installing Python and Streamlit
Choosing and editor
Displaying text - including plain text as well as special formats such as Markdown and LaTeX
Using Media - Images, Video and Audio
Presenting Data
Tables and dataframes
Charts and Graphs
Charting libraries such as Plotly and Altair and others
Building a Data Dashboard with Streamlit's Layout and UI features
Designing the User interface with UI components such as sliders, select boxes, and radio buttons
Creating a layout with columns, tabs and a sidebar