Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Nov 28, 2023
1 parent d0f6532 commit df8729e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,6 @@ run_tutorials:
- espresso
- cuda
- numa
only:
- schedules

run_doxygen:
<<: *global_job_definition
Expand Down
6 changes: 2 additions & 4 deletions doc/tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,12 @@ function(NB_EXPORT)
endif()

add_custom_command(
OUTPUT ${HTML_FILE}
DEPENDS ${NB_FILE_RUN};${NB_EXPORT_ADD_SCRIPTS}
OUTPUT ${HTML_FILE} DEPENDS ${NB_FILE_RUN};${NB_EXPORT_ADD_SCRIPTS}
COMMAND ${IPYTHON_EXECUTABLE} nbconvert --to "html" --output ${HTML_FILE}
${NB_FILE_RUN})

add_custom_command(
OUTPUT ${PY_FILE}
DEPENDS ${NB_FILE}
OUTPUT ${PY_FILE} DEPENDS ${NB_FILE}
COMMAND ${IPYTHON_EXECUTABLE} nbconvert --to "python" --output ${PY_FILE}
${NB_FILE})

Expand Down
1 change: 0 additions & 1 deletion doc/tutorials/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import nbformat
import re
import os
import ast
import sys
import uuid
sys.path.append('@CMAKE_SOURCE_DIR@/testsuite/scripts')
Expand Down
4 changes: 3 additions & 1 deletion testsuite/scripts/tutorials/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ def test_cells_prepare_for_html(self):
self.assertEqual(cell['source'], 'Question 2')
cell = next(cells)
self.assertEqual(cell['cell_type'], 'code')
self.assertEqual(cell['source'], '2\nimport matplotlib.pyplot\nglobal_var = 20')
self.assertEqual(
cell['source'],
'2\nimport matplotlib.pyplot\nglobal_var = 20')
cell = next(cells)
self.assertEqual(cell['cell_type'], 'code')
self.assertEqual(cell['source'], '3')
Expand Down

0 comments on commit df8729e

Please sign in to comment.