|
26 | 26 | _asyncio_runner = None |
27 | 27 |
|
28 | 28 | try: |
29 | | - from IPython.core.completer import rectify_completions as _rectify_completions, provisionalcompleter as _provisionalcompleter |
| 29 | + from IPython.core.completer import ( |
| 30 | + rectify_completions as _rectify_completions, |
| 31 | + provisionalcompleter as _provisionalcompleter, |
| 32 | + ) |
30 | 33 | _use_experimental_60_completion = True |
31 | 34 | except ImportError: |
32 | 35 | _use_experimental_60_completion = False |
@@ -195,9 +198,12 @@ def finish_metadata(self, parent, metadata, reply_content): |
195 | 198 | """ |
196 | 199 | # FIXME: remove deprecated ipyparallel-specific code |
197 | 200 | # This is required by ipyparallel < 5.0 |
198 | | - metadata['status'] = reply_content['status'] |
199 | | - if reply_content['status'] == 'error' and reply_content['ename'] == 'UnmetDependency': |
200 | | - metadata['dependencies_met'] = False |
| 201 | + metadata["status"] = reply_content["status"] |
| 202 | + if ( |
| 203 | + reply_content["status"] == "error" |
| 204 | + and reply_content["ename"] == "UnmetDependency" |
| 205 | + ): |
| 206 | + metadata["dependencies_met"] = False |
201 | 207 |
|
202 | 208 | return metadata |
203 | 209 |
|
@@ -309,7 +315,11 @@ async def run_cell(*args, **kwargs): |
309 | 315 | _asyncio_runner |
310 | 316 | and shell.loop_runner is _asyncio_runner |
311 | 317 | and asyncio.get_event_loop().is_running() |
312 | | - and should_run_async(code, transformed_cell=transformed_cell, preprocessing_exc_tuple=preprocessing_exc_tuple) |
| 318 | + and should_run_async( |
| 319 | + code, |
| 320 | + transformed_cell=transformed_cell, |
| 321 | + preprocessing_exc_tuple=preprocessing_exc_tuple, |
| 322 | + ) |
313 | 323 | ): |
314 | 324 | coro = run_cell( |
315 | 325 | code, |
|
0 commit comments