findKernels :: IO [Kernelspec]
findKernels = do
  Kernelspecs kernelspecs <- findKernelsInternal
  mapM checkKernelspecFiles $ Map.elems kernelspecs

-- | Get all the installed kernelspecs using @jupyter kernelspec list --json@.
--
-- These kernelspecs must be passed through 'checkKernelspecFiles' before being returned to the
-- user.
findKernels :: IO [Kernelspec]
findKernels = do
  Kernelspecs kernelspecs <- findKernelsInternal
  mapM checkKernelspecFiles $ Map.elems kernelspecs

-- | Get all the installed kernelspecs using @jupyter kernelspec list --json@.
--
-- These kernelspecs must be passed through 'checkKernelspecFiles' before being returned to the
-- user.
findKernels = do
  Kernelspecs kernelspecs <- findKernelsInternal
  mapM checkKernelspecFiles $ Map.elems kernelspecs

-- | Get all the installed kernelspecs using @jupyter kernelspec list --json@.
--
-- These kernelspecs must be passed through 'checkKernelspecFiles' before being returned to the
-- user.