Giter VIP home page Giter VIP logo

demo-uber-nyc-pickups's Introduction


Streamlit logo

Welcome to Streamlit ๐Ÿ‘‹

A faster way to build and share data apps.

What is Streamlit?

Streamlit lets you transform Python scripts into interactive web apps in minutes, instead of weeks. Build dashboards, generate reports, or create chat apps. Once youโ€™ve created an app, you can use our Community Cloud platform to deploy, manage, and share your app.

Why choose Streamlit?

  • Simple and Pythonic: Write beautiful, easy-to-read code.
  • Fast, interactive prototyping: Let others interact with your data and provide feedback quickly.
  • Live editing: See your app update instantly as you edit your script.
  • Open-source and free: Join a vibrant community and contribute to Streamlit's future.

Installation

Open a terminal and run:

$ pip install streamlit
$ streamlit hello

If this opens our sweet Streamlit Hello app in your browser, you're all set! If not, head over to our docs for specific installs.

The app features a bunch of examples of what you can do with Streamlit. Jump to the quickstart section to understand how that all works.

Streamlit Hello

Quickstart

A little example

Create a new file streamlit_app.py with the following code:

import streamlit as st
x = st.slider("Select a value")
st.write(x, "squared is", x * x)

Now run it to open the app!

$ streamlit run streamlit_app.py

Little example

Give me more!

Streamlit comes in with a ton of additional powerful elements to spice up your data apps and delight your viewers. Some examples:

Input widgets Dataframes Charts Layout Multi-page apps Fun

Our vibrant creators community also extends Streamlit capabilities using ย ๐Ÿงฉ Streamlit Components.

Get inspired

There's so much you can build with Streamlit:

Check out our gallery! ๐ŸŽˆ

Community Cloud

Deploy, manage and share your apps for free using our Community Cloud! Sign-up here.

Resources

  • Explore our docs to learn how Streamlit works.
  • Ask questions and get help in our community forum.
  • Read our blog for tips from developers and creators.
  • Extend Streamlit's capabilities by installing or creating your own Streamlit Components.
  • Help others find and play with your app by using the Streamlit GitHub badge in your repository:
[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](URL_TO_YOUR_APP)

Streamlit App

License

Streamlit is completely free and open-source and licensed under the Apache 2.0 license.

demo-uber-nyc-pickups's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demo-uber-nyc-pickups's Issues

local demo fails on MacOS Python3.11 with CERTIFICATE_VERIFY_FAILED

For certain out-of-the-box Python installations on MacOS (tested with Python 3.11 on Ventura 13.4.1, and known for Python 3.6 on Sierra), a naive run of the demo streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/main/streamlit_app.py will fail, throwing URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed> from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py line 1391

This is not a problem with the demo per se, but will affect some first user experiences. It occurs because the root certificates shipped with Python are not up-to-date.

Local workaround: run

/Applications/Python\ 3.11/Install\ Certificates.command

Alternative 1: update the demo to ignore SLL failures (only recommended for local testing with known URLs):

ssl._create_default_https_context = ssl._create_unverified_context

Alternative 2: bundle PEM files with the demo and set env (safer, but requires maintenance):

export SSL_CERT_FILE "/some_bundled_path/cacert.pem"
export REQUESTS_CA_BUNDLE = "/some_bundled_path/cacert.pem"

Demo is broken

  • AttributeError: This app has encountered an error. The original error message is redacted to prevent data leaks.
    image

map not drawing

Hi,

I am not seeing the map being drawn.

I am running Ubuntu 18. I tried to run the demo on firefox as well as Chrome.

I've attached an image of what I see.

This is my environment:

packages in environment at /home/graham/anaconda3/envs/streamlit:

Name Version Build Channel

_libgcc_mutex 0.1 main
altair 4.1.0 pypi_0 pypi
argon2-cffi 20.1.0 pypi_0 pypi
astor 0.8.1 pypi_0 pypi
attrs 19.3.0 pypi_0 pypi
backcall 0.2.0 pypi_0 pypi
base58 2.0.1 pypi_0 pypi
blas 1.0 mkl
bleach 3.1.5 pypi_0 pypi
blinker 1.4 pypi_0 pypi
boto3 1.14.41 pypi_0 pypi
botocore 1.17.41 pypi_0 pypi
ca-certificates 2020.6.24 0
cachetools 4.1.1 pypi_0 pypi
certifi 2020.6.20 py38_0
cffi 1.14.1 pypi_0 pypi
chardet 3.0.4 pypi_0 pypi
click 7.1.2 pypi_0 pypi
decorator 4.4.2 pypi_0 pypi
defusedxml 0.6.0 pypi_0 pypi
docutils 0.15.2 pypi_0 pypi
entrypoints 0.3 pypi_0 pypi
enum-compat 0.0.3 pypi_0 pypi
idna 2.10 pypi_0 pypi
intel-openmp 2020.1 217
ipykernel 5.3.4 pypi_0 pypi
ipython 7.17.0 pypi_0 pypi
ipython-genutils 0.2.0 pypi_0 pypi
ipywidgets 7.5.1 pypi_0 pypi
jedi 0.17.2 pypi_0 pypi
jinja2 2.11.2 pypi_0 pypi
jmespath 0.10.0 pypi_0 pypi
jsonschema 3.2.0 pypi_0 pypi
jupyter-client 6.1.6 pypi_0 pypi
jupyter-core 4.6.3 pypi_0 pypi
ld_impl_linux-64 2.33.1 h53a641e_7
libedit 3.1.20191231 h14c3975_1
libffi 3.3 he6710b0_2
libgcc-ng 9.1.0 hdf63c60_0
libstdcxx-ng 9.1.0 hdf63c60_0
markupsafe 1.1.1 pypi_0 pypi
mistune 0.8.4 pypi_0 pypi
mkl 2020.1 217
mkl-service 2.3.0 py38he904b0f_0
mkl_fft 1.1.0 py38h23d657b_0
mkl_random 1.1.1 py38h0573a6f_0
nbconvert 5.6.1 pypi_0 pypi
nbformat 5.0.7 pypi_0 pypi
ncurses 6.2 he6710b0_1
notebook 6.1.3 pypi_0 pypi
numpy 1.19.1 py38hbc911f0_0
numpy-base 1.19.1 py38hfa32c7d_0
openssl 1.1.1g h7b6447c_0
packaging 20.4 pypi_0 pypi
pandas 1.1.0 py38he6710b0_0
pandocfilters 1.4.2 pypi_0 pypi
parso 0.7.1 pypi_0 pypi
pathtools 0.1.2 pypi_0 pypi
pexpect 4.8.0 pypi_0 pypi
pickleshare 0.7.5 pypi_0 pypi
pillow 7.2.0 pypi_0 pypi
pip 20.2.2 py38_0
prometheus-client 0.8.0 pypi_0 pypi
prompt-toolkit 3.0.6 pypi_0 pypi
protobuf 3.12.4 pypi_0 pypi
ptyprocess 0.6.0 pypi_0 pypi
pyarrow 1.0.0 pypi_0 pypi
pycparser 2.20 pypi_0 pypi
pydeck 0.4.1 pypi_0 pypi
pygments 2.6.1 pypi_0 pypi
pyparsing 2.4.7 pypi_0 pypi
pyrsistent 0.16.0 pypi_0 pypi
python 3.8.5 hcff3b4d_0
python-dateutil 2.8.1 py_0
pytz 2020.1 py_0
pyzmq 19.0.2 pypi_0 pypi
readline 8.0 h7b6447c_0
requests 2.24.0 pypi_0 pypi
s3transfer 0.3.3 pypi_0 pypi
send2trash 1.5.0 pypi_0 pypi
setuptools 49.2.1 py38_0
six 1.15.0 py_0
sqlite 3.32.3 h62c20be_0
streamlit 0.65.0 pypi_0 pypi
terminado 0.8.3 pypi_0 pypi
testpath 0.4.4 pypi_0 pypi
tk 8.6.10 hbc83047_0
toml 0.10.1 pypi_0 pypi
toolz 0.10.0 pypi_0 pypi
tornado 6.0.4 pypi_0 pypi
traitlets 4.3.3 pypi_0 pypi
tzlocal 2.1 pypi_0 pypi
urllib3 1.25.10 pypi_0 pypi
validators 0.17.1 pypi_0 pypi
watchdog 0.10.3 pypi_0 pypi
wcwidth 0.2.5 pypi_0 pypi
webencodings 0.5.1 pypi_0 pypi
wheel 0.34.2 py38_0
widgetsnbextension 3.5.1 pypi_0 pypi
xz 5.2.5 h7b6447c_0
zlib 1.2.11 h7b6447c_3

image

typo in readme

"Run this demo locally" section has a typo in file name. It ends with '.py.py'

Is this demo broken for the initial instructions?

  1. execute command from docs: https://github.com/streamlit/demo-uber-nyc-pickups#run-this-demo-locally
  2. I noticed an error saying the "uber...gz" file was not found
  3. notice the source assumes local path (colocated in repo): https://github.com/streamlit/demo-uber-nyc-pickups/blob/main/streamlit_app.py#L30
  4. notice "streamlit run" only works for self-contained remote scripts: https://github.com/streamlit/streamlit/blob/develop/lib/streamlit/web/cli.py#L169

Did i miss some instructions or misunderstand how something is expected to work?

Get information from the map

Hello, I was looking at your application and it is very interesting, I was wondering if there is a way to obtain results from the map, for example, obtain the height and coordinates of each hexagon and more values that are present in the dataset.
In other words, pass the pointer over a hexagonal bar and display these data.
Thanks.

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.