-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onClick handler doesn't seem to be working #102
Comments
much simple example that doesn't work:
Shouldn't the |
@yaananth Calling We can make your example work by adding: import sys
from vdom import button
sys.stdout = open('/dev/stdout', 'w')
def handle_click(event):
print(event)
el = button('click me', onClick=handle_click)
display(el)
print(el.to_dict())
print(hash(handle_click)) That will route the stdout to the terminal (Jupyter server output) so you will see the following when you click the button:
|
@gnestor
did nothing. I also took that example and did this:
As you can see, still did nothing. I am using nteract (0.14.5) desktop on windows. P.S: also tried on azure notebooks beta, which uses nteract, should be linux hosting, didn't work |
Event handling support is currently only available in JupyterLab. I've been meaning to add it to nteract but I haven't had the time to do it. I'm happy to mentor anyone who would like to add it to nteract 👍 |
I tried
Clicking on button does nothing, I would expect it to print
click
I have these:
vdom (0.6)
ipython (7.8.0)
What did I miss here?
The text was updated successfully, but these errors were encountered: