Skip to content
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

Hanging on ipywidgets cell #755

Closed
rohanjha123 opened this issue Dec 26, 2023 · 4 comments
Closed

Hanging on ipywidgets cell #755

rohanjha123 opened this issue Dec 26, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@rohanjha123
Copy link

Describe the bug
Otter assign hangs whenever it hits a cell using an interactive widget from ipywidgets and the command doesn't finish executing.

To Reproduce
Create a Python notebook with some otter tests along with the following code and try otter assigning it:

# ASSIGNMENT CONFIG
name: test
requirements: ../../requirements.txt
overwrite_requirements: true
template_pdf: false
solutions_pdf: true
generate:
    seed: 42
    show_stdout: true
python_version: 3.11
def say_my_name(name):
    """
    Print the current widget value in short sentence
    """
    print(f'My name is {name}')
     
interact(say_my_name, name=["James", "Bond", "James Bond"]);

More detailed notebooks with this issue have also been sent to Chris Pyles privately for security reasons.

Expected behavior
I expect the notebook to otter assign perfectly.

Versions
Python 3.11.0, Otter 5.1.3, more info here

Additional context
This was an issue on the data100.datahub but not on Chris' local machine.

@rohanjha123 rohanjha123 added the bug Something isn't working label Dec 26, 2023
@chrispyles
Copy link
Member

@rohanjha123 I think this may be an underlying issue in nbconvert: jupyter/nbconvert#1921

@chrispyles
Copy link
Member

As a temporary patch until that bug gets fixed, you can downgrade to nbconvert==7.2.5 on the machine running otter assign.

@rohanjha123
Copy link
Author

Thanks Chris!

@chrispyles
Copy link
Member

Closing this as it seems to be an issue with nbconvert and not otter.

@chrispyles chrispyles closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants