ipykernel-helper 0.0.5__py3-none-any.whl → 0.0.7__py3-none-any.whl

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.

Potentially problematic release.


This version of ipykernel-helper might be problematic. Click here for more details.

@@ -1,2 +1,2 @@
1
- __version__ = "0.0.5"
1
+ __version__ = "0.0.7"
2
2
  from .core import *
@@ -25,5 +25,6 @@ d = { 'settings': { 'branch': 'main',
25
25
  'ipykernel_helper.core._signatures': ('core.html#_signatures', 'ipykernel_helper/core.py'),
26
26
  'ipykernel_helper.core.load_ipython_extension': ( 'core.html#load_ipython_extension',
27
27
  'ipykernel_helper/core.py'),
28
+ 'ipykernel_helper.core.read_url': ('core.html#read_url', 'ipykernel_helper/core.py'),
28
29
  'ipykernel_helper.core.run_cmd': ('core.html#run_cmd', 'ipykernel_helper/core.py'),
29
30
  'ipykernel_helper.core.transient': ('core.html#transient', 'ipykernel_helper/core.py')}}}
ipykernel_helper/core.py CHANGED
@@ -3,7 +3,7 @@
3
3
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb.
4
4
 
5
5
  # %% auto 0
6
- __all__ = ['transient', 'run_cmd', 'load_ipython_extension']
6
+ __all__ = ['transient', 'run_cmd', 'read_url', 'load_ipython_extension']
7
7
 
8
8
  # %% ../nbs/00_core.ipynb
9
9
  from fastcore.meta import delegates
@@ -94,7 +94,7 @@ def sig_help(self:InteractiveShell, code, line_no=None, col_no=None):
94
94
  ns = self.user_ns
95
95
  ctx = _signatures(ns, code, line=line_no, col=col_no)
96
96
  def _s(s): return {'label':s.description,'typ':s.type, 'mod':s.module_name, 'doc':s.docstring(),
97
- 'idx':s.index, 'params':[{'name':p.name} for p in s.params]}
97
+ 'idx':s.index, 'params':[{'name':p.name, 'desc':p.description} for p in s.params]}
98
98
  return [_s(opt) for opt in ctx]
99
99
 
100
100
  # %% ../nbs/00_core.ipynb
@@ -135,11 +135,17 @@ def transient(data='', subtype='plain', mimetype='text', meta=None, update=False
135
135
  display({f'{mimetype}/{subtype}': data}, raw=True, metadata=meta, transient=kw, update=update)
136
136
 
137
137
  # %% ../nbs/00_core.ipynb
138
- def run_cmd(cmd, meta=None, update=False, **kw):
139
- transient(meta=meta, update=update, cmd=cmd, **kw)
138
+ def run_cmd(cmd, data='', meta=None, update=False, **kw):
139
+ transient(data, meta=meta, update=update, cmd=cmd, **kw)
140
+
141
+ # %% ../nbs/00_core.ipynb
142
+ def read_url(url:str):
143
+ "Read URL and return contents"
144
+ import httpx
145
+ return httpx.get(url, follow_redirects=True).raise_for_status().text
140
146
 
141
147
  # %% ../nbs/00_core.ipynb
142
148
  def load_ipython_extension(ip):
143
149
  from ipykernel_helper import transient,run_cmd
144
150
  ns = ip.user_ns
145
- ns['transient'],ns['run_cmd'] = transient,run_cmd
151
+ ns['read_url'],ns['transient'],ns['run_cmd'] = read_url,transient,run_cmd
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ipykernel-helper
3
- Version: 0.0.5
3
+ Version: 0.0.7
4
4
  Summary: Helpers for ipykernel and friends
5
5
  Home-page: https://github.com/AnswerDotAI/ipykernel-helper
6
6
  Author: Jeremy Howard
@@ -20,6 +20,9 @@ Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
21
  Requires-Dist: fastcore
22
22
  Requires-Dist: toolslm>=0.2.0
23
+ Requires-Dist: jupyter-client
24
+ Requires-Dist: jedi
25
+ Requires-Dist: ipython
23
26
  Provides-Extra: dev
24
27
  Dynamic: author
25
28
  Dynamic: author-email
@@ -0,0 +1,9 @@
1
+ ipykernel_helper/__init__.py,sha256=cBGyHvib2OPGtNoyRG91A9JaJUiuPOiM2YX9VdZUQ64,42
2
+ ipykernel_helper/_modidx.py,sha256=lQXK2a0JRa5HT5pHMaCEvN2fPlErCyHzg-m_I5vici0,3222
3
+ ipykernel_helper/core.py,sha256=Y1qTzHK1ogdCtXUA_QU44oQ0sRc3-VS0F1ZPYG_aOTk,5780
4
+ ipykernel_helper-0.0.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
+ ipykernel_helper-0.0.7.dist-info/METADATA,sha256=n5X5ZcorROAEuOFtE7CcY83YNnf-sZRIjtujWkRYTxE,2630
6
+ ipykernel_helper-0.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ ipykernel_helper-0.0.7.dist-info/entry_points.txt,sha256=HWiK9xz75QtZUaPaYrwpyH5B8MbW0Ea_vi11UmwBImM,54
8
+ ipykernel_helper-0.0.7.dist-info/top_level.txt,sha256=_diD--64d9MauLE0pTxzZ58lkI8DvCrVc1hVAJsyc_Q,17
9
+ ipykernel_helper-0.0.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.0.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- ipykernel_helper/__init__.py,sha256=vcF3PxICb5jmbcz0MoaVcpqURhdQQbFoHZ8V2L6D5Ls,42
2
- ipykernel_helper/_modidx.py,sha256=tboR5OfvcHFQxhFluKfdwRTl0cLSgM2fCtqEug7935g,3097
3
- ipykernel_helper/core.py,sha256=J1b6bteS0P0EJNTDlW1rXohlvRS6JVWxQS_2zHHu_w8,5532
4
- ipykernel_helper-0.0.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
- ipykernel_helper-0.0.5.dist-info/METADATA,sha256=gL9uXsgtPvEtT9TSg6Y35_UAejsPH0iTjpLJWdMNZ1c,2557
6
- ipykernel_helper-0.0.5.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
7
- ipykernel_helper-0.0.5.dist-info/entry_points.txt,sha256=HWiK9xz75QtZUaPaYrwpyH5B8MbW0Ea_vi11UmwBImM,54
8
- ipykernel_helper-0.0.5.dist-info/top_level.txt,sha256=_diD--64d9MauLE0pTxzZ58lkI8DvCrVc1hVAJsyc_Q,17
9
- ipykernel_helper-0.0.5.dist-info/RECORD,,