Input Widgets

read

This get a line of text from the user

Examples

What is your name?

read_number

This get a number from the user

Examples

How old are you?

read_textarea

This get a line of text from the user

Examples

What kind of things are you building with Abstra Cloud?

read_email

This get an email from user's input

Examples

What is your email?

read_phone

This get an phone number from user's input

Examples

What is your phone number?

read_date

This gets a date from the user and returns a datetime.date object

Examples

When were you born?

read_file

This adds a button that allows the user to upload a file

Examples

Upload your .xlsx file

read_image

This adds a button that allows the user to upload a image file

Examples

Upload your .png image

read_video

This adds a button that allows the user to upload a video file

Examples

Upload your video

read_multiple_choice

This displays a list of options to the user

Examples

Which programming language do you prefer?
Python
JavaScript

read_cards

Displays a list of cards and gets user selection

Examples

Choose your character

Charmander

Fire

Bulbasaur

Grass

Squirtle

Water

read_dropdown

This displays a dropdown of options to the user

Examples

Choose a color

read_tag

This displays a tag input to the user

Examples

Type and press enter to add a tag

read_list

This displays a list input to the user

Examples

Name
Email

read_pandas_row_selection

Display a pandas table and allow users to select rows

Examples

read_password

This gets a password from user's input

Examples

Insert your password below

read_time

This displays a dropdown of time options to the user

Examples

Select a time below

read_code

Reads code snippet from user

Examples

Show me the code!

read_nps

Reads NPS from user

Examples

How likely are you to recommend Abstra Cloud?
No way!
Hell yeah!

Output Widgets

display

Display text on the screen

Examples

Hello world!

display_image

Display an image on the screen

Examples

Meooow
Meooow

display_file

A button that downloads a file sent from your python script

Examples

display_pandas

Display a pandas table

Examples

display_plotly

Display a plotly chart

Examples

display_html

HTML string that can be used to display complex informations such as tables, charts and more

Examples

display_iframe

This displays an iframe to the user

Examples

display_markdown

This displays a formatted text to the user

Examples