ipykernel-helper 0.0.41__tar.gz → 0.0.43__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.
- {ipykernel_helper-0.0.41/ipykernel_helper.egg-info → ipykernel_helper-0.0.43}/PKG-INFO +1 -1
- ipykernel_helper-0.0.43/ipykernel_helper/__init__.py +2 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/ipykernel_helper/_modidx.py +2 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/ipykernel_helper/core.py +11 -3
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43/ipykernel_helper.egg-info}/PKG-INFO +1 -1
- ipykernel_helper-0.0.41/ipykernel_helper/__init__.py +0 -2
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/LICENSE +0 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/MANIFEST.in +0 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/README.md +0 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/ipykernel_helper.egg-info/SOURCES.txt +0 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/ipykernel_helper.egg-info/dependency_links.txt +0 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/ipykernel_helper.egg-info/entry_points.txt +0 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/ipykernel_helper.egg-info/requires.txt +0 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/ipykernel_helper.egg-info/top_level.txt +0 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/pyproject.toml +0 -0
- {ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/setup.cfg +0 -0
|
@@ -35,6 +35,8 @@ d = { 'settings': { 'branch': 'main',
|
|
|
35
35
|
'ipykernel_helper/core.py'),
|
|
36
36
|
'ipykernel_helper.core.SyntaxTB.structured_traceback': ( 'core.html#syntaxtb.structured_traceback',
|
|
37
37
|
'ipykernel_helper/core.py'),
|
|
38
|
+
'ipykernel_helper.core.ZMQShellDisplayHook.finish_displayhook': ( 'core.html#zmqshelldisplayhook.finish_displayhook',
|
|
39
|
+
'ipykernel_helper/core.py'),
|
|
38
40
|
'ipykernel_helper.core._absolutify_imgs': ('core.html#_absolutify_imgs', 'ipykernel_helper/core.py'),
|
|
39
41
|
'ipykernel_helper.core._aify_imgs': ('core.html#_aify_imgs', 'ipykernel_helper/core.py'),
|
|
40
42
|
'ipykernel_helper.core._await_cell_magic': ( 'core.html#_await_cell_magic',
|
|
@@ -35,6 +35,8 @@ from jedi import Interpreter, Script as jscript
|
|
|
35
35
|
from IPython.core.display import DisplayObject
|
|
36
36
|
from IPython.display import display,Markdown,HTML
|
|
37
37
|
from IPython.core.oinspect import Inspector
|
|
38
|
+
from IPython.core.displayhook import DisplayHook
|
|
39
|
+
from ipykernel.displayhook import ZMQShellDisplayHook
|
|
38
40
|
|
|
39
41
|
# %% ../nbs/00_core.ipynb #06cb0934
|
|
40
42
|
warnings.filterwarnings('ignore', category=ProvisionalCompleterWarning)
|
|
@@ -89,11 +91,10 @@ def ranked_complete(self:InteractiveShell, code, line_no=None, col_no=None):
|
|
|
89
91
|
else: offset = len(code)
|
|
90
92
|
cs = self.Completer.completions(code, offset)
|
|
91
93
|
def _c(a):
|
|
92
|
-
res = dict2obj(
|
|
93
|
-
res['mod']= getattr(ns.get(a.text, None), '__module__', None)
|
|
94
|
+
res = dict2obj(text=a.text, type=str(a.type or ''), signature=str(getattr(a, 'signature', '') or ''), start=a.start, end=a.end)
|
|
95
|
+
res['mod'] = getattr(ns.get(a.text, None), '__module__', None)
|
|
94
96
|
res['rank'] = _rank(res, s=code)
|
|
95
97
|
return res
|
|
96
|
-
# Remove dunder vars, unless the user seems to be looking for them explicitly
|
|
97
98
|
return [_c(c) for c in cs if not c.text.startswith('__') or '__' in code]
|
|
98
99
|
|
|
99
100
|
# %% ../nbs/00_core.ipynb #192310a4
|
|
@@ -344,6 +345,13 @@ def __repr__(self:DisplayObject):
|
|
|
344
345
|
if not isinstance(s, str): s = truncstr(str(s), 30)
|
|
345
346
|
return f"{type(self).__name__}({s})"
|
|
346
347
|
|
|
348
|
+
# %% ../nbs/00_core.ipynb #e8c1388b
|
|
349
|
+
@patch
|
|
350
|
+
def finish_displayhook(self:ZMQShellDisplayHook):
|
|
351
|
+
obj = self.shell.user_ns.get('_')
|
|
352
|
+
if obj is not None: self.msg['content']['metadata']['__type'] = type(obj).__qualname__
|
|
353
|
+
self._orig_finish_displayhook()
|
|
354
|
+
|
|
347
355
|
# %% ../nbs/00_core.ipynb #cf893c28
|
|
348
356
|
@patch
|
|
349
357
|
def _get_info(self:Inspector, obj, oname='', formatter=None, info=None, detail_level=0, omit_sections=()):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/ipykernel_helper.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{ipykernel_helper-0.0.41 → ipykernel_helper-0.0.43}/ipykernel_helper.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|