Use the tdnb.remove() function created by tdnb.text(), tdnb.dropdown(), or tdnb.multi_select() to remove a widget from the existing Jupyter session.
Required Parameters
- name
- Specifies the name of the widget to be removed from the current Jupyter session.
Example
Create a text widget with name text_widget and dropdown widget with name dropdown_widget. Then remove text_widget from the current Jupyter session using tdnb.remove().
from teradatamlwidgets import tdnb
tdnb.text('text_widget', "Hello World!", 'Text Label'
tdnb.dropdown('dropdown_widget', 1, [10, 20, 30], 'dd_label'
tdnb.remove('text_widget')