ipykernel-helper 0.0.14__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.
- ipykernel_helper/__init__.py +2 -0
- ipykernel_helper/_modidx.py +34 -0
- ipykernel_helper/core.py +216 -0
- ipykernel_helper-0.0.14.dist-info/METADATA +110 -0
- ipykernel_helper-0.0.14.dist-info/RECORD +9 -0
- ipykernel_helper-0.0.14.dist-info/WHEEL +5 -0
- ipykernel_helper-0.0.14.dist-info/entry_points.txt +2 -0
- ipykernel_helper-0.0.14.dist-info/licenses/LICENSE +201 -0
- ipykernel_helper-0.0.14.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Autogenerated by nbdev
|
|
2
|
+
|
|
3
|
+
d = { 'settings': { 'branch': 'main',
|
|
4
|
+
'doc_baseurl': '/ipykernel-helper',
|
|
5
|
+
'doc_host': 'https://AnswerDotAI.github.io',
|
|
6
|
+
'git_url': 'https://github.com/AnswerDotAI/ipykernel-helper',
|
|
7
|
+
'lib_path': 'ipykernel_helper'},
|
|
8
|
+
'syms': { 'ipykernel_helper.core': { 'ipykernel_helper.core.Inspector._get_info': ( 'core.html#inspector._get_info',
|
|
9
|
+
'ipykernel_helper/core.py'),
|
|
10
|
+
'ipykernel_helper.core.InteractiveShell.get_schemas': ( 'core.html#interactiveshell.get_schemas',
|
|
11
|
+
'ipykernel_helper/core.py'),
|
|
12
|
+
'ipykernel_helper.core.InteractiveShell.get_vars': ( 'core.html#interactiveshell.get_vars',
|
|
13
|
+
'ipykernel_helper/core.py'),
|
|
14
|
+
'ipykernel_helper.core.InteractiveShell.publish': ( 'core.html#interactiveshell.publish',
|
|
15
|
+
'ipykernel_helper/core.py'),
|
|
16
|
+
'ipykernel_helper.core.InteractiveShell.ranked_complete': ( 'core.html#interactiveshell.ranked_complete',
|
|
17
|
+
'ipykernel_helper/core.py'),
|
|
18
|
+
'ipykernel_helper.core.InteractiveShell.sig_help': ( 'core.html#interactiveshell.sig_help',
|
|
19
|
+
'ipykernel_helper/core.py'),
|
|
20
|
+
'ipykernel_helper.core.InteractiveShell.user_items': ( 'core.html#interactiveshell.user_items',
|
|
21
|
+
'ipykernel_helper/core.py'),
|
|
22
|
+
'ipykernel_helper.core.InteractiveShell.xpush': ( 'core.html#interactiveshell.xpush',
|
|
23
|
+
'ipykernel_helper/core.py'),
|
|
24
|
+
'ipykernel_helper.core._get_schema': ('core.html#_get_schema', 'ipykernel_helper/core.py'),
|
|
25
|
+
'ipykernel_helper.core._rank': ('core.html#_rank', 'ipykernel_helper/core.py'),
|
|
26
|
+
'ipykernel_helper.core._safe_repr': ('core.html#_safe_repr', 'ipykernel_helper/core.py'),
|
|
27
|
+
'ipykernel_helper.core._signatures': ('core.html#_signatures', 'ipykernel_helper/core.py'),
|
|
28
|
+
'ipykernel_helper.core.get_md': ('core.html#get_md', 'ipykernel_helper/core.py'),
|
|
29
|
+
'ipykernel_helper.core.load_ipython_extension': ( 'core.html#load_ipython_extension',
|
|
30
|
+
'ipykernel_helper/core.py'),
|
|
31
|
+
'ipykernel_helper.core.read_url': ('core.html#read_url', 'ipykernel_helper/core.py'),
|
|
32
|
+
'ipykernel_helper.core.run_cmd': ('core.html#run_cmd', 'ipykernel_helper/core.py'),
|
|
33
|
+
'ipykernel_helper.core.scrape_url': ('core.html#scrape_url', 'ipykernel_helper/core.py'),
|
|
34
|
+
'ipykernel_helper.core.transient': ('core.html#transient', 'ipykernel_helper/core.py')}}}
|
ipykernel_helper/core.py
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"""API for ipykernel-helper"""
|
|
2
|
+
|
|
3
|
+
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb.
|
|
4
|
+
|
|
5
|
+
# %% auto 0
|
|
6
|
+
__all__ = ['transient', 'run_cmd', 'get_md', 'scrape_url', 'read_url', 'load_ipython_extension']
|
|
7
|
+
|
|
8
|
+
# %% ../nbs/00_core.ipynb
|
|
9
|
+
from fastcore.meta import delegates
|
|
10
|
+
from fastcore.utils import patch,dict2obj
|
|
11
|
+
from types import ModuleType, FunctionType, MethodType, BuiltinFunctionType
|
|
12
|
+
from inspect import signature, currentframe
|
|
13
|
+
from functools import cmp_to_key,partial
|
|
14
|
+
from collections.abc import Mapping
|
|
15
|
+
from textwrap import dedent
|
|
16
|
+
from cloudscraper import create_scraper
|
|
17
|
+
from toolslm.funccall import *
|
|
18
|
+
from ast import literal_eval
|
|
19
|
+
|
|
20
|
+
import typing,warnings,re
|
|
21
|
+
|
|
22
|
+
from IPython.core.interactiveshell import InteractiveShell
|
|
23
|
+
from IPython.core.completer import ProvisionalCompleterWarning
|
|
24
|
+
from jedi import Interpreter, Script as jscript
|
|
25
|
+
|
|
26
|
+
from IPython.core.display import DisplayObject
|
|
27
|
+
from IPython.display import display,Markdown,HTML
|
|
28
|
+
from IPython.core.oinspect import Inspector
|
|
29
|
+
|
|
30
|
+
# %% ../nbs/00_core.ipynb
|
|
31
|
+
warnings.filterwarnings('ignore', category=ProvisionalCompleterWarning)
|
|
32
|
+
|
|
33
|
+
# %% ../nbs/00_core.ipynb
|
|
34
|
+
def _safe_repr(obj, max_len=200):
|
|
35
|
+
"Safely get the repr() of an object, truncating if it exceeds max_len."
|
|
36
|
+
try:
|
|
37
|
+
s = str(obj)
|
|
38
|
+
return s[:max_len] + ("…" if len(s)>max_len else "")
|
|
39
|
+
except Exception as e: return f"<repr error: {str(e)}>"
|
|
40
|
+
|
|
41
|
+
# %% ../nbs/00_core.ipynb
|
|
42
|
+
@patch
|
|
43
|
+
def user_items(self:InteractiveShell, max_len=200, xtra_skip=()):
|
|
44
|
+
"Get user-defined vars & funcs from namespace."
|
|
45
|
+
ns,nsh = self.user_ns,self.user_ns_hidden
|
|
46
|
+
ignore = {'nbmeta', 'receive_nbmeta'}
|
|
47
|
+
ignore.add(xtra_skip)
|
|
48
|
+
rm_types = (
|
|
49
|
+
type, FunctionType, ModuleType, MethodType, BuiltinFunctionType,
|
|
50
|
+
getattr(typing, '_SpecialGenericAlias', ()),
|
|
51
|
+
getattr(typing, '_GenericAlias', ()),
|
|
52
|
+
getattr(typing, '_SpecialForm', ())
|
|
53
|
+
)
|
|
54
|
+
user_items = {k:v for k, v in ns.items()
|
|
55
|
+
if not k in ignore and k not in nsh}
|
|
56
|
+
user_vars = {k:_safe_repr(v, max_len=max_len)
|
|
57
|
+
for k, v in user_items.items() if not k.startswith('_') and not isinstance(v, rm_types)}
|
|
58
|
+
user_fns = {k:str(signature(v)) for k, v in user_items.items()
|
|
59
|
+
if isinstance(v, FunctionType) and v.__module__ == '__main__' and not k.startswith('__')}
|
|
60
|
+
return user_vars,user_fns
|
|
61
|
+
|
|
62
|
+
# %% ../nbs/00_core.ipynb
|
|
63
|
+
def _rank(c, s):
|
|
64
|
+
"Rank a completion `c` for text `s` with namespace `ns`."
|
|
65
|
+
parts = s.split('.')
|
|
66
|
+
is_public = not c.text.startswith('_')
|
|
67
|
+
if c.type=='param': r=1
|
|
68
|
+
elif c.mod=='__main__': r=2 # local
|
|
69
|
+
elif len(parts)>1 and parts[0]==c.mod: r=3 # module
|
|
70
|
+
elif c.mod=='builtins': r=4
|
|
71
|
+
else: r=5
|
|
72
|
+
return r if is_public else r+0.1
|
|
73
|
+
|
|
74
|
+
# %% ../nbs/00_core.ipynb
|
|
75
|
+
@patch
|
|
76
|
+
def ranked_complete(self:InteractiveShell, code, line_no=None, col_no=None):
|
|
77
|
+
ns = self.user_ns
|
|
78
|
+
lines = code.splitlines(True)
|
|
79
|
+
if line_no: offset = sum(len(lines[i]) for i in range(line_no-1)) + col_no -1
|
|
80
|
+
else: offset = len(code)
|
|
81
|
+
cs = self.Completer.completions(code, offset)
|
|
82
|
+
def _c(a):
|
|
83
|
+
res = dict2obj({attr: getattr(a, attr) for attr in dir(a) if attr[0]!='_'})
|
|
84
|
+
res['mod']= getattr(ns.get(a.text, None), '__module__', None)
|
|
85
|
+
res['rank'] = _rank(res, s=code)
|
|
86
|
+
return res
|
|
87
|
+
# Remove dunder vars, unless the user seems to be looking for them explicitly
|
|
88
|
+
return [_c(c) for c in cs if not c.text.startswith('__') or '__' in code]
|
|
89
|
+
|
|
90
|
+
# %% ../nbs/00_core.ipynb
|
|
91
|
+
def _signatures(ns, s, line, col):
|
|
92
|
+
ctx = Interpreter(s, [ns]).get_signatures(line, col)
|
|
93
|
+
if not ctx: ctx = jscript(s).get_signatures(line, col)
|
|
94
|
+
return ctx
|
|
95
|
+
|
|
96
|
+
@patch
|
|
97
|
+
def sig_help(self:InteractiveShell, code, line_no=None, col_no=None):
|
|
98
|
+
ns = self.user_ns
|
|
99
|
+
ctx = _signatures(ns, code, line=line_no, col=col_no)
|
|
100
|
+
def _s(s): return {'label':s.description,'typ':s.type, 'mod':s.module_name, 'doc':s.docstring(),
|
|
101
|
+
'idx':s.index, 'params':[{'name':p.name, 'desc':p.description} for p in s.params]}
|
|
102
|
+
return [_s(opt) for opt in ctx]
|
|
103
|
+
|
|
104
|
+
# %% ../nbs/00_core.ipynb
|
|
105
|
+
@patch
|
|
106
|
+
def get_vars(self:InteractiveShell, vs:list, literal=True):
|
|
107
|
+
"Get variables from namespace."
|
|
108
|
+
ns = self.user_ns
|
|
109
|
+
def _maybe_eval(o):
|
|
110
|
+
try: literal_eval(repr(o)); return o
|
|
111
|
+
except: return str(o)
|
|
112
|
+
return {v:_maybe_eval(ns[v]) if literal else str(ns[v]) for v in vs if v in ns}
|
|
113
|
+
|
|
114
|
+
# %% ../nbs/00_core.ipynb
|
|
115
|
+
def _get_schema(ns: dict, t):
|
|
116
|
+
"Check if tool `t` has errors."
|
|
117
|
+
if t not in ns: return f"`{t}` not found. Did you run it?"
|
|
118
|
+
try: return get_schema(ns[t])
|
|
119
|
+
except Exception as e: return f"`{t}`: {e}."
|
|
120
|
+
|
|
121
|
+
@patch
|
|
122
|
+
def get_schemas(self:InteractiveShell, fs:list):
|
|
123
|
+
"Get schemas from namespace."
|
|
124
|
+
ns = self.user_ns
|
|
125
|
+
return {f:_get_schema(ns,f) for f in fs}
|
|
126
|
+
|
|
127
|
+
# %% ../nbs/00_core.ipynb
|
|
128
|
+
@patch
|
|
129
|
+
def xpush(self:InteractiveShell, interactive=False, **kw):
|
|
130
|
+
"Like `push`, but with kwargs"
|
|
131
|
+
self.push(kw, interactive=interactive)
|
|
132
|
+
|
|
133
|
+
# %% ../nbs/00_core.ipynb
|
|
134
|
+
@patch
|
|
135
|
+
def publish(self:InteractiveShell, data='', subtype='plain', mimetype='text', meta=None, update=False, **kw):
|
|
136
|
+
if isinstance(data, DisplayObject): data,_ = self.display_formatter.format(data)
|
|
137
|
+
elif not isinstance(data, Mapping): data = {f'{mimetype}/{subtype}': data}
|
|
138
|
+
self.display_pub.publish(data, metadata=meta, transient=kw, update=update)
|
|
139
|
+
|
|
140
|
+
# %% ../nbs/00_core.ipynb
|
|
141
|
+
def transient(data='', subtype='plain', mimetype='text', meta=None, update=False, **kw):
|
|
142
|
+
display({f'{mimetype}/{subtype}': data}, raw=True, metadata=meta, transient=kw, update=update)
|
|
143
|
+
|
|
144
|
+
# %% ../nbs/00_core.ipynb
|
|
145
|
+
def run_cmd(cmd, data='', meta=None, update=False, **kw):
|
|
146
|
+
transient(data, meta=meta, update=update, cmd=cmd, **kw)
|
|
147
|
+
|
|
148
|
+
# %% ../nbs/00_core.ipynb
|
|
149
|
+
def get_md(cts):
|
|
150
|
+
from html2text import HTML2Text
|
|
151
|
+
h2t = HTML2Text(bodywidth=5000)
|
|
152
|
+
h2t.ignore_links = False
|
|
153
|
+
h2t.mark_code = True
|
|
154
|
+
h2t.ignore_images = False
|
|
155
|
+
res = h2t.handle(cts)
|
|
156
|
+
def _f(m): return f'```\n{dedent(m.group(1))}\n```'
|
|
157
|
+
return re.sub(r'\[code]\s*\n(.*?)\n\[/code]', _f, res or '', flags=re.DOTALL).strip()
|
|
158
|
+
|
|
159
|
+
# %% ../nbs/00_core.ipynb
|
|
160
|
+
def scrape_url(url): return create_scraper().get(url)
|
|
161
|
+
|
|
162
|
+
# %% ../nbs/00_core.ipynb
|
|
163
|
+
def read_url(
|
|
164
|
+
url:str, # URL to read
|
|
165
|
+
as_md:bool=True, # Convert HTML to Markdown?
|
|
166
|
+
extract_section:bool=True, # If url has an anchor, return only that section
|
|
167
|
+
selector:str=None # Select section(s) using BeautifulSoup.select (overrides extract_section)
|
|
168
|
+
):
|
|
169
|
+
"Read URL and return contents"
|
|
170
|
+
from urllib.parse import urlparse
|
|
171
|
+
from bs4 import BeautifulSoup
|
|
172
|
+
|
|
173
|
+
o = scrape_url(url)
|
|
174
|
+
res, ctype = o.text, o.headers.get('content-type').split(';')[0]
|
|
175
|
+
|
|
176
|
+
soup = BeautifulSoup(res, "html.parser")
|
|
177
|
+
|
|
178
|
+
if selector:
|
|
179
|
+
sections = soup.select(selector)
|
|
180
|
+
if sections: res = '\n\n'.join(str(section) for section in sections)
|
|
181
|
+
else: res = ''
|
|
182
|
+
elif extract_section:
|
|
183
|
+
parsed = urlparse(url)
|
|
184
|
+
if parsed.fragment:
|
|
185
|
+
section = soup.find(id=parsed.fragment)
|
|
186
|
+
if section:
|
|
187
|
+
tag_name = section.name
|
|
188
|
+
elements = [section]
|
|
189
|
+
current = section.next_sibling
|
|
190
|
+
while current:
|
|
191
|
+
if hasattr(current, 'name') and current.name == tag_name: break
|
|
192
|
+
elements.append(current)
|
|
193
|
+
current = current.next_sibling
|
|
194
|
+
res = ''.join(str(el) for el in elements)
|
|
195
|
+
else: res = ''
|
|
196
|
+
if as_md and ctype == 'text/html': return get_md(res)
|
|
197
|
+
return res
|
|
198
|
+
|
|
199
|
+
# %% ../nbs/00_core.ipynb
|
|
200
|
+
@patch
|
|
201
|
+
def _get_info(self:Inspector, obj, oname='', formatter=None, info=None, detail_level=0, omit_sections=()):
|
|
202
|
+
"Custom formatter for ?? output"
|
|
203
|
+
orig = self._orig__get_info(obj, oname=oname, formatter=formatter, info=info,
|
|
204
|
+
detail_level=detail_level, omit_sections=omit_sections)
|
|
205
|
+
if detail_level==0: return orig
|
|
206
|
+
info_dict = self.info(obj, oname=oname, info=info, detail_level=detail_level)
|
|
207
|
+
out = []
|
|
208
|
+
if c:=info_dict.get('source'): out.append(f"\n```python\n{dedent(c)}\n```")
|
|
209
|
+
if c:=info_dict.get('file'): out.append(f"**File:** `{c}`")
|
|
210
|
+
return {'text/markdown': '\n\n'.join(out), 'text/html': '', 'text/plain': orig['text/plain']}
|
|
211
|
+
|
|
212
|
+
# %% ../nbs/00_core.ipynb
|
|
213
|
+
def load_ipython_extension(ip):
|
|
214
|
+
from ipykernel_helper import transient,run_cmd
|
|
215
|
+
ns = ip.user_ns
|
|
216
|
+
ns['read_url'],ns['transient'],ns['run_cmd'] = read_url,transient,run_cmd
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ipykernel-helper
|
|
3
|
+
Version: 0.0.14
|
|
4
|
+
Summary: Helpers for ipykernel and friends
|
|
5
|
+
Home-page: https://github.com/AnswerDotAI/ipykernel-helper
|
|
6
|
+
Author: Jeremy Howard
|
|
7
|
+
Author-email: info@fast.ai
|
|
8
|
+
License: Apache Software License 2.0
|
|
9
|
+
Keywords: nbdev jupyter notebook python
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Natural Language :: English
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
|
+
Requires-Python: >=3.9
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: fastcore
|
|
22
|
+
Requires-Dist: toolslm>=0.2.0
|
|
23
|
+
Requires-Dist: jedi
|
|
24
|
+
Requires-Dist: ipython
|
|
25
|
+
Requires-Dist: ipykernel
|
|
26
|
+
Requires-Dist: beautifulsoup4
|
|
27
|
+
Requires-Dist: html2text
|
|
28
|
+
Requires-Dist: cloudscraper
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Dynamic: author
|
|
31
|
+
Dynamic: author-email
|
|
32
|
+
Dynamic: classifier
|
|
33
|
+
Dynamic: description
|
|
34
|
+
Dynamic: description-content-type
|
|
35
|
+
Dynamic: home-page
|
|
36
|
+
Dynamic: keywords
|
|
37
|
+
Dynamic: license
|
|
38
|
+
Dynamic: license-file
|
|
39
|
+
Dynamic: provides-extra
|
|
40
|
+
Dynamic: requires-dist
|
|
41
|
+
Dynamic: requires-python
|
|
42
|
+
Dynamic: summary
|
|
43
|
+
|
|
44
|
+
# ipykernel-helper
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
|
|
48
|
+
|
|
49
|
+
This file will become your README and also the index of your
|
|
50
|
+
documentation.
|
|
51
|
+
|
|
52
|
+
## Developer Guide
|
|
53
|
+
|
|
54
|
+
If you are new to using `nbdev` here are some useful pointers to get you
|
|
55
|
+
started.
|
|
56
|
+
|
|
57
|
+
### Install ipykernel_helper in Development mode
|
|
58
|
+
|
|
59
|
+
``` sh
|
|
60
|
+
# make sure ipykernel_helper package is installed in development mode
|
|
61
|
+
$ pip install -e .
|
|
62
|
+
|
|
63
|
+
# make changes under nbs/ directory
|
|
64
|
+
# ...
|
|
65
|
+
|
|
66
|
+
# compile to have changes apply to ipykernel_helper
|
|
67
|
+
$ nbdev_prepare
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Usage
|
|
71
|
+
|
|
72
|
+
### Installation
|
|
73
|
+
|
|
74
|
+
Install latest from the GitHub
|
|
75
|
+
[repository](https://github.com/AnswerDotAI/ipykernel-helper):
|
|
76
|
+
|
|
77
|
+
``` sh
|
|
78
|
+
$ pip install git+https://github.com/AnswerDotAI/ipykernel-helper.git
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
or from [conda](https://anaconda.org/AnswerDotAI/ipykernel-helper)
|
|
82
|
+
|
|
83
|
+
``` sh
|
|
84
|
+
$ conda install -c AnswerDotAI ipykernel_helper
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
or from [pypi](https://pypi.org/project/ipykernel-helper/)
|
|
88
|
+
|
|
89
|
+
``` sh
|
|
90
|
+
$ pip install ipykernel_helper
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Documentation
|
|
94
|
+
|
|
95
|
+
Documentation can be found hosted on this GitHub
|
|
96
|
+
[repository](https://github.com/AnswerDotAI/ipykernel-helper)’s
|
|
97
|
+
[pages](https://AnswerDotAI.github.io/ipykernel-helper/). Additionally
|
|
98
|
+
you can find package manager specific guidelines on
|
|
99
|
+
[conda](https://anaconda.org/AnswerDotAI/ipykernel-helper) and
|
|
100
|
+
[pypi](https://pypi.org/project/ipykernel-helper/) respectively.
|
|
101
|
+
|
|
102
|
+
## How to use
|
|
103
|
+
|
|
104
|
+
Fill me in please! Don’t forget code examples:
|
|
105
|
+
|
|
106
|
+
``` python
|
|
107
|
+
1+1
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
2
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
ipykernel_helper/__init__.py,sha256=z-0Rh9e-quhc6YCgBCQPxO9WBChy0UBbaCcAmIPEqfE,43
|
|
2
|
+
ipykernel_helper/_modidx.py,sha256=AEG4MccZfb25rQi8UWrOpUrs1VIYHbexKEQGWnwYkRg,3706
|
|
3
|
+
ipykernel_helper/core.py,sha256=yPDNnVGPURLVcNb7NcikqKvbdifxybduIdkyJdzHz1w,8420
|
|
4
|
+
ipykernel_helper-0.0.14.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
5
|
+
ipykernel_helper-0.0.14.dist-info/METADATA,sha256=9kObKdTx58-Kw5Ecll9WelZw8LfYBViyzJ0rhAfLGb4,2709
|
|
6
|
+
ipykernel_helper-0.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
ipykernel_helper-0.0.14.dist-info/entry_points.txt,sha256=HWiK9xz75QtZUaPaYrwpyH5B8MbW0Ea_vi11UmwBImM,54
|
|
8
|
+
ipykernel_helper-0.0.14.dist-info/top_level.txt,sha256=_diD--64d9MauLE0pTxzZ58lkI8DvCrVc1hVAJsyc_Q,17
|
|
9
|
+
ipykernel_helper-0.0.14.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ipykernel_helper
|