Skip to content

Instantly share code, notes, and snippets.

@NehaAkashDeo
Created July 30, 2020 07:14
Show Gist options
  • Select an option

  • Save NehaAkashDeo/9c8820ecf27d3cd2b37ab49a9acf2c96 to your computer and use it in GitHub Desktop.

Select an option

Save NehaAkashDeo/9c8820ecf27d3cd2b37ab49a9acf2c96 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"from ipywidgets import widgets "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"outputText=widgets.Label()\n",
"outputText"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"inputText=widgets.Text()\n",
"\n",
"def makeUpper_case(sender):\n",
" outputText.value=inputText.value.upper()\n",
" \n",
"inputText.on_submit(makeUpper_case)\n",
"inputText"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment