Questions on widgets to take array as input

Hello Guys,

I am new to Streamlit and and I wanted to take elements from an array as an input in Streamlit- the array length is defined by the user. So my questions are:

  1. Is there a widget in Streamlit which can take mulitiple elements as input under the same header?

  2. Can there be a numeric input widget with optional input? If user doesn’t give a input, it should be able to neglect it. In this way, I can have variable length of array and user can keep rest of the places blank.

Attached is an example I wish to recreate.

1 Like