ipykernel-helper 0.0.45__tar.gz → 0.0.46__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ipykernel-helper
3
- Version: 0.0.45
3
+ Version: 0.0.46
4
4
  Summary: Helpers for ipykernel and friends
5
5
  Author-email: Jeremy Howard <info@fast.ai>
6
6
  License: Apache-2.0
@@ -0,0 +1,2 @@
1
+ __version__ = "0.0.46"
2
+ from .core import *
@@ -391,7 +391,7 @@ def structured_traceback(self:SyntaxTB, etype, evalue, etb, tb_offset=None, cont
391
391
  def _getfile(obj): return str(inspect._orig_getfile(obj))
392
392
 
393
393
  # %% ../nbs/00_core.ipynb #ff4984b9
394
- @patch()
394
+ @patch
395
395
  async def run_cell_magic(self:InteractiveShell, magic_name, line, cell):
396
396
  result = self._orig_run_cell_magic(magic_name, line, cell)
397
397
  if inspect.iscoroutine(result): result = await result
@@ -399,7 +399,7 @@ async def run_cell_magic(self:InteractiveShell, magic_name, line, cell):
399
399
  return result
400
400
 
401
401
  def _await_cell_magic(lines):
402
- if lines and 'get_ipython().run_cell_magic(' in lines[0] and 'await ' not in lines[0]: lines = ['await ' + lines[0]] + lines[1:]
402
+ if lines and lines[0].lstrip().startswith('get_ipython().run_cell_magic('): lines[0] = f'await {lines[0]}'
403
403
  return lines
404
404
 
405
405
  def load_ipython_extension(ip):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ipykernel-helper
3
- Version: 0.0.45
3
+ Version: 0.0.46
4
4
  Summary: Helpers for ipykernel and friends
5
5
  Author-email: Jeremy Howard <info@fast.ai>
6
6
  License: Apache-2.0
@@ -1,2 +0,0 @@
1
- __version__ = "0.0.45"
2
- from .core import *