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

Saturday, February 5, 2022

Sunday, September 26, 2021

Saturday, August 21, 2021

Saturday, August 14, 2021

Thursday, January 16, 2020

Saturday, October 26, 2019

The Python Arcade Library — Arcade 2.1.5 documentation

Finally I have found an Library for making games in Python. There is so much here. Take it out.



The Python Arcade Library — Arcade 2.1.5 documentation

Online VB Compiler - online editor

Here is a great Visual Basic editor online. You can test and run code here. The site also supports other languages!

Online VB Compiler - online editor: OnlineGDB is online IDE with VB compiler. Quick and easy way to run VB program online.

Cheat Sheets - Python Crash Course, 2nd Edition

Here is an awesome website where you can get summaries of information in Python.

Cheat Sheets - Python Crash Course, 2nd Edition

Running Python in the Browser – Python Tips

The following link summarizes opens for packaging python scripts in a way that you can run them in webpages instead of using JavaScript or something else.

Running Python in the Browser – Python Tips: Running Python in the web browser has been getting a lot of attention lately. Shaun Taylor-Morgan knows what he’s talking about here – he works for Anvil, a full-featured application pla…


You can also  run Python in the browser interactively:

pyfiddle - https://pyfiddle.io/
Python Fiddle.com - http://pythonfiddle.com/

These are great sites for learning Python and testing different ideas. Unfortunately, they do not make all of the possible libraries available but this is enough to get anyone started. If you want to use more, I'd recommend fully installing it.