Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The new Form feature in Google Colaboratory

the new form feature

Can someone explain or give a notebook example how to use the new Form feature? It looks really exciting, but I cannot find any example or even an announcement anywhere.

like image 861
korakot Avatar asked Mar 08 '18 04:03

korakot


People also ask

What are forms in Google Colaboratory?

Colab provides a very useful utility called Forms that allows you to accept inputs from the user at runtime. Let us now move on to see how to add forms to your notebook.

What is better than Google Colab?

Kaggle. Kaggle is another Google product with similar functionalities to Colab. Like Colab, Kaggle provides free browser-based Jupyter Notebooks and GPUs. Kaggle also comes with many Python packages preinstalled, lowering the barrier to entry for some users.

What are the advanced features of Google Forms?

This is definitely relatively one of Google forms advanced features. In Google forms, with a multiple-choice question for instance, you can have respondents who choose answer A get diverted to one section and respondents who chose answer B get diverted to a different section. For example, lets say the question is “Are you happy with our service?”.

What is Colab forms in Jira?

Colab provides a very useful utility called Forms that allows you to accept inputs from the user at runtime. Let us now move on to see how to add forms to your notebook.

How do you get related answers in Google Forms?

After you type one answer, Forms will now propose related answers. For example, if a question requires the days of the week as answer options, Google Forms will autocomplete the remaining answers. Additionally, this feature is now available in 14 languages, including Spanish, French, Chinese, German and Arabic.

What is “tab completion” in Colab?

This is one of the best feature in the Colab called “ Tab Completion ”. Tab Completion is very useful especially when you are not sure about the methods of a function. It displays all the listed methods, and then you can choose the method that you need.


2 Answers

Now there is an official example here:

https://colab.research.google.com/notebooks/forms.ipynb

like image 59
korakot Avatar answered Sep 29 '22 14:09

korakot


Exciting feature indeed. It seems we can use checkboxes and date fields:

boolean_checkbox = True #@param {type:"boolean"}
date_input = '2018-03-22' #@param {type:"date"}

but I would really love to be able to construct dropdown lists using existing variables. Currently this seems limited:

dropdown = '1st option' #@param ["1st option", "2nd option", "3rd option"]

To be clear I'd love to be able to write

countries = df['country'][0] #@param df.country.unique()

Anyone?

like image 40
Sergio Lucero Avatar answered Sep 29 '22 14:09

Sergio Lucero