Tuesday, July 19, 2022

Sharing Python Code and Displaying Results

I have come across a need to be able to share projects written in Python and display data in more interactive ways. I have done some research to try to see where I can start. An important need is to be able to consume, manipulate, and display GIS data as well as other things.

I did do a project that uses Python to run a web service, export the results in a pandas dataframe, manipulate the results, export them to a csv file, and the csv file feeds a PowerBI dashboard. The problem was that there was not an easy way to run python code from PowerBI. I know I could have used Jupyter Notebooks but we used PowerBI due to issues with deploying Notebooks.

Here are some examples of resources that are useful in using dashboards based on  Python. These kind of dashboards could be used as a GUI.

Streamlit vs Dash vs VoilĂ  vs Panel — Battle of The Python Dashboarding Giants - article does a great job of comparing and contrasting differences in frameworks for generating dashboards. I am going to focus on Panel, for multiple screens/pages, and on Streamlit because it seems the easiest way to go from Python code to dashboard.




pythonanywhere: a service that allows you run Python anywhere in a web browser and could be used for teaching python and sharing code



Build a Multi-Layer Map Using Streamlit


Tutorial for using GeoPandas



Demo in Jupyter Notebook Opening Shapefiles in GeoPandas

No comments: