You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a notebook showing AWS automation commands. I want to make sure that my AWS_ID (or any other secret info) doesn't leak into the output. For shell commands I can pipe everything through a sed command, for python commands I can't do anything similar. Could a feature be added that allows output from a cell to filtered and modified before being being displayed? I think this is an IPython feature because it seems close to cell magics, if it's a jupyter feature I'd be happy to file a bug there. I'm also happy to implement this feature if I'm given some direction on where it would fit in.
The text was updated successfully, but these errors were encountered:
Do you mean when running live, or are you running things in nbconvert.
I see why this would make sens.
I woudl have a look at IPython.core.displayhook in compute_format_data, you will likely be able to intercept a dictionary of mimetype/values and if you look at the plain/text key (and likely the html one for pandas) you should be able to do a search/replace.
If that's the right place it should be relatively easy to add a list callable/filter from the configuration.
I'm working on a notebook showing AWS automation commands. I want to make sure that my AWS_ID (or any other secret info) doesn't leak into the output. For shell commands I can pipe everything through a sed command, for python commands I can't do anything similar. Could a feature be added that allows output from a cell to filtered and modified before being being displayed? I think this is an IPython feature because it seems close to cell magics, if it's a jupyter feature I'd be happy to file a bug there. I'm also happy to implement this feature if I'm given some direction on where it would fit in.
The text was updated successfully, but these errors were encountered: