question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@interact missing argument labels in JupyterLab

See original GitHub issue

The sliders below should be labeled with x and y, the argument names.

from ipywidgets import interact, Output, HBox
left = Output()
right = Output()

with left:
    @interact(x=(0,10))
    def f(x):
        @interact(y=(0,x))
        def g(y):
            with right:
                print('Product',x*y)

print("Product calculator")                
HBox([left, right])

Edit: This only seems to be a problem in JupyterLab, not the notebook

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jasongroutcommented, Nov 12, 2016

Fixed in #889.

0reactions
jasongroutcommented, Nov 11, 2016

It appears that widgets inside a jupyterlab Output widget do not trigger the onAttached method, so the displayed promise never gets resolved. Here’s a simpler example that doesn’t work:

from IPython.display import display
from ipywidgets import Output, IntSlider
out = Output()

with out:
    display(IntSlider(description="hi"))
display(out)
Read more comments on GitHub >

github_iconTop Results From Across the Web

"Missing argument labels 'arg1:arg2:' in call" [duplicate]
When you have an error with argument labels, make sure to check that when you call the function, you are including them. Good...
Read more >
Quickly label data in Jupyter Lab | by Dennis Bakhuis
It was plain simple: in Jupyter you feed a list of text and a list of labels to a function and a widget...
Read more >
Common Extension Points - JupyterLab Documentation
@jupyterlab/application:IConnectionLost : A service for invoking the dialog shown when JupyterLab has lost its connection to the server.
Read more >
Missing argument label 'where' in call - Apple Developer
Missing argument label 'where:' in call. if I add that label, I get a completely new set of error as the new method...
Read more >
Jupyter Documentation - Read the Docs
arguments must be changed by modifying the kernelspec. ... JupyterLab is a flexible, extensible interface for interactive computing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found