FindJupyter.cmake 588 B

1234567891011121314151617
  1. # - Find Jupyter instalation
  2. # This module tries to find the Jupyter installation on your system.
  3. FIND_PROGRAM(JUPYTER_EXECUTABLE NAMES jupyter)
  4. SET(JUPYTER_FOUND False)
  5. IF(NOT ${JUPYTER_EXECUTABLE} MATCHES "JUPYTER_EXECUTABLE-NOTFOUND")
  6. SET(JUPYTER_FOUND True)
  7. MESSAGE("-- Found Jupyter: " ${JUPYTER_EXECUTABLE})
  8. ENDIF()
  9. FIND_PROGRAM(NBCONVERT_EXECUTABLE NAMES jupyter-nbconvert)
  10. SET(NBCONVERT_FOUND False)
  11. IF(NOT ${NBCONVERT_EXECUTABLE} MATCHES "NBCONVERT_EXECUTABLE-NOTFOUND")
  12. SET(NBCONVERT_FOUND True)
  13. MESSAGE("-- Found nbconvert: " ${NBCONVERT_EXECUTABLE})
  14. ENDIF()