使用streamlit构建快速美观的应用程序

Every data tells a story. It’s easier to understand them through visual representations rather than looking at thousands of records.Data Scientists often leverage graphs such as bar charts, line plots, area curves, etc to communicate this story to their stakeholders.Python and R have been preferred language of choice when working with data. There are multiple libraries such as Matplotlib, Seaborn, pyVis, etc through which one creates visualizations inside the Jupyter Notebooks or stand-alone apps using Bokeh, Flask, for example.

每个数据都讲述一个故事。 通过可视化表示比查看成千上万条记录更容易理解数据科学家经常利用条形图,折线图,面积曲线等图形将其故事传达给利益相关者,Python和R是首选语言处理数据时。 有多个库,例如Matplotlib,Seaborn,pyVis等,通过这些库,可以在Jupyter Notebook或使用Bokeh,Flask的独立应用程序内部创建可视化效果。

In this article, I will try to introduce you to Streamlit and get familiar with it. At the end of this article, you will be able to create an interactive app based on your data. Let’s take a publicly available data set from Kaggle. In the end, we will be able to create an app like this.

在本文中,我将尝试向您介绍Streamlit并熟悉它。 在本文的结尾,您将能够基于您的数据创建一个交互式应用程序。 让我们从Kaggle获取公开可用的数据集。 最后,我们将能够创建一个这样的应用程序。

Image for post
Demo App (Gif by Author)
演示应用程序(作者提供的Gif)

The above gif is actually a screen record of the demo app. Streamlit provides you with an easy option to record your app with audio, in case you need for a demo. This is very helpful if you plan to showcase it to an audience.

上面的gif实际上是演示应用程序的屏幕记录。 Streamlit为您提供了一个简单的选项,可以在需要演示的情况下用音频录制应用程序。 如果您打算向观众展示它,这将非常有帮助。

Image for post
(Image by Author)
(图片由作者提供)

设置Streamlit (Setting up Streamlit)

Before we start with building apps, lets set up streamlit. I am working on a Ubuntu machine. Commands would be mostly the same for all OS.

在开始构建

  • 1
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值