-
Notifications
You must be signed in to change notification settings - Fork 51
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
nbval and ipyparallel #119
Comments
I'm not so sure on the parallel stuff, but the marker comments for nbval can be anywhere in the cell. You can also use cell tags instead of comments: https://nbviewer.jupyter.org/github/computationalmodelling/nbval/blob/0.9.1/docs/source/index.ipynb#Using-tags-instead-of-comments |
thanks. I'll try this and will keep digging. Gimme another couple of days before closing the issue alright? Maybe I can report more |
I'm closing this for now. Thanks! |
Sorry, I feel like I have to reopen this issue because I don't really know how to fix it I keep seeing this kind of error from random cells:
Sometimes our CI is green, sometimes it's red due to one random cell failing as per above When does nbval exactly check the output of a cell? is it possible that nbval performs the output check when one process has returned, while the others have not yet? or something along these lines ? I'm really at a loss. At this point, any sort of information would be greatly appreciated. |
nbval checks the output when the cell has finished running. This usually means that the I can't see any obvious reason why that cell would behave randomly. But I'm not super familiar with ipyparallel. |
I'm still investigating the issue. After forking ipyparallel and nbval, I found out that the (randomly) failing cell is getting an unexpected message of type These are the messages received on iopub while processing the failing cell ; the third one is the "unexpected" one. I have no idea why sometimes this bug appears and sometimes not. I should add that it seems that always the same cells cause the failure (in common they have that some custom Also, I can't reproduce this on my local machine (which makes debugging horribly painful); this only appears on our CI system (azure pipelines). I don't know if there's a timing issue somehow EDIT: I wonder whether this might be relevant... |
That issue does look potentially relevant. "got unknown result" is a message from ipyparallel when it gets a reply to a message ID which is not in https://github.com/ipython/ipyparallel/blob/6.2.4/ipyparallel/client/client.py#L766 |
yes I saw that. Just can't figure out why it sometimes appears, and sometimes not |
Hi, I wonder whether it's possible to use nbval for a jupyter notebook that exploits ipyparallel in combination with MPI (mpi4py).
This is the notebook I'm talking about. It's nothing special -- you can stop reading at cell 2
#NBVAL_IGNORE_OUTPUT
in combination with ipyparallel's magic%%px
? both are supposed to appear at the very top of a cellThanks!
The text was updated successfully, but these errors were encountered: