Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
fd0183a3
Commit
fd0183a3
authored
Jan 10, 2022
by
Stephan Rave
Browse files
[config] remove config check from parallel.ipython
parent
576b8538
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pymor/parallel/ipython.py
View file @
fd0183a3
...
...
@@ -2,23 +2,24 @@
# Copyright 2013-2021 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (https://opensource.org/licenses/BSD-2-Clause)
from
pymor.core.config
import
require_dependency
require_dependency
(
'IPYTHON'
)
from
itertools
import
chain
import
os
import
time
from
pymor.core.base
import
BasicObject
from
pymor.core.config
import
config
from
pymor.core
import
defaults
from
pymor.parallel.basic
import
WorkerPoolBase
from
pymor.tools.counter
import
Counter
if
config
.
HAVE_IPYTHON
:
try
:
from
ipyparallel
import
Client
,
TimeoutError
except
ImportError
:
from
IPython.parallel
import
Client
,
TimeoutError
try
:
from
ipyparallel
import
Client
,
TimeoutError
except
ImportError
:
from
IPython.parallel
import
Client
,
TimeoutError
class
new_ipcluster_pool
(
BasicObject
):
...
...
@@ -135,6 +136,7 @@ class IPythonPool(WorkerPoolBase):
kwargs
Keyword arguments used to instantiate the IPython cluster client.
"""
_updated_defaults
=
0
def
__init__
(
self
,
num_engines
=
None
,
**
kwargs
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment