Code Monkey home page Code Monkey logo

webdatacovid19's Introduction

WebDataCovid19

Web Data dashboard mit streamlit

Streamlit - eine Python Bibliothek zum Erstellen von Web-(Daten-) Apps.

Pandemie-Datenexploration

Mit den entsprechenden Daten und Techniken interaktiver Visualisierungen können wir in Python mit der Streamlit Bibliothek sehr schnell ein Daten-Dashboard erstellen. Folgendes wurde mit ein paar Codezeilen erstellt!

Laden des Dashboards

Das Laden des Dashboards ist sehr schnell und einfach. Wir installieren zunächst die Bibliothek auf typische Weise:

  • pip install streamlit

Erstellen dann ein Python-Skript: Streamlit als st importieren

  • st.title ('Hallo da')

und führen es dann über eine Befehlszeile aus:

  • streamlit run yourScriptsFileName.py

Dadurch wird die Adresse zurückgegeben, die wir in unserem Browser verwenden müssen, um die Webdaten-App anzuzeigen.

z. B.: http://192.168.0.22:8501

Einführung in die eingebauten Funktionen

Text anzeigen

Es gibt verschiedene Möglichkeiten, wie wir Text in der Web-App anzeigen können:

Dies ist ein Titel

Ein Header ..

Ein Subheader ..

.. oder ein Markdown.

   import streamlit as st
   st.title ('Dies ist ein Titel')
   st.header ('Ein Header ..')
   st.subheader ('Ein Subheader ..')
   st.markdown ('.. oder ein Markdown.')

Mehrfachauswahl

Wir können ganz einfach ein Dropdown-Mehrfachauswahl-Steuerelement einbauen.

   x = multiselect ('anzuzeigender Text', Liste der verfügbaren Optionen, Liste der Standardoptionen)
   # wobei x am Ende dann wieder eine Liste der gewählten Optionen ist

Auswahlfeld

Schieberegler

Grafiken

Interaktive Karte

Cache für schnellere Ergebnisse

A A A A A A A A A A A A A A A A A A A A

webdatacovid19's People

Contributors

manne05 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.