import panel as pn pn.extension() autocomplete = pn.widgets.AutocompleteInput( name='Autocomplete Input', options=['Biology', 'Chemistry', 'Physics'], placeholder='Write something here') autocomplete autocomplete.value not_restricted = autocomplete.clone(value='Mathematics', restrict=False) not_restricted not_restricted.value pn.Row(autocomplete.controls(jslink=True), autocomplete)