-
Notifications
You must be signed in to change notification settings - Fork 6
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
{% filter solution %}
for Jupyter notebooks
#13
Comments
Maybe it would be easier to hide cells based on cell metadata. Would that work for you as well? |
Yes, sure, whatever is easier to implement. I just don't know how does the machinery translating notebook to HTML works here. It would be nice if it would look the same as in MD/HTML and also with "uncover the solution" functionality. |
This is the way we render Notebooks: https://github.com/pyvec/naucse_render/blob/master/naucse_render/notebook.py |
I dive deeper a little bit and now I understand how I can adjust nbconvert templates. But what I don't know yet is how I can combine it all together. It seems that adding the right class to some div element is not enough because the solution filter is much more complicated. I can imagine that a simple modification of nbconvert template would add a Is there a simple way how to process a result of nbconvert |
There are three divs, see https://github.com/pyvec/naucse_render/blob/master/naucse_render/templates.py#L48 A quick temporary solution would be to avoid putting stuff in |
It'd be nice to have a possibility to hide solutions by
{% filter solution %}
also in Jupyter notebooks.The text was updated successfully, but these errors were encountered: