-
Notifications
You must be signed in to change notification settings - Fork 37
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
Tests fail if there's _ (underscore) defined in the notebook #82
Comments
So I have a fix for the type error occurring when reporting the value of However the root problem is that testbook is using the
However when you do an underscore assignment like
Generally I would avoid doing |
@sidujjain Thanks for reporting. Will look into this now. @MSeal thanks for the change, I'll see if I can add a fix to the same PR. |
Thanks for the quick response, @MSeal ! Using I wonder if there is a way to capture the output in a different way or to reset |
Yeah I know, though it's somewhat more of an ipython limitation: https://stackoverflow.com/questions/56734319/reset-underscore-variable-in-jupyter-notebook-powered-by-ipython-kernel. That link has some paths to fix the root issue. @rohitsanj we could see about forcing the result outcome each injection to see if we can auto-repair it? |
@sidujjain Please upgrade to testbook 0.2.6 and the issue should be fixed!
|
Thanks for the quick fix @rohitsanj ! Works like a charm! |
Is there a way to handle this?
Test:
Notebook:
Result:
The text was updated successfully, but these errors were encountered: