Permalink
Browse files

implement is_jupyter_notebook()

  • Loading branch information...
TaiSakuma committed Feb 10, 2019
1 parent d236892 commit 49976ea4a68d159752c4ca3b93901b32d8d940ef
Showing with 7 additions and 1 deletion.
  1. +7 −1 alphatwirl/parallel/build.py
@@ -100,7 +100,13 @@ def _build_parallel_multiprocessing(quiet, processes):

##__________________________________________________________________||
def is_jupyter_notebook():
return True
try:
from IPython import get_ipython
if 'IPKernelApp' in get_ipython().config:
return True
except:
pass
return False

##__________________________________________________________________||
@_deprecated(msg='use alphatwirl.parallel.build.build_parallel() instead.')

0 comments on commit 49976ea

Please sign in to comment.