Solution for 'intentional' errors #85
Comments
@mmcky thinking about this, I think we need both a |
@natashawatkins thinking this through over the past through days. Current
The negative of this approach is that Future
class MyExecutePreprocessor(nbconvert.preprocessors.ExecutePreprocessor):
def preprocess_cell(self, cell, resources, cell_index):
"""
Executes a single code cell. See base.py for details.
To execute all cells see :meth:`preprocess`.
Checks cell.metadata for 'execute' key. If set, and maps to False,
the cell is not executed.
"""
if not cell.metadata.get('execute', True):
# Don't execute this cell in output
return cell, resources
return super().preprocess_cell(cell, resources, cell_index)
Also if there are blocks that are not the same as the |
This PR QuantEcon/sphinxcontrib-jupyter#129 implements the SHORT TERM solution for this issue. The Makefile for ``quantecon.build.lectures` has also been updated. |
So at the moment we won't be displaying errors? Does that mean that we need to manually put them in? |
@natashawatkins not sure what you mean here. The japing fix allows for those |
I'm confused - there are two separate cases:
|
Ah so there are really 3 cases. I was working to:
This
but there is a third case such as your |
So what should we do in the first case? Will jupinx insert the error output and not count the error towards the testing stats? And not that I can think of. |
OK lets do the following convention for now:
@natashawatkins would you mind adding PR's for the new convention and I will work on |
|
Is @fkazemian available to work on this maybe? I can check the PRs |
Hi @natashawatkins I will do it |
Hi @mmcky
but it's not working, Do I use a right tag? @fkazemian that example above is not a purposeful error. That is an error because the file us_cities.txt cannot be found (Issue: #91). Please take your time on this. In the vast majority of cases it will replace |
for |
@fkazemian could you also do this issue in separate PRs for each lecture? thanks |
hi @fkazemian if you are not using |
Hi @mmcky Actually I'm using 'quanecon.build.lectures' and I used git pull origin master |
@fkazemian could you please include these comments in separate PRs because it's a bit hard to follow the above comment. Thanks |
sure |
stationary_densities
|
sci_libs
|
numba
|
jv
|
Hi @natashawatkins , would you please review these PRs and comments? I leave something unchanged which I explained them in comments here(If there were no PR for them) and I also explain my changes as well. |
@fkazemian I think you've misunderstood the tags - you want to use |
@fkazemian could you also please remove all the tags you've added to |
@fkazemian could you liaise with @natashawatkins to update your PR's re: this issue. Careful attention to detail is required on this one to figure out the 3 different states for each case. |
this is the last remaining |
Hi @natashawatkins @mmcky sure |
Closing this. Any unaddressed bugs will come up in the next comparison review. |
We need a way to label cells that produce errors, without having the errors count towards coverage (https://lectures.quantecon.org/status.html). Possible we could introduce a
skip-test
label.The text was updated successfully, but these errors were encountered: