We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5549388 commit 07735dfCopy full SHA for 07735df
nipype/pipeline/plugins/ipythonx.py
@@ -5,11 +5,13 @@
5
6
import sys
7
8
-from IPython import __version__ as IPyversion
+IPython_not_loaded = False
9
try:
10
+ from IPython import __version__ as IPyversion
11
from IPython.kernel.contexts import ConnectionRefusedError
12
except:
- pass
13
+ IPython_not_loaded = True
14
+
15
16
from .base import (DistributedPluginBase, logger, report_crash)
17
@@ -18,6 +20,8 @@ class IPythonXPlugin(DistributedPluginBase):
18
20
"""
19
21
22
def __init__(self, plugin_args=None):
23
+ if IPython_not_loaded:
24
+ raise ImportError('IPython parallel could not be imported')
25
super(IPythonXPlugin, self).__init__(plugin_args=plugin_args)
26
self.ipyclient = None
27
self.taskclient = None
0 commit comments