MÓDULO 0 / PREPARACIÓN #305
Unanswered
CarlosPena97
asked this question in
Q&A
Replies: 2 comments
-
Ya pude, gracias. Estoy empezando. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Genial, lo solucionaste |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trato de crear el botón "Iniciar Launch" mediante el código que aparece en elmódulo:
import ipywidgets as widgets
ignition = widgets.ToggleButton(
value=False,
description='Iniciar Launch',
button_style='success',
tooltip='Engage your Launch',
icon='rocket'
)
output = widgets.Output()
display(ignition, output)
def on_value_change(change):
with output:
if change['new'] == True:
print("Nave Iniciada!")
else:
print("Nave Detenida")
ignition.observe(on_value_change, names='value')
Pero me marca el siguiente error:
Input In [5]
pip install ipywidgets
^
SyntaxError: invalid syntax
Beta Was this translation helpful? Give feedback.
All reactions