Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sphinxcontrib/jupyter/writers/translate_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ def visit_image(self, node):
### preventing image from the index file at the moment
if self.in_book_index:
return
### Skip solutions if we say to
if "solution" in node.attributes['classes'] and self.jupyter_drop_solutions:
return
uri = node.attributes["uri"]
self.images.append(uri) #TODO: list of image files
if self.jupyter_download_nb_image_urlpath:
Expand Down
3 changes: 3 additions & 0 deletions tests/base/solutions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ when :math:`x \in [0,1]`
ax.fill(x, y, zorder=10)
ax.grid(True, zorder=5)
plt.show()

.. image:: _static/hood.jpg
:class: solution