ipykernel-helper 0.0.45__tar.gz → 0.0.47__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.45/ipykernel_helper.egg-info → ipykernel_helper-0.0.47}/PKG-INFO +2 -2
- ipykernel_helper-0.0.47/ipykernel_helper/__init__.py +2 -0
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/ipykernel_helper/_modidx.py +1 -0
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/ipykernel_helper/core.py +9 -4
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47/ipykernel_helper.egg-info}/PKG-INFO +2 -2
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/ipykernel_helper.egg-info/requires.txt +1 -1
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/pyproject.toml +3 -3
- ipykernel_helper-0.0.45/ipykernel_helper/__init__.py +0 -2
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/LICENSE +0 -0
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/MANIFEST.in +0 -0
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/README.md +0 -0
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/ipykernel_helper.egg-info/SOURCES.txt +0 -0
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/ipykernel_helper.egg-info/dependency_links.txt +0 -0
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/ipykernel_helper.egg-info/entry_points.txt +0 -0
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/ipykernel_helper.egg-info/top_level.txt +0 -0
- {ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ipykernel-helper
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.47
|
|
4
4
|
Summary: Helpers for ipykernel and friends
|
|
5
5
|
Author-email: Jeremy Howard <info@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -17,7 +17,7 @@ Description-Content-Type: text/markdown
|
|
|
17
17
|
License-File: LICENSE
|
|
18
18
|
Requires-Dist: python-fasthtml
|
|
19
19
|
Requires-Dist: fastcore>=1.12.28
|
|
20
|
-
Requires-Dist: toolslm>=0.3.
|
|
20
|
+
Requires-Dist: toolslm>=0.3.37
|
|
21
21
|
Requires-Dist: jedi
|
|
22
22
|
Requires-Dist: ipython
|
|
23
23
|
Requires-Dist: ipykernel
|
|
@@ -51,6 +51,7 @@ d = { 'settings': { 'branch': 'main',
|
|
|
51
51
|
'ipykernel_helper.core._safe_repr': ('core.html#_safe_repr', 'ipykernel_helper/core.py'),
|
|
52
52
|
'ipykernel_helper.core._safe_sig': ('core.html#_safe_sig', 'ipykernel_helper/core.py'),
|
|
53
53
|
'ipykernel_helper.core._signatures': ('core.html#_signatures', 'ipykernel_helper/core.py'),
|
|
54
|
+
'ipykernel_helper.core.call_tool': ('core.html#call_tool', 'ipykernel_helper/core.py'),
|
|
54
55
|
'ipykernel_helper.core.fix_editable_priority': ( 'core.html#fix_editable_priority',
|
|
55
56
|
'ipykernel_helper/core.py'),
|
|
56
57
|
'ipykernel_helper.core.get_md': ('core.html#get_md', 'ipykernel_helper/core.py'),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# %% auto #0
|
|
6
6
|
__all__ = ['transient', 'run_cmd', 'get_md', 'scrape_url', 'gh_blob_to_raw', 'read_gh_repo', 'read_url', 'fix_editable_priority',
|
|
7
|
-
'load_ipython_extension']
|
|
7
|
+
'call_tool', 'load_ipython_extension']
|
|
8
8
|
|
|
9
9
|
# %% ../nbs/00_core.ipynb #9470a755
|
|
10
10
|
from fasthtml.common import *
|
|
@@ -356,6 +356,11 @@ def finish_displayhook(self:ZMQShellDisplayHook):
|
|
|
356
356
|
if obj is not None: self.msg['content']['metadata']['__type'] = type(obj).__qualname__
|
|
357
357
|
self._orig_finish_displayhook()
|
|
358
358
|
|
|
359
|
+
# %% ../nbs/00_core.ipynb #b671332c
|
|
360
|
+
async def call_tool(func, kw):
|
|
361
|
+
"Call `func(**kw)` with `coerce_inputs`"
|
|
362
|
+
return await maybe_await(func(**coerce_inputs(func, kw)))
|
|
363
|
+
|
|
359
364
|
# %% ../nbs/00_core.ipynb #cf893c28
|
|
360
365
|
@patch
|
|
361
366
|
def _get_info(self:Inspector, obj, oname='', formatter=None, info=None, detail_level=0, omit_sections=()):
|
|
@@ -391,7 +396,7 @@ def structured_traceback(self:SyntaxTB, etype, evalue, etb, tb_offset=None, cont
|
|
|
391
396
|
def _getfile(obj): return str(inspect._orig_getfile(obj))
|
|
392
397
|
|
|
393
398
|
# %% ../nbs/00_core.ipynb #ff4984b9
|
|
394
|
-
@patch
|
|
399
|
+
@patch
|
|
395
400
|
async def run_cell_magic(self:InteractiveShell, magic_name, line, cell):
|
|
396
401
|
result = self._orig_run_cell_magic(magic_name, line, cell)
|
|
397
402
|
if inspect.iscoroutine(result): result = await result
|
|
@@ -399,11 +404,11 @@ async def run_cell_magic(self:InteractiveShell, magic_name, line, cell):
|
|
|
399
404
|
return result
|
|
400
405
|
|
|
401
406
|
def _await_cell_magic(lines):
|
|
402
|
-
if lines and 'get_ipython().run_cell_magic('
|
|
407
|
+
if lines and lines[0].lstrip().startswith('get_ipython().run_cell_magic('): lines[0] = f'await {lines[0]}'
|
|
403
408
|
return lines
|
|
404
409
|
|
|
405
410
|
def load_ipython_extension(ip):
|
|
406
411
|
ns = ip.user_ns
|
|
407
|
-
for o in ('read_gh_repo','read_url','transient','run_cmd','maybe_await'): ns[o] = globals()[o]
|
|
412
|
+
for o in ('read_gh_repo','read_url','transient','run_cmd','maybe_await','call_tool'): ns[o] = globals()[o]
|
|
408
413
|
lts = ip.input_transformer_manager.line_transforms
|
|
409
414
|
if not any(getattr(f, '__name__', None) == '_await_cell_magic' for f in lts): lts.append(_await_cell_magic)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ipykernel-helper
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.47
|
|
4
4
|
Summary: Helpers for ipykernel and friends
|
|
5
5
|
Author-email: Jeremy Howard <info@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -17,7 +17,7 @@ Description-Content-Type: text/markdown
|
|
|
17
17
|
License-File: LICENSE
|
|
18
18
|
Requires-Dist: python-fasthtml
|
|
19
19
|
Requires-Dist: fastcore>=1.12.28
|
|
20
|
-
Requires-Dist: toolslm>=0.3.
|
|
20
|
+
Requires-Dist: toolslm>=0.3.37
|
|
21
21
|
Requires-Dist: jedi
|
|
22
22
|
Requires-Dist: ipython
|
|
23
23
|
Requires-Dist: ipykernel
|
|
@@ -12,7 +12,7 @@ license = {text = "Apache-2.0"}
|
|
|
12
12
|
authors = [{name = "Jeremy Howard", email = "info@fast.ai"}]
|
|
13
13
|
keywords = ['nbdev', 'jupyter', 'notebook', 'python']
|
|
14
14
|
classifiers = ["Natural Language :: English", "Intended Audience :: Developers", "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only"]
|
|
15
|
-
dependencies = ['python-fasthtml', 'fastcore>=1.12.28', 'toolslm>=0.3.
|
|
15
|
+
dependencies = ['python-fasthtml', 'fastcore>=1.12.28', 'toolslm>=0.3.37', 'jedi', 'ipython', 'ipykernel', 'beautifulsoup4', 'lxml', 'html2text', 'cloudscraper', 'ghapi']
|
|
16
16
|
|
|
17
17
|
[project.urls]
|
|
18
18
|
Repository = "https://github.com/AnswerDotAI/ipykernel-helper"
|
|
@@ -28,6 +28,6 @@ version = {attr = "ipykernel_helper.__version__"}
|
|
|
28
28
|
include = ["ipykernel_helper"]
|
|
29
29
|
|
|
30
30
|
[tool.nbdev]
|
|
31
|
-
allowed_metadata_keys = ['
|
|
32
|
-
allowed_cell_metadata_keys = [
|
|
31
|
+
allowed_metadata_keys = ['solveit']
|
|
32
|
+
allowed_cell_metadata_keys = ['solveit_ai']
|
|
33
33
|
custom_sidebar = false
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/ipykernel_helper.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{ipykernel_helper-0.0.45 → ipykernel_helper-0.0.47}/ipykernel_helper.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|