-
Notifications
You must be signed in to change notification settings - Fork 210
[MRG][FIX] Remove output box from print(__doc__) #529
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
Conversation
|
Thanks @lucyleeow |
|
Nice! |
| output = sg.execute_code_block( | ||
| compiler, code_block, example_globals, script_vars, gallery_conf | ||
| ) | ||
| assert output.isspace() == True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor comment: you don't need the == True here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I realised this later - but excused myself as 'making it easier to read'? (:/) Too late now I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed a commit directly in master so we can sleep better at night ;-).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
Good job @lucyleeow ! You're starting to own this project :). Next level: review PRs. You can for instance start with #523 |
|
:-o |
Closes #528
Prevents output box if
captured_std.isspace().Test to ensure
execute_code_blockdoes not generate a code block forprint(__doc__).(also tested locally on plot_kernal_pca.py and does not produce the output box)