content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
\n\n | .venv\Lib\site-packages\IPython\testing\plugin\__pycache__\simplevars.cpython-313.pyc | simplevars.cpython-313.pyc | Other | 255 | 0.7 | 0 | 0 | vue-tools | 675 | 2025-07-04T01:29:08.471787 | GPL-3.0 | true | b82251c1203e2f1e4c18b0126ac0f29f |
\n\n | .venv\Lib\site-packages\IPython\testing\plugin\__pycache__\test_ipdoctest.cpython-313.pyc | test_ipdoctest.cpython-313.pyc | Other | 2,279 | 0.95 | 0.098765 | 0 | vue-tools | 451 | 2023-09-05T10:44:03.645377 | Apache-2.0 | true | 33b8ddadc76dbae05922958e38271159 |
\n\n | .venv\Lib\site-packages\IPython\testing\plugin\__pycache__\test_refs.cpython-313.pyc | test_refs.cpython-313.pyc | Other | 1,035 | 0.8 | 0.090909 | 0 | awesome-app | 722 | 2024-12-14T09:58:36.773329 | Apache-2.0 | true | 2f555a5df4ab8f6a6ff3c4de1df2853b |
\n\n | .venv\Lib\site-packages\IPython\testing\plugin\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 197 | 0.7 | 0 | 0 | node-utils | 152 | 2024-08-31T16:57:50.084479 | MIT | true | 46f684cb68150124a6ff1037918648bd |
\n\n | .venv\Lib\site-packages\IPython\testing\__pycache__\decorators.cpython-313.pyc | decorators.cpython-313.pyc | Other | 4,914 | 0.95 | 0.1625 | 0 | python-kit | 114 | 2024-10-05T09:09:35.258250 | Apache-2.0 | true | 2f63d0cf8f4da0d8794411d068b219c6 |
\n\n | .venv\Lib\site-packages\IPython\testing\__pycache__\globalipapp.cpython-313.pyc | globalipapp.cpython-313.pyc | Other | 3,879 | 0.8 | 0.04918 | 0.035088 | python-kit | 177 | 2024-11-21T19:31:55.387004 | MIT | true | 07d24ede2ddb39b0ab1456d7a636d0ce |
\n\n | .venv\Lib\site-packages\IPython\testing\__pycache__\ipunittest.cpython-313.pyc | ipunittest.cpython-313.pyc | Other | 7,470 | 0.95 | 0.117021 | 0 | react-lib | 935 | 2025-04-30T08:05:17.618313 | MIT | true | 9094937a1af68a6847ed83d15a580c6f |
\n\n | .venv\Lib\site-packages\IPython\testing\__pycache__\skipdoctest.cpython-313.pyc | skipdoctest.cpython-313.pyc | Other | 886 | 0.85 | 0.461538 | 0 | react-lib | 582 | 2025-01-23T15:31:41.212735 | BSD-3-Clause | true | fdd65984135a62c0537dc9948300a478 |
\n\n | .venv\Lib\site-packages\IPython\testing\__pycache__\tools.cpython-313.pyc | tools.cpython-313.pyc | Other | 17,053 | 0.95 | 0.07265 | 0.005051 | python-kit | 775 | 2025-05-05T08:21:41.560092 | GPL-3.0 | true | 74a51991d23a89d0ab2485a9bde6c4ea |
\n\n | .venv\Lib\site-packages\IPython\testing\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 414 | 0.7 | 0 | 0 | node-utils | 711 | 2024-09-27T06:46:51.927599 | GPL-3.0 | true | 77294f46f6ef5c9ef988204c93b221ab |
# Deprecated/should be removed, but we break older version of ipyparallel\n# https://github.com/ipython/ipyparallel/pull/924\n\n\n# minimal subset of TermColors, removed from IPython\n# not for public consumption, beyond ipyparallel.\nclass TermColors:\n Normal = "\033[0m"\n Red = "\033[0;31m"\n | .venv\Lib\site-packages\IPython\utils\coloransi.py | coloransi.py | Python | 293 | 0.95 | 0.222222 | 0.571429 | react-lib | 343 | 2024-08-22T02:31:28.096730 | MIT | false | 121ddf642eb072a35a2623d4141ba918 |
# encoding: utf-8\n"""Miscellaneous context managers."""\n\nimport warnings\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n\nclass preserve_keys:\n """Preserve a set of keys in a dictionary.\n\n Upon entering the context manager the current values of the keys\n will be saved. Upon exiting, the dictionary will be updated to\n restore the original value of the preserved keys. Preserved keys\n which did not exist when entering the context manager will be\n deleted.\n\n Examples\n --------\n\n >>> d = {'a': 1, 'b': 2, 'c': 3}\n >>> with preserve_keys(d, 'b', 'c', 'd'):\n ... del d['a']\n ... del d['b'] # will be reset to 2\n ... d['c'] = None # will be reset to 3\n ... d['d'] = 4 # will be deleted\n ... d['e'] = 5\n ... print(sorted(d.items()))\n ...\n [('c', None), ('d', 4), ('e', 5)]\n >>> print(sorted(d.items()))\n [('b', 2), ('c', 3), ('e', 5)]\n """\n\n def __init__(self, dictionary, *keys):\n self.dictionary = dictionary\n self.keys = keys\n\n def __enter__(self):\n # Actions to perform upon exiting.\n to_delete = []\n to_update = {}\n\n d = self.dictionary\n for k in self.keys:\n if k in d:\n to_update[k] = d[k]\n else:\n to_delete.append(k)\n\n self.to_delete = to_delete\n self.to_update = to_update\n\n def __exit__(self, *exc_info):\n d = self.dictionary\n\n for k in self.to_delete:\n d.pop(k, None)\n d.update(self.to_update)\n | .venv\Lib\site-packages\IPython\utils\contexts.py | contexts.py | Python | 1,610 | 0.95 | 0.116667 | 0.085106 | python-kit | 841 | 2024-02-19T17:22:24.811513 | MIT | false | 993e066a8f5ed2bd3875ce98ec7b13be |
# encoding: utf-8\n"""Utilities for working with data structures like lists, dicts and tuples.\n"""\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2008-2011 The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file COPYING, distributed as part of this software.\n#-----------------------------------------------------------------------------\n\n\ndef uniq_stable(elems):\n """uniq_stable(elems) -> list\n\n Return from an iterable, a list of all the unique elements in the input,\n but maintaining the order in which they first appear.\n\n Note: All elements in the input must be hashable for this routine\n to work, as it internally uses a set for efficiency reasons.\n """\n seen = set()\n return [x for x in elems if x not in seen and not seen.add(x)]\n\n\ndef chop(seq, size):\n """Chop a sequence into chunks of the given size."""\n return [seq[i:i+size] for i in range(0,len(seq),size)]\n\n\n | .venv\Lib\site-packages\IPython\utils\data.py | data.py | Python | 1,015 | 0.95 | 0.266667 | 0.333333 | python-kit | 982 | 2024-08-04T00:46:12.438070 | BSD-3-Clause | false | 6d3fe82ead2841f84eaf3d631bdf702a |
# encoding: utf-8\n"""Decorators that don't go anywhere else.\n\nThis module contains misc. decorators that don't really go with another module\nin :mod:`IPython.utils`. Before putting something here please see if it should\ngo into another topical module in :mod:`IPython.utils`.\n"""\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2008-2011 The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file COPYING, distributed as part of this software.\n#-----------------------------------------------------------------------------\n\n#-----------------------------------------------------------------------------\n# Imports\n#-----------------------------------------------------------------------------\nfrom typing import Sequence\n\nfrom IPython.utils.docs import GENERATING_DOCUMENTATION\n\n\n#-----------------------------------------------------------------------------\n# Code\n#-----------------------------------------------------------------------------\n\ndef flag_calls(func):\n """Wrap a function to detect and flag when it gets called.\n\n This is a decorator which takes a function and wraps it in a function with\n a 'called' attribute. wrapper.called is initialized to False.\n\n The wrapper.called attribute is set to False right before each call to the\n wrapped function, so if the call fails it remains False. After the call\n completes, wrapper.called is set to True and the output is returned.\n\n Testing for truth in wrapper.called allows you to determine if a call to\n func() was attempted and succeeded."""\n \n # don't wrap twice\n if hasattr(func, 'called'):\n return func\n\n def wrapper(*args,**kw):\n wrapper.called = False\n out = func(*args,**kw)\n wrapper.called = True\n return out\n\n wrapper.called = False\n wrapper.__doc__ = func.__doc__\n return wrapper\n\n\ndef undoc(func):\n """Mark a function or class as undocumented.\n\n This is found by inspecting the AST, so for now it must be used directly\n as @undoc, not as e.g. @decorators.undoc\n """\n return func\n\n\ndef sphinx_options(\n show_inheritance: bool = True,\n show_inherited_members: bool = False,\n exclude_inherited_from: Sequence[str] = tuple(),\n):\n """Set sphinx options"""\n\n def wrapper(func):\n if not GENERATING_DOCUMENTATION:\n return func\n\n func._sphinx_options = dict(\n show_inheritance=show_inheritance,\n show_inherited_members=show_inherited_members,\n exclude_inherited_from=exclude_inherited_from,\n )\n return func\n\n return wrapper\n | .venv\Lib\site-packages\IPython\utils\decorators.py | decorators.py | Python | 2,680 | 0.95 | 0.216867 | 0.225806 | react-lib | 556 | 2024-08-08T17:13:48.680838 | MIT | false | 6f33a3c5c10ac47334f2cdcf7b00ec6d |
# encoding: utf-8\n"""A fancy version of Python's builtin :func:`dir` function."""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport inspect\nimport types\n\n\ndef safe_hasattr(obj, attr):\n """In recent versions of Python, hasattr() only catches AttributeError.\n This catches all errors.\n """\n try:\n getattr(obj, attr)\n return True\n except:\n return False\n\n\ndef dir2(obj):\n """dir2(obj) -> list of strings\n\n Extended version of the Python builtin dir(), which does a few extra\n checks.\n\n This version is guaranteed to return only a list of true strings, whereas\n dir() returns anything that objects inject into themselves, even if they\n are later not really valid for attribute access (many extension libraries\n have such bugs).\n """\n\n # Start building the attribute list via dir(), and then complete it\n # with a few extra special-purpose calls.\n\n try:\n words = set(dir(obj))\n except Exception:\n # TypeError: dir(obj) does not return a list\n words = set()\n\n if safe_hasattr(obj, "__class__"):\n words |= set(dir(obj.__class__))\n\n # filter out non-string attributes which may be stuffed by dir() calls\n # and poor coding in third-party modules\n\n words = [w for w in words if isinstance(w, str)]\n return sorted(words)\n\n\ndef get_real_method(obj, name):\n """Like getattr, but with a few extra sanity checks:\n\n - If obj is a class, ignore everything except class methods\n - Check if obj is a proxy that claims to have all attributes\n - Catch attribute access failing with any exception\n - Check that the attribute is a callable object\n\n Returns the method or None.\n """\n try:\n canary = getattr(obj, "_ipython_canary_method_should_not_exist_", None)\n except Exception:\n return None\n\n if canary is not None:\n # It claimed to have an attribute it should never have\n return None\n\n try:\n m = getattr(obj, name, None)\n except Exception:\n return None\n\n if inspect.isclass(obj) and not isinstance(m, types.MethodType):\n return None\n\n if callable(m):\n return m\n\n return None\n | .venv\Lib\site-packages\IPython\utils\dir2.py | dir2.py | Python | 2,231 | 0.95 | 0.228916 | 0.147541 | vue-tools | 289 | 2024-06-02T21:38:23.238865 | BSD-3-Clause | false | 44f6979d17dc70bcbb89d27d9550ba08 |
import os\n\nGENERATING_DOCUMENTATION = os.environ.get("IN_SPHINX_RUN", None) == "True"\n | .venv\Lib\site-packages\IPython\utils\docs.py | docs.py | Python | 86 | 0.65 | 0 | 0 | python-kit | 200 | 2024-06-05T09:07:26.901852 | Apache-2.0 | false | a9a567bf98c0643a601ebe169fd56999 |
# coding: utf-8\n"""\nUtilities for dealing with text encodings\n"""\n\n# -----------------------------------------------------------------------------\n# Copyright (C) 2008-2012 The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file COPYING, distributed as part of this software.\n# -----------------------------------------------------------------------------\n\n# -----------------------------------------------------------------------------\n# Imports\n# -----------------------------------------------------------------------------\nimport sys\nimport locale\nimport warnings\n\n\n# to deal with the possibility of sys.std* not being a stream at all\ndef get_stream_enc(stream, default=None):\n """Return the given stream's encoding or a default.\n\n There are cases where ``sys.std*`` might not actually be a stream, so\n check for the encoding attribute prior to returning it, and return\n a default if it doesn't exist or evaluates as False. ``default``\n is None if not provided.\n """\n if not hasattr(stream, "encoding") or not stream.encoding:\n return default\n else:\n return stream.encoding\n\n\n_sentinel = object()\n\n\n# Less conservative replacement for sys.getdefaultencoding, that will try\n# to match the environment.\n# Defined here as central function, so if we find better choices, we\n# won't need to make changes all over IPython.\ndef getdefaultencoding(prefer_stream=_sentinel):\n """Return IPython's guess for the default encoding for bytes as text.\n\n If prefer_stream is True (default), asks for stdin.encoding first,\n to match the calling Terminal, but that is often None for subprocesses.\n\n Then fall back on locale.getpreferredencoding(),\n which should be a sensible platform default (that respects LANG environment),\n and finally to sys.getdefaultencoding() which is the most conservative option,\n and usually UTF8 as of Python 3.\n """\n if prefer_stream is not _sentinel:\n warnings.warn(\n "getpreferredencoding(prefer_stream=) argument is deprecated since "\n "IPython 9.0, getdefaultencoding() will take no argument in the "\n "future. If you rely on `prefer_stream`, please open an issue on "\n "the IPython repo.",\n DeprecationWarning,\n stacklevel=2,\n )\n prefer_stream = True\n enc = None\n if prefer_stream:\n enc = get_stream_enc(sys.stdin)\n if not enc or enc == "ascii":\n try:\n # There are reports of getpreferredencoding raising errors\n # in some cases, which may well be fixed, but let's be conservative here.\n enc = locale.getpreferredencoding()\n except Exception:\n pass\n enc = enc or sys.getdefaultencoding()\n # On windows `cp0` can be returned to indicate that there is no code page.\n # Since cp0 is an invalid encoding return instead cp1252 which is the\n # Western European default.\n if enc == "cp0":\n warnings.warn(\n "Invalid code page cp0 detected - using cp1252 instead."\n "If cp1252 is incorrect please ensure a valid code page "\n "is defined for the process.",\n RuntimeWarning,\n )\n return "cp1252"\n return enc\n\n\nDEFAULT_ENCODING = getdefaultencoding()\n | .venv\Lib\site-packages\IPython\utils\encoding.py | encoding.py | Python | 3,332 | 0.95 | 0.235955 | 0.263158 | node-utils | 480 | 2025-04-15T14:10:36.905669 | GPL-3.0 | false | 1c27852d0284cc5bb9f3586942743334 |
from warnings import warn\n\nwarn("IPython.utils.eventful has moved to traitlets.eventful", stacklevel=2)\n\nfrom traitlets.eventful import *\n | .venv\Lib\site-packages\IPython\utils\eventful.py | eventful.py | Python | 138 | 0.85 | 0 | 0 | python-kit | 263 | 2024-10-07T17:12:49.772073 | BSD-3-Clause | false | 4cf4dae5f0d721032fc8f69fd6e6eed9 |
# encoding: utf-8\n"""Generic functions for extending IPython."""\n\nfrom IPython.core.error import TryNext\nfrom functools import singledispatch\n\n\n@singledispatch\ndef inspect_object(obj):\n """Called when you do obj?"""\n raise TryNext\n\n\n@singledispatch\ndef complete_object(obj, prev_completions):\n """Custom completer dispatching for python objects.\n\n Parameters\n ----------\n obj : object\n The object to complete.\n prev_completions : list\n List of attributes discovered so far.\n This should return the list of attributes in obj. If you only wish to\n add to the attributes already discovered normally, return\n own_attrs + prev_completions.\n """\n raise TryNext\n | .venv\Lib\site-packages\IPython\utils\generics.py | generics.py | Python | 705 | 0.95 | 0.142857 | 0.045455 | node-utils | 255 | 2025-02-20T09:57:28.920445 | GPL-3.0 | false | 98175d9d1aeff3041fda361e1b813913 |
# encoding: utf-8\n"""\nA simple utility to import something by its string name.\n"""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n\ndef import_item(name):\n """Import and return ``bar`` given the string ``foo.bar``.\n\n Calling ``bar = import_item("foo.bar")`` is the functional equivalent of\n executing the code ``from foo import bar``.\n\n Parameters\n ----------\n name : string\n The fully qualified name of the module/package being imported.\n\n Returns\n -------\n mod : module object\n The module that was imported.\n """\n\n parts = name.rsplit(".", 1)\n if len(parts) == 2:\n # called with 'foo.bar....'\n package, obj = parts\n module = __import__(package, fromlist=[obj])\n try:\n pak = getattr(module, obj)\n except AttributeError as e:\n raise ImportError("No module named %s" % obj) from e\n return pak\n else:\n # called with un-dotted string\n return __import__(parts[0])\n | .venv\Lib\site-packages\IPython\utils\importstring.py | importstring.py | Python | 1,046 | 0.95 | 0.076923 | 0.15625 | vue-tools | 587 | 2024-10-26T09:15:54.132582 | BSD-3-Clause | false | 7ae4db4a318588695a72a9e6ff9f627a |
# encoding: utf-8\n"""A dict subclass that supports attribute style access.\n\nAuthors:\n\n* Fernando Perez (original)\n* Brian Granger (refactoring to a dict subclass)\n"""\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2008-2011 The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file COPYING, distributed as part of this software.\n#-----------------------------------------------------------------------------\n\n#-----------------------------------------------------------------------------\n# Imports\n#-----------------------------------------------------------------------------\n\n__all__ = ['Struct']\n\n#-----------------------------------------------------------------------------\n# Code\n#-----------------------------------------------------------------------------\n\n\nclass Struct(dict):\n """A dict subclass with attribute style access.\n\n This dict subclass has a a few extra features:\n\n * Attribute style access.\n * Protection of class members (like keys, items) when using attribute\n style access.\n * The ability to restrict assignment to only existing keys.\n * Intelligent merging.\n * Overloaded operators.\n """\n _allownew = True\n def __init__(self, *args, **kw):\n """Initialize with a dictionary, another Struct, or data.\n\n Parameters\n ----------\n *args : dict, Struct\n Initialize with one dict or Struct\n **kw : dict\n Initialize with key, value pairs.\n\n Examples\n --------\n >>> s = Struct(a=10,b=30)\n >>> s.a\n 10\n >>> s.b\n 30\n >>> s2 = Struct(s,c=30)\n >>> sorted(s2.keys())\n ['a', 'b', 'c']\n """\n object.__setattr__(self, '_allownew', True)\n dict.__init__(self, *args, **kw)\n\n def __setitem__(self, key, value):\n """Set an item with check for allownew.\n\n Examples\n --------\n >>> s = Struct()\n >>> s['a'] = 10\n >>> s.allow_new_attr(False)\n >>> s['a'] = 10\n >>> s['a']\n 10\n >>> try:\n ... s['b'] = 20\n ... except KeyError:\n ... print('this is not allowed')\n ...\n this is not allowed\n """\n if not self._allownew and key not in self:\n raise KeyError(\n "can't create new attribute %s when allow_new_attr(False)" % key)\n dict.__setitem__(self, key, value)\n\n def __setattr__(self, key, value):\n """Set an attr with protection of class members.\n\n This calls :meth:`self.__setitem__` but convert :exc:`KeyError` to\n :exc:`AttributeError`.\n\n Examples\n --------\n >>> s = Struct()\n >>> s.a = 10\n >>> s.a\n 10\n >>> try:\n ... s.get = 10\n ... except AttributeError:\n ... print("you can't set a class member")\n ...\n you can't set a class member\n """\n # If key is an str it might be a class member or instance var\n if isinstance(key, str):\n # I can't simply call hasattr here because it calls getattr, which\n # calls self.__getattr__, which returns True for keys in\n # self._data. But I only want keys in the class and in\n # self.__dict__\n if key in self.__dict__ or hasattr(Struct, key):\n raise AttributeError(\n 'attr %s is a protected member of class Struct.' % key\n )\n try:\n self.__setitem__(key, value)\n except KeyError as e:\n raise AttributeError(e) from e\n\n def __getattr__(self, key):\n """Get an attr by calling :meth:`dict.__getitem__`.\n\n Like :meth:`__setattr__`, this method converts :exc:`KeyError` to\n :exc:`AttributeError`.\n\n Examples\n --------\n >>> s = Struct(a=10)\n >>> s.a\n 10\n >>> type(s.get)\n <...method'>\n >>> try:\n ... s.b\n ... except AttributeError:\n ... print("I don't have that key")\n ...\n I don't have that key\n """\n try:\n result = self[key]\n except KeyError as e:\n raise AttributeError(key) from e\n else:\n return result\n\n def __iadd__(self, other):\n """s += s2 is a shorthand for s.merge(s2).\n\n Examples\n --------\n >>> s = Struct(a=10,b=30)\n >>> s2 = Struct(a=20,c=40)\n >>> s += s2\n >>> sorted(s.keys())\n ['a', 'b', 'c']\n """\n self.merge(other)\n return self\n\n def __add__(self,other):\n """s + s2 -> New Struct made from s.merge(s2).\n\n Examples\n --------\n >>> s1 = Struct(a=10,b=30)\n >>> s2 = Struct(a=20,c=40)\n >>> s = s1 + s2\n >>> sorted(s.keys())\n ['a', 'b', 'c']\n """\n sout = self.copy()\n sout.merge(other)\n return sout\n\n def __sub__(self,other):\n """s1 - s2 -> remove keys in s2 from s1.\n\n Examples\n --------\n >>> s1 = Struct(a=10,b=30)\n >>> s2 = Struct(a=40)\n >>> s = s1 - s2\n >>> s\n {'b': 30}\n """\n sout = self.copy()\n sout -= other\n return sout\n\n def __isub__(self,other):\n """Inplace remove keys from self that are in other.\n\n Examples\n --------\n >>> s1 = Struct(a=10,b=30)\n >>> s2 = Struct(a=40)\n >>> s1 -= s2\n >>> s1\n {'b': 30}\n """\n for k in other.keys():\n if k in self:\n del self[k]\n return self\n\n def __dict_invert(self, data):\n """Helper function for merge.\n\n Takes a dictionary whose values are lists and returns a dict with\n the elements of each list as keys and the original keys as values.\n """\n outdict = {}\n for k,lst in data.items():\n if isinstance(lst, str):\n lst = lst.split()\n for entry in lst:\n outdict[entry] = k\n return outdict\n\n def dict(self):\n return self\n\n def copy(self):\n """Return a copy as a Struct.\n\n Examples\n --------\n >>> s = Struct(a=10,b=30)\n >>> s2 = s.copy()\n >>> type(s2) is Struct\n True\n """\n return Struct(dict.copy(self))\n\n def hasattr(self, key):\n """hasattr function available as a method.\n\n Implemented like has_key.\n\n Examples\n --------\n >>> s = Struct(a=10)\n >>> s.hasattr('a')\n True\n >>> s.hasattr('b')\n False\n >>> s.hasattr('get')\n False\n """\n return key in self\n\n def allow_new_attr(self, allow = True):\n """Set whether new attributes can be created in this Struct.\n\n This can be used to catch typos by verifying that the attribute user\n tries to change already exists in this Struct.\n """\n object.__setattr__(self, '_allownew', allow)\n\n def merge(self, __loc_data__=None, __conflict_solve=None, **kw):\n """Merge two Structs with customizable conflict resolution.\n\n This is similar to :meth:`update`, but much more flexible. First, a\n dict is made from data+key=value pairs. When merging this dict with\n the Struct S, the optional dictionary 'conflict' is used to decide\n what to do.\n\n If conflict is not given, the default behavior is to preserve any keys\n with their current value (the opposite of the :meth:`update` method's\n behavior).\n\n Parameters\n ----------\n __loc_data__ : dict, Struct\n The data to merge into self\n __conflict_solve : dict\n The conflict policy dict. The keys are binary functions used to\n resolve the conflict and the values are lists of strings naming\n the keys the conflict resolution function applies to. Instead of\n a list of strings a space separated string can be used, like\n 'a b c'.\n **kw : dict\n Additional key, value pairs to merge in\n\n Notes\n -----\n The `__conflict_solve` dict is a dictionary of binary functions which will be used to\n solve key conflicts. Here is an example::\n\n __conflict_solve = dict(\n func1=['a','b','c'],\n func2=['d','e']\n )\n\n In this case, the function :func:`func1` will be used to resolve\n keys 'a', 'b' and 'c' and the function :func:`func2` will be used for\n keys 'd' and 'e'. This could also be written as::\n\n __conflict_solve = dict(func1='a b c',func2='d e')\n\n These functions will be called for each key they apply to with the\n form::\n\n func1(self['a'], other['a'])\n\n The return value is used as the final merged value.\n\n As a convenience, merge() provides five (the most commonly needed)\n pre-defined policies: preserve, update, add, add_flip and add_s. The\n easiest explanation is their implementation::\n\n preserve = lambda old,new: old\n update = lambda old,new: new\n add = lambda old,new: old + new\n add_flip = lambda old,new: new + old # note change of order!\n add_s = lambda old,new: old + ' ' + new # only for str!\n\n You can use those four words (as strings) as keys instead\n of defining them as functions, and the merge method will substitute\n the appropriate functions for you.\n\n For more complicated conflict resolution policies, you still need to\n construct your own functions.\n\n Examples\n --------\n This show the default policy:\n\n >>> s = Struct(a=10,b=30)\n >>> s2 = Struct(a=20,c=40)\n >>> s.merge(s2)\n >>> sorted(s.items())\n [('a', 10), ('b', 30), ('c', 40)]\n\n Now, show how to specify a conflict dict:\n\n >>> s = Struct(a=10,b=30)\n >>> s2 = Struct(a=20,b=40)\n >>> conflict = {'update':'a','add':'b'}\n >>> s.merge(s2,conflict)\n >>> sorted(s.items())\n [('a', 20), ('b', 70)]\n """\n\n data_dict = dict(__loc_data__,**kw)\n\n # policies for conflict resolution: two argument functions which return\n # the value that will go in the new struct\n preserve = lambda old,new: old\n update = lambda old,new: new\n add = lambda old,new: old + new\n add_flip = lambda old,new: new + old # note change of order!\n add_s = lambda old,new: old + ' ' + new\n\n # default policy is to keep current keys when there's a conflict\n conflict_solve = dict.fromkeys(self, preserve)\n\n # the conflict_solve dictionary is given by the user 'inverted': we\n # need a name-function mapping, it comes as a function -> names\n # dict. Make a local copy (b/c we'll make changes), replace user\n # strings for the three builtin policies and invert it.\n if __conflict_solve:\n inv_conflict_solve_user = __conflict_solve.copy()\n for name, func in [('preserve',preserve), ('update',update),\n ('add',add), ('add_flip',add_flip),\n ('add_s',add_s)]:\n if name in inv_conflict_solve_user.keys():\n inv_conflict_solve_user[func] = inv_conflict_solve_user[name]\n del inv_conflict_solve_user[name]\n conflict_solve.update(self.__dict_invert(inv_conflict_solve_user))\n for key in data_dict:\n if key not in self:\n self[key] = data_dict[key]\n else:\n self[key] = conflict_solve[key](self[key],data_dict[key])\n\n | .venv\Lib\site-packages\IPython\utils\ipstruct.py | ipstruct.py | Python | 11,856 | 0.95 | 0.153034 | 0.11041 | node-utils | 158 | 2024-02-22T06:01:53.040117 | MIT | false | 4ba2cb6559044006c459e9e58322935e |
from warnings import warn\n\nwarn("IPython.utils.jsonutil has moved to jupyter_client.jsonutil", stacklevel=2)\n\nfrom jupyter_client.jsonutil import *\n | .venv\Lib\site-packages\IPython\utils\jsonutil.py | jsonutil.py | Python | 148 | 0.85 | 0 | 0 | vue-tools | 495 | 2023-08-18T13:19:52.696285 | GPL-3.0 | false | e0f42149ac70ba807ff20a614e919862 |
from warnings import warn\n\nwarn("IPython.utils.log has moved to traitlets.log", stacklevel=2)\n\nfrom traitlets.log import *\n | .venv\Lib\site-packages\IPython\utils\log.py | log.py | Python | 123 | 0.85 | 0 | 0 | node-utils | 46 | 2024-12-04T17:03:53.222909 | MIT | false | db43ac6cba825d9f5789b3746a7d090c |
"""Utility functions for finding modules\n\nUtility functions for finding modules on sys.path.\n\n"""\n#-----------------------------------------------------------------------------\n# Copyright (c) 2011, the IPython Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the file COPYING.txt, distributed with this software.\n#-----------------------------------------------------------------------------\n\n#-----------------------------------------------------------------------------\n# Imports\n#-----------------------------------------------------------------------------\n\n# Stdlib imports\nimport importlib\nimport sys\n\n# Third-party imports\n\n# Our own imports\n\n\n#-----------------------------------------------------------------------------\n# Globals and constants\n#-----------------------------------------------------------------------------\n\n#-----------------------------------------------------------------------------\n# Local utilities\n#-----------------------------------------------------------------------------\n\n#-----------------------------------------------------------------------------\n# Classes and functions\n#-----------------------------------------------------------------------------\n\ndef find_mod(module_name):\n """\n Find module `module_name` on sys.path, and return the path to module `module_name`.\n\n * If `module_name` refers to a module directory, then return path to `__init__` file.\n * If `module_name` is a directory without an __init__file, return None.\n\n * If module is missing or does not have a `.py` or `.pyw` extension, return None.\n * Note that we are not interested in running bytecode.\n\n * Otherwise, return the fill path of the module.\n\n Parameters\n ----------\n module_name : str\n\n Returns\n -------\n module_path : str\n Path to module `module_name`, its __init__.py, or None,\n depending on above conditions.\n """\n spec = importlib.util.find_spec(module_name)\n module_path = spec.origin\n if module_path is None:\n if spec.loader in sys.meta_path:\n return spec.loader\n return None\n else:\n split_path = module_path.split(".")\n if split_path[-1] in ["py", "pyw"]:\n return module_path\n else:\n return None\n | .venv\Lib\site-packages\IPython\utils\module_paths.py | module_paths.py | Python | 2,327 | 0.95 | 0.083333 | 0.482143 | vue-tools | 398 | 2024-01-09T12:19:12.544720 | BSD-3-Clause | false | 14d45acd799c8e93415f2200d4a96ab5 |
"""\nTools to open .py files as Unicode, using the encoding specified within the file,\nas per PEP 263.\n\nMuch of the code is taken from the tokenize module in Python 3.2.\n"""\n\nimport io\nfrom io import TextIOWrapper, BytesIO\nfrom pathlib import Path\nimport re\nfrom tokenize import open, detect_encoding\n\ncookie_re = re.compile(r"coding[:=]\s*([-\w.]+)", re.UNICODE)\ncookie_comment_re = re.compile(r"^\s*#.*coding[:=]\s*([-\w.]+)", re.UNICODE)\n\ndef source_to_unicode(txt, errors='replace', skip_encoding_cookie=True):\n """Converts a bytes string with python source code to unicode.\n\n Unicode strings are passed through unchanged. Byte strings are checked\n for the python source file encoding cookie to determine encoding.\n txt can be either a bytes buffer or a string containing the source\n code.\n """\n if isinstance(txt, str):\n return txt\n if isinstance(txt, bytes):\n buffer = BytesIO(txt)\n else:\n buffer = txt\n try:\n encoding, _ = detect_encoding(buffer.readline)\n except SyntaxError:\n encoding = "ascii"\n buffer.seek(0)\n with TextIOWrapper(buffer, encoding, errors=errors, line_buffering=True) as text:\n text.mode = 'r'\n if skip_encoding_cookie:\n return u"".join(strip_encoding_cookie(text))\n else:\n return text.read()\n\ndef strip_encoding_cookie(filelike):\n """Generator to pull lines from a text-mode file, skipping the encoding\n cookie if it is found in the first two lines.\n """\n it = iter(filelike)\n try:\n first = next(it)\n if not cookie_comment_re.match(first):\n yield first\n second = next(it)\n if not cookie_comment_re.match(second):\n yield second\n except StopIteration:\n return\n \n yield from it\n\ndef read_py_file(filename, skip_encoding_cookie=True):\n """Read a Python file, using the encoding declared inside the file.\n\n Parameters\n ----------\n filename : str\n The path to the file to read.\n skip_encoding_cookie : bool\n If True (the default), and the encoding declaration is found in the first\n two lines, that line will be excluded from the output.\n\n Returns\n -------\n A unicode string containing the contents of the file.\n """\n filepath = Path(filename)\n with open(filepath) as f: # the open function defined in this module.\n if skip_encoding_cookie:\n return "".join(strip_encoding_cookie(f))\n else:\n return f.read()\n\ndef read_py_url(url, errors='replace', skip_encoding_cookie=True):\n """Read a Python file from a URL, using the encoding declared inside the file.\n\n Parameters\n ----------\n url : str\n The URL from which to fetch the file.\n errors : str\n How to handle decoding errors in the file. Options are the same as for\n bytes.decode(), but here 'replace' is the default.\n skip_encoding_cookie : bool\n If True (the default), and the encoding declaration is found in the first\n two lines, that line will be excluded from the output.\n\n Returns\n -------\n A unicode string containing the contents of the file.\n """\n # Deferred import for faster start\n from urllib.request import urlopen \n response = urlopen(url)\n buffer = io.BytesIO(response.read())\n return source_to_unicode(buffer, errors, skip_encoding_cookie)\n | .venv\Lib\site-packages\IPython\utils\openpy.py | openpy.py | Python | 3,396 | 0.95 | 0.163462 | 0.010989 | node-utils | 891 | 2025-03-22T01:01:19.647103 | MIT | false | 2c63a47bca552cf49769f0906bb6e471 |
# encoding: utf-8\n"""\nUtilities for path handling.\n"""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\nimport sys\nimport errno\nimport shutil\nimport random\nimport glob\nimport warnings\n\nfrom IPython.utils.process import system\n\n#-----------------------------------------------------------------------------\n# Code\n#-----------------------------------------------------------------------------\nfs_encoding = sys.getfilesystemencoding()\n\ndef _writable_dir(path):\n """Whether `path` is a directory, to which the user has write access."""\n return os.path.isdir(path) and os.access(path, os.W_OK)\n\nif sys.platform == 'win32':\n def _get_long_path_name(path):\n """Get a long path name (expand ~) on Windows using ctypes.\n\n Examples\n --------\n\n >>> get_long_path_name('c:\\\\docume~1')\n 'c:\\\\Documents and Settings'\n\n """\n try:\n import ctypes\n except ImportError as e: \n raise ImportError('you need to have ctypes installed for this to work') from e\n _GetLongPathName = ctypes.windll.kernel32.GetLongPathNameW\n _GetLongPathName.argtypes = [ctypes.c_wchar_p, ctypes.c_wchar_p,\n ctypes.c_uint ]\n\n buf = ctypes.create_unicode_buffer(260)\n rv = _GetLongPathName(path, buf, 260)\n if rv == 0 or rv > 260:\n return path\n else:\n return buf.value\nelse:\n def _get_long_path_name(path):\n """Dummy no-op."""\n return path\n\n\n\ndef get_long_path_name(path):\n """Expand a path into its long form.\n\n On Windows this expands any ~ in the paths. On other platforms, it is\n a null operation.\n """\n return _get_long_path_name(path)\n\n\ndef compress_user(path: str) -> str:\n """Reverse of :func:`os.path.expanduser`"""\n home = os.path.expanduser("~")\n if path.startswith(home):\n path = "~" + path[len(home):]\n return path\n\ndef get_py_filename(name):\n """Return a valid python filename in the current directory.\n\n If the given name is not a file, it adds '.py' and searches again.\n Raises IOError with an informative message if the file isn't found.\n """\n\n name = os.path.expanduser(name)\n if os.path.isfile(name):\n return name\n if not name.endswith(".py"):\n py_name = name + ".py"\n if os.path.isfile(py_name):\n return py_name\n raise IOError("File `%r` not found." % name)\n\n\ndef filefind(filename: str, path_dirs=None) -> str:\n """Find a file by looking through a sequence of paths.\n\n This iterates through a sequence of paths looking for a file and returns\n the full, absolute path of the first occurrence of the file. If no set of\n path dirs is given, the filename is tested as is, after running through\n :func:`expandvars` and :func:`expanduser`. Thus a simple call::\n\n filefind('myfile.txt')\n\n will find the file in the current working dir, but::\n\n filefind('~/myfile.txt')\n\n Will find the file in the users home directory. This function does not\n automatically try any paths, such as the cwd or the user's home directory.\n\n Parameters\n ----------\n filename : str\n The filename to look for.\n path_dirs : str, None or sequence of str\n The sequence of paths to look for the file in. If None, the filename\n need to be absolute or be in the cwd. If a string, the string is\n put into a sequence and the searched. If a sequence, walk through\n each element and join with ``filename``, calling :func:`expandvars`\n and :func:`expanduser` before testing for existence.\n\n Returns\n -------\n path : str\n returns absolute path to file.\n\n Raises\n ------\n IOError\n """\n\n # If paths are quoted, abspath gets confused, strip them...\n filename = filename.strip('"').strip("'")\n # If the input is an absolute path, just check it exists\n if os.path.isabs(filename) and os.path.isfile(filename):\n return filename\n\n if path_dirs is None:\n path_dirs = ("",)\n elif isinstance(path_dirs, str):\n path_dirs = (path_dirs,)\n\n for path in path_dirs:\n if path == '.': path = os.getcwd()\n testname = expand_path(os.path.join(path, filename))\n if os.path.isfile(testname):\n return os.path.abspath(testname)\n\n raise IOError("File %r does not exist in any of the search paths: %r" %\n (filename, path_dirs) )\n\n\nclass HomeDirError(Exception):\n pass\n\n\ndef get_home_dir(require_writable=False) -> str:\n """Return the 'home' directory, as a unicode string.\n\n Uses os.path.expanduser('~'), and checks for writability.\n\n See stdlib docs for how this is determined.\n For Python <3.8, $HOME is first priority on *ALL* platforms.\n For Python >=3.8 on Windows, %HOME% is no longer considered.\n\n Parameters\n ----------\n require_writable : bool [default: False]\n if True:\n guarantees the return value is a writable directory, otherwise\n raises HomeDirError\n if False:\n The path is resolved, but it is not guaranteed to exist or be writable.\n """\n\n homedir = os.path.expanduser('~')\n # Next line will make things work even when /home/ is a symlink to\n # /usr/home as it is on FreeBSD, for example\n homedir = os.path.realpath(homedir)\n\n if not _writable_dir(homedir) and os.name == 'nt':\n # expanduser failed, use the registry to get the 'My Documents' folder.\n try:\n import winreg as wreg\n with wreg.OpenKey(\n wreg.HKEY_CURRENT_USER,\n r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"\n ) as key:\n homedir = wreg.QueryValueEx(key,'Personal')[0]\n except:\n pass\n\n if (not require_writable) or _writable_dir(homedir):\n assert isinstance(homedir, str), "Homedir should be unicode not bytes"\n return homedir\n else:\n raise HomeDirError('%s is not a writable dir, '\n 'set $HOME environment variable to override' % homedir)\n\ndef get_xdg_dir():\n """Return the XDG_CONFIG_HOME, if it is defined and exists, else None.\n\n This is only for non-OS X posix (Linux,Unix,etc.) systems.\n """\n\n env = os.environ\n\n if os.name == "posix":\n # Linux, Unix, AIX, etc.\n # use ~/.config if empty OR not set\n xdg = env.get("XDG_CONFIG_HOME", None) or os.path.join(get_home_dir(), '.config')\n if xdg and _writable_dir(xdg):\n assert isinstance(xdg, str)\n return xdg\n\n return None\n\n\ndef get_xdg_cache_dir():\n """Return the XDG_CACHE_HOME, if it is defined and exists, else None.\n\n This is only for non-OS X posix (Linux,Unix,etc.) systems.\n """\n\n env = os.environ\n\n if os.name == "posix":\n # Linux, Unix, AIX, etc.\n # use ~/.cache if empty OR not set\n xdg = env.get("XDG_CACHE_HOME", None) or os.path.join(get_home_dir(), '.cache')\n if xdg and _writable_dir(xdg):\n assert isinstance(xdg, str)\n return xdg\n\n return None\n\n\ndef expand_path(s):\n """Expand $VARS and ~names in a string, like a shell\n\n :Examples:\n\n In [2]: os.environ['FOO']='test'\n\n In [3]: expand_path('variable FOO is $FOO')\n Out[3]: 'variable FOO is test'\n """\n # This is a pretty subtle hack. When expand user is given a UNC path\n # on Windows (\\server\share$\%username%), os.path.expandvars, removes\n # the $ to get (\\server\share\%username%). I think it considered $\n # alone an empty var. But, we need the $ to remains there (it indicates\n # a hidden share).\n if os.name=='nt':\n s = s.replace('$\\', 'IPYTHON_TEMP')\n s = os.path.expandvars(os.path.expanduser(s))\n if os.name=='nt':\n s = s.replace('IPYTHON_TEMP', '$\\')\n return s\n\n\ndef unescape_glob(string):\n """Unescape glob pattern in `string`."""\n def unescape(s):\n for pattern in '*[]!?':\n s = s.replace(r'\{0}'.format(pattern), pattern)\n return s\n return '\\'.join(map(unescape, string.split('\\\\')))\n\n\ndef shellglob(args):\n """\n Do glob expansion for each element in `args` and return a flattened list.\n\n Unmatched glob pattern will remain as-is in the returned list.\n\n """\n expanded = []\n # Do not unescape backslash in Windows as it is interpreted as\n # path separator:\n unescape = unescape_glob if sys.platform != 'win32' else lambda x: x\n for a in args:\n expanded.extend(glob.glob(a) or [unescape(a)])\n return expanded\n\nENOLINK = 1998\n\ndef link(src, dst):\n """Hard links ``src`` to ``dst``, returning 0 or errno.\n\n Note that the special errno ``ENOLINK`` will be returned if ``os.link`` isn't\n supported by the operating system.\n """\n\n if not hasattr(os, "link"):\n return ENOLINK\n link_errno = 0\n try:\n os.link(src, dst)\n except OSError as e:\n link_errno = e.errno\n return link_errno\n\n\ndef link_or_copy(src, dst):\n """Attempts to hardlink ``src`` to ``dst``, copying if the link fails.\n\n Attempts to maintain the semantics of ``shutil.copy``.\n\n Because ``os.link`` does not overwrite files, a unique temporary file\n will be used if the target already exists, then that file will be moved\n into place.\n """\n\n if os.path.isdir(dst):\n dst = os.path.join(dst, os.path.basename(src))\n\n link_errno = link(src, dst)\n if link_errno == errno.EEXIST:\n if os.stat(src).st_ino == os.stat(dst).st_ino:\n # dst is already a hard link to the correct file, so we don't need\n # to do anything else. If we try to link and rename the file\n # anyway, we get duplicate files - see http://bugs.python.org/issue21876\n return\n\n new_dst = dst + "-temp-%04X" %(random.randint(1, 16**4), )\n try:\n link_or_copy(src, new_dst)\n except:\n try:\n os.remove(new_dst)\n except OSError:\n pass\n raise\n os.rename(new_dst, dst)\n elif link_errno != 0:\n # Either link isn't supported, or the filesystem doesn't support\n # linking, or 'src' and 'dst' are on different filesystems.\n shutil.copy(src, dst)\n\ndef ensure_dir_exists(path, mode=0o755):\n """ensure that a directory exists\n\n If it doesn't exist, try to create it and protect against a race condition\n if another process is doing the same.\n\n The default permissions are 755, which differ from os.makedirs default of 777.\n """\n if not os.path.exists(path):\n try:\n os.makedirs(path, mode=mode)\n except OSError as e:\n if e.errno != errno.EEXIST:\n raise\n elif not os.path.isdir(path):\n raise IOError("%r exists but is not a directory" % path)\n | .venv\Lib\site-packages\IPython\utils\path.py | path.py | Python | 10,902 | 0.95 | 0.223164 | 0.098182 | react-lib | 284 | 2025-06-21T05:47:15.042619 | Apache-2.0 | false | 57964977cf862d9ef9052e9cc4070088 |
# encoding: utf-8\n"""\nUtilities for working with external processes.\n"""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n\nimport os\nimport shutil\nimport sys\n\nif sys.platform == 'win32':\n from ._process_win32 import system, getoutput, arg_split, check_pid\nelif sys.platform == 'cli':\n from ._process_cli import system, getoutput, arg_split, check_pid\nelif sys.platform == "emscripten":\n from ._process_emscripten import system, getoutput, arg_split, check_pid\nelse:\n from ._process_posix import system, getoutput, arg_split, check_pid\n\nfrom ._process_common import getoutputerror, get_output_error_code, process_handler\n\n\nclass FindCmdError(Exception):\n pass\n\n\ndef find_cmd(cmd):\n """Find absolute path to executable cmd in a cross platform manner.\n\n This function tries to determine the full path to a command line program\n using `which` on Unix/Linux/OS X and `win32api` on Windows. Most of the\n time it will use the version that is first on the users `PATH`.\n\n Warning, don't use this to find IPython command line programs as there\n is a risk you will find the wrong one. Instead find those using the\n following code and looking for the application itself::\n\n import sys\n argv = [sys.executable, '-m', 'IPython']\n\n Parameters\n ----------\n cmd : str\n The command line program to look for.\n """\n path = shutil.which(cmd)\n if path is None:\n raise FindCmdError('command could not be found: %s' % cmd)\n return path\n\n\ndef abbrev_cwd():\n """ Return abbreviated version of cwd, e.g. d:mydir """\n cwd = os.getcwd().replace('\\','/')\n drivepart = ''\n tail = cwd\n if sys.platform == 'win32':\n if len(cwd) < 4:\n return cwd\n drivepart,tail = os.path.splitdrive(cwd)\n\n\n parts = tail.split('/')\n if len(parts) > 2:\n tail = '/'.join(parts[-2:])\n\n return (drivepart + (\n cwd == '/' and '/' or tail))\n | .venv\Lib\site-packages\IPython\utils\process.py | process.py | Python | 1,990 | 0.95 | 0.169014 | 0.056604 | vue-tools | 388 | 2025-04-30T00:38:53.924879 | MIT | false | 400ec9821790378fb292cd6be3792277 |
"""Sentinel class for constants with useful reprs"""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n\nclass Sentinel:\n def __init__(self, name, module, docstring=None):\n self.name = name\n self.module = module\n if docstring:\n self.__doc__ = docstring\n\n def __repr__(self):\n return str(self.module) + "." + self.name\n | .venv\Lib\site-packages\IPython\utils\sentinel.py | sentinel.py | Python | 415 | 0.95 | 0.4 | 0.181818 | vue-tools | 566 | 2024-03-01T16:13:02.782667 | MIT | false | 3709aa7e46790967fcd66fd0cc185058 |
"""String dispatch class to match regexps and dispatch commands.\n"""\n\n# Stdlib imports\nimport re\n\n# Our own modules\nfrom IPython.core.hooks import CommandChainDispatcher\n\n# Code begins\nclass StrDispatch:\n """Dispatch (lookup) a set of strings / regexps for match.\n\n Example:\n\n >>> dis = StrDispatch()\n >>> dis.add_s('hei',34, priority = 4)\n >>> dis.add_s('hei',123, priority = 2)\n >>> dis.add_re('h.i', 686)\n >>> print(list(dis.flat_matches('hei')))\n [123, 34, 686]\n """\n\n def __init__(self):\n self.strs = {}\n self.regexs = {}\n\n def add_s(self, s, obj, priority= 0 ):\n """ Adds a target 'string' for dispatching """\n\n chain = self.strs.get(s, CommandChainDispatcher())\n chain.add(obj,priority)\n self.strs[s] = chain\n\n def add_re(self, regex, obj, priority= 0 ):\n """ Adds a target regexp for dispatching """\n\n chain = self.regexs.get(regex, CommandChainDispatcher())\n chain.add(obj,priority)\n self.regexs[regex] = chain\n\n def dispatch(self, key):\n """ Get a seq of Commandchain objects that match key """\n if key in self.strs:\n yield self.strs[key]\n\n for r, obj in self.regexs.items():\n if re.match(r, key):\n yield obj\n else:\n # print("nomatch",key) # dbg\n pass\n\n def __repr__(self):\n return "<Strdispatch %s, %s>" % (self.strs, self.regexs)\n\n def s_matches(self, key):\n if key not in self.strs:\n return\n for el in self.strs[key]:\n yield el[1]\n\n def flat_matches(self, key):\n """ Yield all 'value' targets, without priority """\n for val in self.dispatch(key):\n for el in val:\n yield el[1] # only value, no priority\n return\n | .venv\Lib\site-packages\IPython\utils\strdispatch.py | strdispatch.py | Python | 1,832 | 0.95 | 0.279412 | 0.075472 | react-lib | 299 | 2025-06-20T01:15:00.370761 | MIT | false | 6cbcb819f891b1e250da6e96183f6f17 |
import sys\nimport warnings\n\n\nclass prepended_to_syspath:\n """A context for prepending a directory to sys.path for a second."""\n\n def __init__(self, dir):\n self.dir = dir\n\n def __enter__(self):\n if self.dir not in sys.path:\n sys.path.insert(0, self.dir)\n self.added = True\n else:\n self.added = False\n\n def __exit__(self, type, value, traceback):\n if self.added:\n try:\n sys.path.remove(self.dir)\n except ValueError:\n pass\n # Returning False causes any exceptions to be re-raised.\n return False\n | .venv\Lib\site-packages\IPython\utils\syspathcontext.py | syspathcontext.py | Python | 631 | 0.95 | 0.36 | 0.05 | react-lib | 321 | 2024-01-10T14:51:22.252108 | BSD-3-Clause | false | d59e8fdce427424dfab770ae8261295b |
"""This module contains classes - NamedFileInTemporaryDirectory, TemporaryWorkingDirectory.\n\nThese classes add extra features such as creating a named file in temporary directory and\ncreating a context manager for the working directory which is also temporary.\n"""\n\nimport os as _os\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\n\n\nclass NamedFileInTemporaryDirectory:\n def __init__(self, filename, mode, bufsize=-1, add_to_syspath=False, **kwds):\n """\n Open a file named `filename` in a temporary directory.\n\n This context manager is preferred over `NamedTemporaryFile` in\n stdlib `tempfile` when one needs to reopen the file.\n\n Arguments `mode` and `bufsize` are passed to `open`.\n Rest of the arguments are passed to `TemporaryDirectory`.\n\n """\n self._tmpdir = TemporaryDirectory(**kwds)\n path = Path(self._tmpdir.name) / filename\n encoding = None if "b" in mode else "utf-8"\n self.file = open(path, mode, bufsize, encoding=encoding)\n\n def cleanup(self):\n self.file.close()\n self._tmpdir.cleanup()\n\n __del__ = cleanup\n\n def __enter__(self):\n return self.file\n\n def __exit__(self, type, value, traceback):\n self.cleanup()\n\n\nclass TemporaryWorkingDirectory(TemporaryDirectory):\n """\n Creates a temporary directory and sets the cwd to that directory.\n Automatically reverts to previous cwd upon cleanup.\n Usage example:\n\n with TemporaryWorkingDirectory() as tmpdir:\n ...\n """\n\n def __enter__(self):\n self.old_wd = Path.cwd()\n _os.chdir(self.name)\n return super(TemporaryWorkingDirectory, self).__enter__()\n\n def __exit__(self, exc, value, tb):\n _os.chdir(self.old_wd)\n return super(TemporaryWorkingDirectory, self).__exit__(exc, value, tb)\n | .venv\Lib\site-packages\IPython\utils\tempdir.py | tempdir.py | Python | 1,852 | 0.85 | 0.169492 | 0 | awesome-app | 769 | 2024-11-14T12:08:54.321974 | GPL-3.0 | false | 3dd35cc35804b6ab200fdec01f808e2c |
# encoding: utf-8\n"""\nUtilities for timing code execution.\n"""\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2008-2011 The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file COPYING, distributed as part of this software.\n#-----------------------------------------------------------------------------\n\n#-----------------------------------------------------------------------------\n# Imports\n#-----------------------------------------------------------------------------\n\nimport time\n\n#-----------------------------------------------------------------------------\n# Code\n#-----------------------------------------------------------------------------\n\n# If possible (Unix), use the resource module instead of time.clock()\ntry:\n import resource\nexcept ModuleNotFoundError:\n resource = None # type: ignore [assignment]\n\n# Some implementations (like jyputerlite) don't have getrusage\nif resource is not None and hasattr(resource, "getrusage"):\n def clocku():\n """clocku() -> floating point number\n\n Return the *USER* CPU time in seconds since the start of the process.\n This is done via a call to resource.getrusage, so it avoids the\n wraparound problems in time.clock()."""\n\n return resource.getrusage(resource.RUSAGE_SELF)[0]\n\n def clocks():\n """clocks() -> floating point number\n\n Return the *SYSTEM* CPU time in seconds since the start of the process.\n This is done via a call to resource.getrusage, so it avoids the\n wraparound problems in time.clock()."""\n\n return resource.getrusage(resource.RUSAGE_SELF)[1]\n\n def clock():\n """clock() -> floating point number\n\n Return the *TOTAL USER+SYSTEM* CPU time in seconds since the start of\n the process. This is done via a call to resource.getrusage, so it\n avoids the wraparound problems in time.clock()."""\n\n u,s = resource.getrusage(resource.RUSAGE_SELF)[:2]\n return u+s\n\n def clock2():\n """clock2() -> (t_user,t_system)\n\n Similar to clock(), but return a tuple of user/system times."""\n return resource.getrusage(resource.RUSAGE_SELF)[:2]\n\nelse:\n # There is no distinction of user/system time under windows, so we just use\n # time.process_time() for everything...\n clocku = clocks = clock = time.process_time\n\n def clock2():\n """Under windows, system CPU time can't be measured.\n\n This just returns process_time() and zero."""\n return time.process_time(), 0.0\n\n \ndef timings_out(reps,func,*args,**kw):\n """timings_out(reps,func,*args,**kw) -> (t_total,t_per_call,output)\n\n Execute a function reps times, return a tuple with the elapsed total\n CPU time in seconds, the time per call and the function's output.\n\n Under Unix, the return value is the sum of user+system time consumed by\n the process, computed via the resource module. This prevents problems\n related to the wraparound effect which the time.clock() function has.\n\n Under Windows the return value is in wall clock seconds. See the\n documentation for the time module for more details."""\n\n reps = int(reps)\n assert reps >=1, 'reps must be >= 1'\n if reps==1:\n start = clock()\n out = func(*args,**kw)\n tot_time = clock()-start\n else:\n rng = range(reps-1) # the last time is executed separately to store output\n start = clock()\n for dummy in rng: func(*args,**kw)\n out = func(*args,**kw) # one last time\n tot_time = clock()-start\n av_time = tot_time / reps\n return tot_time,av_time,out\n\n\ndef timings(reps,func,*args,**kw):\n """timings(reps,func,*args,**kw) -> (t_total,t_per_call)\n\n Execute a function reps times, return a tuple with the elapsed total CPU\n time in seconds and the time per call. These are just the first two values\n in timings_out()."""\n\n return timings_out(reps,func,*args,**kw)[0:2]\n\n\ndef timing(func,*args,**kw):\n """timing(func,*args,**kw) -> t_total\n\n Execute a function once, return the elapsed total CPU time in\n seconds. This is just the first value in timings_out()."""\n\n return timings_out(1,func,*args,**kw)[0]\n\n | .venv\Lib\site-packages\IPython\utils\timing.py | timing.py | Python | 4,275 | 0.95 | 0.170732 | 0.191011 | python-kit | 914 | 2025-01-19T12:27:46.133907 | MIT | false | cc0a53daa19b148a2d0dd834e359a447 |
"""Token-related utilities"""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\nfrom __future__ import annotations\n\nimport itertools\nimport tokenize\nfrom io import StringIO\nfrom keyword import iskeyword\nfrom tokenize import TokenInfo\nfrom typing import Generator, NamedTuple\n\n\nclass Token(NamedTuple):\n token: int\n text: str\n start: int\n end: int\n line: str\n\n\ndef generate_tokens(readline) -> Generator[TokenInfo, None, None]:\n """wrap generate_tkens to catch EOF errors"""\n try:\n yield from tokenize.generate_tokens(readline)\n except tokenize.TokenError:\n # catch EOF error\n return\n\n\ndef generate_tokens_catch_errors(\n readline, extra_errors_to_catch: list[str] | None = None\n):\n default_errors_to_catch = [\n "unterminated string literal",\n "invalid non-printable character",\n "after line continuation character",\n ]\n assert extra_errors_to_catch is None or isinstance(extra_errors_to_catch, list)\n errors_to_catch = default_errors_to_catch + (extra_errors_to_catch or [])\n\n tokens: list[TokenInfo] = []\n try:\n for token in tokenize.generate_tokens(readline):\n tokens.append(token)\n yield token\n except tokenize.TokenError as exc:\n if any(error in exc.args[0] for error in errors_to_catch):\n if tokens:\n start = tokens[-1].start[0], tokens[-1].end[0]\n end = start\n line = tokens[-1].line\n else:\n start = end = (1, 0)\n line = ""\n yield TokenInfo(tokenize.ERRORTOKEN, "", start, end, line)\n else:\n # Catch EOF\n raise\n\n\ndef line_at_cursor(cell: str, cursor_pos: int = 0) -> tuple[str, int]:\n """Return the line in a cell at a given cursor position\n\n Used for calling line-based APIs that don't support multi-line input, yet.\n\n Parameters\n ----------\n cell : str\n multiline block of text\n cursor_pos : integer\n the cursor position\n\n Returns\n -------\n (line, offset): (string, integer)\n The line with the current cursor, and the character offset of the start of the line.\n """\n offset = 0\n lines = cell.splitlines(True)\n for line in lines:\n next_offset = offset + len(line)\n if not line.endswith("\n"):\n # If the last line doesn't have a trailing newline, treat it as if\n # it does so that the cursor at the end of the line still counts\n # as being on that line.\n next_offset += 1\n if next_offset > cursor_pos:\n break\n offset = next_offset\n else:\n line = ""\n return line, offset\n\n\ndef token_at_cursor(cell: str, cursor_pos: int = 0) -> str:\n """Get the token at a given cursor\n\n Used for introspection.\n\n Function calls are prioritized, so the token for the callable will be returned\n if the cursor is anywhere inside the call.\n\n Parameters\n ----------\n cell : str\n A block of Python code\n cursor_pos : int\n The location of the cursor in the block where the token should be found\n """\n names: list[str] = []\n call_names: list[str] = []\n closing_call_name: str | None = None\n most_recent_outer_name: str | None = None\n\n offsets = {1: 0} # lines start at 1\n intersects_with_cursor = False\n cur_token_is_name = False\n tokens: list[Token | None] = [\n Token(*tup) for tup in generate_tokens(StringIO(cell).readline)\n ]\n if not tokens:\n return ""\n for prev_tok, (tok, next_tok) in zip(\n [None] + tokens, itertools.pairwise(tokens + [None])\n ):\n # token, text, start, end, line = tup\n start_line, start_col = tok.start\n end_line, end_col = tok.end\n if end_line + 1 not in offsets:\n # keep track of offsets for each line\n lines = tok.line.splitlines(True)\n for lineno, line in enumerate(lines, start_line + 1):\n if lineno not in offsets:\n offsets[lineno] = offsets[lineno - 1] + len(line)\n\n closing_call_name = None\n\n offset = offsets[start_line]\n if offset + start_col > cursor_pos:\n # current token starts after the cursor,\n # don't consume it\n break\n\n if cur_token_is_name := tok.token == tokenize.NAME and not iskeyword(tok.text):\n if (\n names\n and prev_tok\n and prev_tok.token == tokenize.OP\n and prev_tok.text == "."\n ):\n names[-1] = "%s.%s" % (names[-1], tok.text)\n else:\n names.append(tok.text)\n if (\n next_tok is not None\n and next_tok.token == tokenize.OP\n and next_tok.text == "="\n ):\n # don't inspect the lhs of an assignment\n names.pop(-1)\n cur_token_is_name = False\n if not call_names:\n most_recent_outer_name = names[-1] if names else None\n elif tok.token == tokenize.OP:\n if tok.text == "(" and names:\n # if we are inside a function call, inspect the function\n call_names.append(names[-1])\n elif tok.text == ")" and call_names:\n # keep track of the most recently popped call_name from the stack\n closing_call_name = call_names.pop(-1)\n\n if offsets[end_line] + end_col > cursor_pos:\n # we found the cursor, stop reading\n # if the current token intersects directly, use it instead of the call token\n intersects_with_cursor = offsets[start_line] + start_col <= cursor_pos\n break\n\n if cur_token_is_name and intersects_with_cursor:\n return names[-1]\n # if the cursor isn't directly over a name token, use the most recent\n # call name if we can find one\n elif closing_call_name:\n # if we're on a ")", use the most recently popped call name\n return closing_call_name\n elif call_names:\n # otherwise, look for the most recent call name in the stack\n return call_names[-1]\n elif most_recent_outer_name:\n # if we've popped all the call names, use the most recently-seen\n # outer name\n return most_recent_outer_name\n elif names:\n # failing that, use the most recently seen name\n return names[-1]\n else:\n # give up\n return ""\n | .venv\Lib\site-packages\IPython\utils\tokenutil.py | tokenutil.py | Python | 6,552 | 0.95 | 0.231156 | 0.137931 | node-utils | 594 | 2025-03-18T21:54:13.259074 | BSD-3-Clause | false | fd7c6aefaed3ced17a5af39a931cb9a3 |
# GENERATED BY setup.py\ncommit = "67f7d8b8b"\n | .venv\Lib\site-packages\IPython\utils\_sysinfo.py | _sysinfo.py | Python | 45 | 0.6 | 0 | 0.5 | python-kit | 383 | 2024-07-10T18:56:57.717770 | Apache-2.0 | false | bf54f3f5b88818f1ea507702a53ec693 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\capture.cpython-313.pyc | capture.cpython-313.pyc | Other | 8,318 | 0.95 | 0.054795 | 0 | react-lib | 803 | 2024-08-01T06:06:09.049418 | BSD-3-Clause | false | 5089205a38de1ec4bb6f3ea3f41ceaae |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\coloransi.cpython-313.pyc | coloransi.cpython-313.pyc | Other | 462 | 0.7 | 0 | 0 | python-kit | 738 | 2024-10-28T10:47:36.476585 | GPL-3.0 | false | 7d19606c2b6a5cf2cd53ff8f824567c0 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\contexts.cpython-313.pyc | contexts.cpython-313.pyc | Other | 2,200 | 0.8 | 0 | 0 | vue-tools | 276 | 2024-12-26T16:31:23.575645 | MIT | false | 29785b1b1a29334731b9be6e96b532c9 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\data.cpython-313.pyc | data.cpython-313.pyc | Other | 1,191 | 0.8 | 0.214286 | 0 | vue-tools | 486 | 2025-01-07T23:20:02.169535 | Apache-2.0 | false | 327a62d93f8d4c790e299974e9d592d1 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\decorators.cpython-313.pyc | decorators.cpython-313.pyc | Other | 2,511 | 0.95 | 0.323529 | 0 | react-lib | 859 | 2025-01-02T10:33:59.970503 | MIT | false | 0fc01e171f8ef72d38a9b8c07f3746eb |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\dir2.cpython-313.pyc | dir2.cpython-313.pyc | Other | 2,563 | 0.85 | 0.162162 | 0 | python-kit | 615 | 2024-12-30T06:16:10.177926 | GPL-3.0 | false | 98711ed827f5ec0e728bace9aff64bfb |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\docs.cpython-313.pyc | docs.cpython-313.pyc | Other | 350 | 0.7 | 0 | 0 | awesome-app | 104 | 2025-07-03T06:41:04.860244 | BSD-3-Clause | false | b4635f7a2852e138de7757361d610990 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\encoding.cpython-313.pyc | encoding.cpython-313.pyc | Other | 2,617 | 0.8 | 0.209302 | 0.027027 | node-utils | 355 | 2024-06-09T19:10:34.582707 | Apache-2.0 | false | 0c53c6ac1ac68c1d38aa88e32f8d1100 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\eventful.cpython-313.pyc | eventful.cpython-313.pyc | Other | 366 | 0.7 | 0 | 0 | awesome-app | 537 | 2024-02-17T19:29:55.400272 | Apache-2.0 | false | f50b1945891f2666e45289c584c70440 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\frame.cpython-313.pyc | frame.cpython-313.pyc | Other | 3,702 | 0.95 | 0.15 | 0.040816 | react-lib | 253 | 2024-07-21T04:57:15.876357 | GPL-3.0 | false | cf0ddf51bfed503ca1b906994ec8db61 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\generics.cpython-313.pyc | generics.cpython-313.pyc | Other | 1,035 | 0.85 | 0.095238 | 0 | react-lib | 684 | 2024-09-07T22:18:39.400234 | Apache-2.0 | false | a92065ba0dc2ac23571672e1328ff76d |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\importstring.cpython-313.pyc | importstring.cpython-313.pyc | Other | 1,245 | 0.95 | 0 | 0 | awesome-app | 111 | 2023-07-15T14:03:02.754837 | Apache-2.0 | false | e1aed09d8c24cc4a721aa152421bd3b6 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\io.cpython-313.pyc | io.cpython-313.pyc | Other | 5,410 | 0.95 | 0.097561 | 0.028571 | python-kit | 193 | 2025-04-28T17:29:36.105466 | MIT | false | efccb5ed41f81ef6ee546f5323475fe1 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\ipstruct.cpython-313.pyc | ipstruct.cpython-313.pyc | Other | 11,038 | 0.95 | 0.077206 | 0.047826 | vue-tools | 734 | 2024-07-29T07:08:27.746871 | Apache-2.0 | false | 0a94963f518d820f41632ebaee4cf8ef |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\jsonutil.cpython-313.pyc | jsonutil.cpython-313.pyc | Other | 376 | 0.7 | 0 | 0 | vue-tools | 616 | 2025-02-16T02:06:49.464243 | MIT | false | cda64c4c808205a425e94be46bbfb639 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\log.cpython-313.pyc | log.cpython-313.pyc | Other | 346 | 0.7 | 0 | 0 | python-kit | 300 | 2023-10-16T20:02:12.916233 | MIT | false | ec5ac66e75e34fae5399874ab9feabc7 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\module_paths.cpython-313.pyc | module_paths.cpython-313.pyc | Other | 1,520 | 0.95 | 0.064516 | 0.217391 | python-kit | 650 | 2025-01-25T23:50:15.073620 | Apache-2.0 | false | 770e0726ba3fdfb6c7403185c12c13ad |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\openpy.cpython-313.pyc | openpy.cpython-313.pyc | Other | 4,541 | 0.8 | 0.041667 | 0 | react-lib | 733 | 2024-09-26T05:10:13.193423 | BSD-3-Clause | false | e7f5554661e294e0d7282ae9bfef3929 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\path.cpython-313.pyc | path.cpython-313.pyc | Other | 14,290 | 0.95 | 0.113861 | 0.011628 | python-kit | 414 | 2023-10-20T14:22:35.840150 | BSD-3-Clause | false | 1b6a86ed48c789fea704e458b9121c15 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\process.cpython-313.pyc | process.cpython-313.pyc | Other | 2,804 | 0.95 | 0.085106 | 0 | node-utils | 108 | 2025-03-21T20:32:54.582288 | MIT | false | 28bff938c98d2eb50533759065faa0de |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\py3compat.cpython-313.pyc | py3compat.cpython-313.pyc | Other | 2,427 | 0.8 | 0.052632 | 0 | awesome-app | 195 | 2024-05-09T15:28:01.125393 | BSD-3-Clause | false | 99890b76184df0cd6fbff68f88fc1d96 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\PyColorize.cpython-313.pyc | PyColorize.cpython-313.pyc | Other | 20,167 | 0.8 | 0 | 0 | python-kit | 403 | 2025-03-04T14:34:12.502280 | BSD-3-Clause | false | ba3c98b318e221e917ad8069da0a119b |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\sentinel.cpython-313.pyc | sentinel.cpython-313.pyc | Other | 964 | 0.95 | 0.4 | 0 | react-lib | 647 | 2023-11-10T16:05:42.238500 | BSD-3-Clause | false | a3db338d8b347ba1b658f9d0192b66da |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\strdispatch.cpython-313.pyc | strdispatch.cpython-313.pyc | Other | 3,166 | 0.95 | 0.1 | 0.055556 | python-kit | 663 | 2025-03-05T23:16:30.359073 | MIT | false | 2e9304b5062cddcc453ca8555e9cb981 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\sysinfo.cpython-313.pyc | sysinfo.cpython-313.pyc | Other | 3,959 | 0.8 | 0.05 | 0.028571 | awesome-app | 893 | 2025-05-27T09:49:24.542895 | GPL-3.0 | false | 0f06f8b3a2041125a42cfdf0452d49e6 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\syspathcontext.cpython-313.pyc | syspathcontext.cpython-313.pyc | Other | 1,528 | 0.8 | 0.166667 | 0 | node-utils | 868 | 2023-10-12T19:06:28.791166 | BSD-3-Clause | false | 9ac73cd2065bc538a141c4099c5fdd55 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\tempdir.cpython-313.pyc | tempdir.cpython-313.pyc | Other | 3,493 | 0.8 | 0.033333 | 0 | react-lib | 677 | 2024-02-04T23:31:12.904732 | MIT | false | 428bdfbef96d7ebc255242bdab49e15a |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\terminal.cpython-313.pyc | terminal.cpython-313.pyc | Other | 4,229 | 0.95 | 0.067797 | 0.058824 | awesome-app | 989 | 2023-07-22T15:18:12.872473 | GPL-3.0 | false | 72dc64e25ae1a81dce322ef333a324b8 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\text.cpython-313.pyc | text.cpython-313.pyc | Other | 23,640 | 0.95 | 0.020253 | 0.021605 | node-utils | 24 | 2024-04-18T09:37:36.925818 | MIT | false | f6dadb915e76410863ff4f59793843c9 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\timing.cpython-313.pyc | timing.cpython-313.pyc | Other | 4,293 | 0.95 | 0.140351 | 0 | vue-tools | 635 | 2024-06-28T18:11:12.195687 | BSD-3-Clause | false | 9e985c32aaa5bc9e7f99f8aa4aaac3a7 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\tokenutil.cpython-313.pyc | tokenutil.cpython-313.pyc | Other | 6,821 | 0.8 | 0.05814 | 0.012987 | python-kit | 737 | 2023-12-23T09:57:03.738659 | MIT | false | d80e0e21fdfb4fb0d5033b5bd2889807 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\wildcard.cpython-313.pyc | wildcard.cpython-313.pyc | Other | 4,723 | 0.8 | 0.162162 | 0 | react-lib | 472 | 2023-11-01T17:40:21.511133 | MIT | false | d362383479be98d88836c69bacfb937f |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\_process_cli.cpython-313.pyc | _process_cli.cpython-313.pyc | Other | 2,834 | 0.95 | 0.064516 | 0.083333 | awesome-app | 847 | 2024-02-06T01:40:40.874001 | GPL-3.0 | false | 46025950028bd5f6cc6260fe86a9a307 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\_process_common.cpython-313.pyc | _process_common.cpython-313.pyc | Other | 8,034 | 0.95 | 0.06 | 0 | react-lib | 417 | 2024-06-19T07:15:25.380924 | GPL-3.0 | false | 4cbd021ef1880c4b7708315347742566 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\_process_emscripten.cpython-313.pyc | _process_emscripten.cpython-313.pyc | Other | 846 | 0.95 | 0 | 0 | vue-tools | 811 | 2024-05-25T13:10:15.617219 | Apache-2.0 | false | a856cbf6c32a71c4c9c1cfe0389b2bcf |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\_process_posix.cpython-313.pyc | _process_posix.cpython-313.pyc | Other | 6,167 | 0.95 | 0.021053 | 0 | vue-tools | 585 | 2024-07-31T06:40:14.088945 | MIT | false | c43635e15f8516ba3d07bae52f8b1d9b |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\_process_win32.cpython-313.pyc | _process_win32.cpython-313.pyc | Other | 8,501 | 0.95 | 0.041322 | 0 | vue-tools | 199 | 2024-01-04T04:58:59.371607 | BSD-3-Clause | false | 50b34e42c10eb105cb9f513ccb842891 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\_process_win32_controller.cpython-313.pyc | _process_win32_controller.cpython-313.pyc | Other | 21,971 | 0.95 | 0.045643 | 0.05 | awesome-app | 830 | 2024-05-21T01:40:34.461442 | GPL-3.0 | false | bfa7629162649e5772d0bfdb8b8abc30 |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\_sysinfo.cpython-313.pyc | _sysinfo.cpython-313.pyc | Other | 213 | 0.7 | 0 | 0 | awesome-app | 66 | 2024-12-30T07:04:18.621048 | BSD-3-Clause | false | d514a1a84e581ba32f4b7b25c855fabe |
\n\n | .venv\Lib\site-packages\IPython\utils\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 188 | 0.7 | 0 | 0 | python-kit | 365 | 2024-03-06T04:13:06.229878 | GPL-3.0 | false | 92dc4134aef5fc37d4753b2ce9372776 |
\n\n | .venv\Lib\site-packages\IPython\__pycache__\display.cpython-313.pyc | display.cpython-313.pyc | Other | 892 | 0.95 | 0.090909 | 0 | python-kit | 689 | 2024-01-21T12:45:43.025616 | GPL-3.0 | false | ab6b740366f08955ad5b9fd06e748554 |
\n\n | .venv\Lib\site-packages\IPython\__pycache__\paths.cpython-313.pyc | paths.cpython-313.pyc | Other | 5,673 | 0.95 | 0.033333 | 0.018182 | vue-tools | 530 | 2023-12-28T02:47:14.523311 | BSD-3-Clause | false | e53a9d2450eb35b125d5261bf52280ec |
\n\n | .venv\Lib\site-packages\IPython\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 4,808 | 0.95 | 0.11236 | 0.025974 | python-kit | 695 | 2023-09-23T03:15:52.671741 | GPL-3.0 | false | a2991ef738b399b786806ef5b647e97a |
\n\n | .venv\Lib\site-packages\IPython\__pycache__\__main__.cpython-313.pyc | __main__.cpython-313.pyc | Other | 306 | 0.8 | 0 | 0 | vue-tools | 468 | 2025-04-16T06:56:09.059627 | MIT | false | 50ca4e3fb14bd26191f86760f139135e |
[console_scripts]\nipython = IPython:start_ipython\nipython3 = IPython:start_ipython\n | .venv\Lib\site-packages\ipython-9.4.0.dist-info\entry_points.txt | entry_points.txt | Other | 83 | 0.5 | 0 | 0 | awesome-app | 911 | 2024-03-31T19:32:47.888594 | BSD-3-Clause | false | e5464616ff5adef7e462220373de8c83 |
pip\n | .venv\Lib\site-packages\ipython-9.4.0.dist-info\INSTALLER | INSTALLER | Other | 4 | 0.5 | 0 | 0 | vue-tools | 215 | 2024-11-02T14:19:25.605859 | BSD-3-Clause | false | 365c9bfeb7d89244f2ce01c1de44cb85 |
Metadata-Version: 2.4\nName: ipython\nVersion: 9.4.0\nSummary: IPython: Productive Interactive Computing\nAuthor: The IPython Development Team\nAuthor-email: ipython-dev@python.org\nLicense: BSD-3-Clause\nProject-URL: Homepage, https://ipython.org\nProject-URL: Documentation, https://ipython.readthedocs.io/\nProject-URL: Funding, https://jupyter.org/about#donate\nProject-URL: Source, https://github.com/ipython/ipython\nProject-URL: Tracker, https://github.com/ipython/ipython/issues\nKeywords: Interactive,Interpreter,Shell,Embedding\nPlatform: Linux\nPlatform: Mac OSX\nPlatform: Windows\nClassifier: Framework :: IPython\nClassifier: Framework :: Jupyter\nClassifier: Intended Audience :: Developers\nClassifier: Intended Audience :: Science/Research\nClassifier: License :: OSI Approved :: BSD License\nClassifier: Programming Language :: Python\nClassifier: Programming Language :: Python :: 3\nClassifier: Programming Language :: Python :: 3 :: Only\nClassifier: Topic :: System :: Shells\nRequires-Python: >=3.11\nDescription-Content-Type: text/x-rst\nLicense-File: LICENSE\nRequires-Dist: colorama; sys_platform == "win32"\nRequires-Dist: decorator\nRequires-Dist: ipython-pygments-lexers\nRequires-Dist: jedi>=0.16\nRequires-Dist: matplotlib-inline\nRequires-Dist: pexpect>4.3; sys_platform != "win32" and sys_platform != "emscripten"\nRequires-Dist: prompt_toolkit<3.1.0,>=3.0.41\nRequires-Dist: pygments>=2.4.0\nRequires-Dist: stack_data\nRequires-Dist: traitlets>=5.13.0\nRequires-Dist: typing_extensions>=4.6; python_version < "3.12"\nProvides-Extra: black\nRequires-Dist: black; extra == "black"\nProvides-Extra: doc\nRequires-Dist: docrepr; extra == "doc"\nRequires-Dist: exceptiongroup; extra == "doc"\nRequires-Dist: intersphinx_registry; extra == "doc"\nRequires-Dist: ipykernel; extra == "doc"\nRequires-Dist: ipython[test]; extra == "doc"\nRequires-Dist: matplotlib; extra == "doc"\nRequires-Dist: setuptools>=18.5; extra == "doc"\nRequires-Dist: sphinx_toml==0.0.4; extra == "doc"\nRequires-Dist: sphinx-rtd-theme; extra == "doc"\nRequires-Dist: sphinx>=1.3; extra == "doc"\nRequires-Dist: typing_extensions; extra == "doc"\nProvides-Extra: test\nRequires-Dist: pytest; extra == "test"\nRequires-Dist: pytest-asyncio<0.22; extra == "test"\nRequires-Dist: testpath; extra == "test"\nRequires-Dist: packaging; extra == "test"\nProvides-Extra: test-extra\nRequires-Dist: ipython[test]; extra == "test-extra"\nRequires-Dist: curio; extra == "test-extra"\nRequires-Dist: jupyter_ai; extra == "test-extra"\nRequires-Dist: matplotlib!=3.2.0; extra == "test-extra"\nRequires-Dist: nbformat; extra == "test-extra"\nRequires-Dist: nbclient; extra == "test-extra"\nRequires-Dist: ipykernel; extra == "test-extra"\nRequires-Dist: numpy>=1.23; extra == "test-extra"\nRequires-Dist: pandas; extra == "test-extra"\nRequires-Dist: trio; extra == "test-extra"\nProvides-Extra: matplotlib\nRequires-Dist: matplotlib; extra == "matplotlib"\nProvides-Extra: all\nRequires-Dist: ipython[doc,matplotlib,test,test_extra]; extra == "all"\nDynamic: author\nDynamic: author-email\nDynamic: license\nDynamic: license-file\n\nIPython provides a rich toolkit to help you make the most out of using Python\ninteractively. Its main components are:\n\n * A powerful interactive Python shell\n * A `Jupyter <https://jupyter.org/>`_ kernel to work with Python code in Jupyter\n notebooks and other interactive frontends.\n\nThe enhanced interactive Python shells have the following main features:\n\n * Comprehensive object introspection.\n\n * Input history, persistent across sessions.\n\n * Caching of output results during a session with automatically generated\n references.\n\n * Extensible tab completion, with support by default for completion of python\n variables and keywords, filenames and function keywords.\n\n * Extensible system of 'magic' commands for controlling the environment and\n performing many tasks related either to IPython or the operating system.\n\n * A rich configuration system with easy switching between different setups\n (simpler than changing $PYTHONSTARTUP environment variables every time).\n\n * Session logging and reloading.\n\n * Extensible syntax processing for special purpose situations.\n\n * Access to the system shell with user-extensible alias system.\n\n * Easily embeddable in other Python programs and GUIs.\n\n * Integrated access to the pdb debugger and the Python profiler.\n\nThe latest development version is always available from IPython's `GitHub\nsite <http://github.com/ipython>`_.\n | .venv\Lib\site-packages\ipython-9.4.0.dist-info\METADATA | METADATA | Other | 4,431 | 0.95 | 0.034783 | 0.13 | vue-tools | 605 | 2023-11-30T17:46:28.322710 | MIT | false | ab462413a0b62f449e92ac3a99ab0077 |
../../Scripts/ipython.exe,sha256=ECn6CPxpQ5Oy2r6q_Yo0CuSAjLB1IgGeDcHBguXMX0A,108426\n../../Scripts/ipython3.exe,sha256=ECn6CPxpQ5Oy2r6q_Yo0CuSAjLB1IgGeDcHBguXMX0A,108426\n../../share/man/man1/ipython.1,sha256=PVdQP2hHmHyUEwzLOPcgavnCe9jTDVrM1jKZt4cnF_Q,2058\nIPython/__init__.py,sha256=7dlVw4pigpyavG4T9nWRdkYQJCRK-y3YFRsMEAFjUh4,5704\nIPython/__main__.py,sha256=55A5B-sd2ntWU36X9AEipKWnDvFM9JFSb4FOlC8hATA,489\nIPython/__pycache__/__init__.cpython-313.pyc,,\nIPython/__pycache__/__main__.cpython-313.pyc,,\nIPython/__pycache__/display.cpython-313.pyc,,\nIPython/__pycache__/paths.cpython-313.pyc,,\nIPython/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nIPython/core/__pycache__/__init__.cpython-313.pyc,,\nIPython/core/__pycache__/alias.cpython-313.pyc,,\nIPython/core/__pycache__/application.cpython-313.pyc,,\nIPython/core/__pycache__/async_helpers.cpython-313.pyc,,\nIPython/core/__pycache__/autocall.cpython-313.pyc,,\nIPython/core/__pycache__/builtin_trap.cpython-313.pyc,,\nIPython/core/__pycache__/compilerop.cpython-313.pyc,,\nIPython/core/__pycache__/completer.cpython-313.pyc,,\nIPython/core/__pycache__/completerlib.cpython-313.pyc,,\nIPython/core/__pycache__/crashhandler.cpython-313.pyc,,\nIPython/core/__pycache__/debugger.cpython-313.pyc,,\nIPython/core/__pycache__/debugger_backport.cpython-313.pyc,,\nIPython/core/__pycache__/display.cpython-313.pyc,,\nIPython/core/__pycache__/display_functions.cpython-313.pyc,,\nIPython/core/__pycache__/display_trap.cpython-313.pyc,,\nIPython/core/__pycache__/displayhook.cpython-313.pyc,,\nIPython/core/__pycache__/displaypub.cpython-313.pyc,,\nIPython/core/__pycache__/doctb.cpython-313.pyc,,\nIPython/core/__pycache__/error.cpython-313.pyc,,\nIPython/core/__pycache__/events.cpython-313.pyc,,\nIPython/core/__pycache__/extensions.cpython-313.pyc,,\nIPython/core/__pycache__/formatters.cpython-313.pyc,,\nIPython/core/__pycache__/getipython.cpython-313.pyc,,\nIPython/core/__pycache__/guarded_eval.cpython-313.pyc,,\nIPython/core/__pycache__/history.cpython-313.pyc,,\nIPython/core/__pycache__/historyapp.cpython-313.pyc,,\nIPython/core/__pycache__/hooks.cpython-313.pyc,,\nIPython/core/__pycache__/inputtransformer2.cpython-313.pyc,,\nIPython/core/__pycache__/interactiveshell.cpython-313.pyc,,\nIPython/core/__pycache__/latex_symbols.cpython-313.pyc,,\nIPython/core/__pycache__/logger.cpython-313.pyc,,\nIPython/core/__pycache__/macro.cpython-313.pyc,,\nIPython/core/__pycache__/magic.cpython-313.pyc,,\nIPython/core/__pycache__/magic_arguments.cpython-313.pyc,,\nIPython/core/__pycache__/oinspect.cpython-313.pyc,,\nIPython/core/__pycache__/page.cpython-313.pyc,,\nIPython/core/__pycache__/payload.cpython-313.pyc,,\nIPython/core/__pycache__/payloadpage.cpython-313.pyc,,\nIPython/core/__pycache__/prefilter.cpython-313.pyc,,\nIPython/core/__pycache__/profileapp.cpython-313.pyc,,\nIPython/core/__pycache__/profiledir.cpython-313.pyc,,\nIPython/core/__pycache__/pylabtools.cpython-313.pyc,,\nIPython/core/__pycache__/release.cpython-313.pyc,,\nIPython/core/__pycache__/shellapp.cpython-313.pyc,,\nIPython/core/__pycache__/splitinput.cpython-313.pyc,,\nIPython/core/__pycache__/tbtools.cpython-313.pyc,,\nIPython/core/__pycache__/tips.cpython-313.pyc,,\nIPython/core/__pycache__/ultratb.cpython-313.pyc,,\nIPython/core/__pycache__/usage.cpython-313.pyc,,\nIPython/core/alias.py,sha256=TOLqWTs2sWkEhUFKofaaazFD5aGP5X7lLD5TjU9pwdI,10234\nIPython/core/application.py,sha256=OhW5Ye-aptd68yS-bSiv2bH4Kntvyq7MTf2jTu0i2xw,18940\nIPython/core/async_helpers.py,sha256=4x_ZSrPImXi0oXzwImaLc3eXlkdLi-4RXh2HcX8YDQg,4296\nIPython/core/autocall.py,sha256=zw7siKc1ocagCuXn4OuT0o7YbyZSuW3a7la204ANRk4,1983\nIPython/core/builtin_trap.py,sha256=4Bls1x1Xaf3oGbj6GFXE--G6qZlNq7AYFjp_vyu55p8,3006\nIPython/core/compilerop.py,sha256=tA8xHh10gp85brI2OYmvl7kW0TgDghdKbzmZE7nS4sw,6990\nIPython/core/completer.py,sha256=xczIOWv2i6fKjt2neeSLCeMvBMPIV-OQbE7ggBQB_PU,129815\nIPython/core/completerlib.py,sha256=C_1uFwR4eiqIsemMRbluMQV1WJ3qSfnGxO01PsGSpr8,12641\nIPython/core/crashhandler.py,sha256=8-kyI6aNkqbaB_lBlbNKAOFv34HDBCpLggMfiu4oIDg,8747\nIPython/core/debugger.py,sha256=ZVvFEIby6pBAd1Cv5MfZ8EX3lY3il-v2eT2Z4JwubD8,41991\nIPython/core/debugger_backport.py,sha256=qP96tVbfH7wpOFIjhuFyFVVM1zIgCGbP1AyQzOBfw28,8216\nIPython/core/display.py,sha256=wQgVFY_U1O-a-jJSLb00nJ9m2w9-NsBhEBGnQUcWUd0,41129\nIPython/core/display_functions.py,sha256=hlj1gXXrcIQU_ita03dHFesltOCViP1N3RcoLtLuyFI,12407\nIPython/core/display_trap.py,sha256=r9AeMqllLicJvY8JfrGTQMkyxz37QT7X_RwwXxNk7R0,2185\nIPython/core/displayhook.py,sha256=pArnwIsvICOivqoxLqg215F9O1V3NEEWnk8KktvYcvE,13258\nIPython/core/displaypub.py,sha256=6i3-uceIUZ_ceqXiEr8RiPWebhoLiRObXk_cXvO84xo,5946\nIPython/core/doctb.py,sha256=WTEOyUTAAnpyB2NCHhCA4fF7TyDRlW6H9tyRsoVVPjA,15617\nIPython/core/error.py,sha256=lL5WP3E0sGNWkBTQL0u795wLQJCSrDCf328ft8TfCjk,1734\nIPython/core/events.py,sha256=U-Qm93khPgrLrB09zqH8Hvb6QldPVES-LIuSdGsxLXk,5243\nIPython/core/extensions.py,sha256=KgohNiowl71W-V0WYXWKw7g-q85QN9c_FxtraJoEOvY,5020\nIPython/core/formatters.py,sha256=9hyrvbkIxbO26VQvOsKVI3xbnLgJOAmJiQUo8U95V6k,36500\nIPython/core/getipython.py,sha256=RjTylt9N3c8AFZ-Y440A8My4tfFCgO-lVkyOL0xoOzQ,894\nIPython/core/guarded_eval.py,sha256=MglgA6KSJNHibvs5Ygjaaol6DB4NMagNwwx7HbiIhqA,29901\nIPython/core/history.py,sha256=5hmGOe1H93tCtWj_d8HdFixDCr0kdEqahGJ-zUo03RQ,41183\nIPython/core/historyapp.py,sha256=5H38INsWXRacscKz_5PQHYrEnHEayDtc1D1qcSyHRBU,5847\nIPython/core/hooks.py,sha256=xBWTZqycxZi97yj01IFc-SoJBzV5B73IoDHbAAlKUpQ,5193\nIPython/core/inputtransformer2.py,sha256=7sRleytrcAbp5PZMOrDw59MjUAGXg5BbaRbPkSW83-I,28909\nIPython/core/interactiveshell.py,sha256=LYa9QAz74ljvILU-UIymV-VsXZBczrDegSftUZ24-pM,159746\nIPython/core/latex_symbols.py,sha256=DzFecvqWVSsdN7vWAsp0mlYAHRDQKfZGAmvuDUh0M-s,30127\nIPython/core/logger.py,sha256=Iwe4xKMmxEdvSwHYPMfsTWkmdaqVCgvZT3R3I3qTmrU,8436\nIPython/core/macro.py,sha256=OhvXWNhLe393rI2wTpMgbUVHWSnmC_ycHiYqzqSHXZU,1726\nIPython/core/magic.py,sha256=sUPVeVSk70aGVaPXncrSJxYJU8u_6YGCnR3folx8wys,28967\nIPython/core/magic_arguments.py,sha256=utkhQzGmn9Uw-ye33VO9P8ryP1L6ghkPcCdmhjri8K0,9701\nIPython/core/magics/__init__.py,sha256=pkd-UfzjDGp5UHuFKjw192vZnigpTP9ftXzG3oLdiS8,1619\nIPython/core/magics/__pycache__/__init__.cpython-313.pyc,,\nIPython/core/magics/__pycache__/ast_mod.cpython-313.pyc,,\nIPython/core/magics/__pycache__/auto.cpython-313.pyc,,\nIPython/core/magics/__pycache__/basic.cpython-313.pyc,,\nIPython/core/magics/__pycache__/code.cpython-313.pyc,,\nIPython/core/magics/__pycache__/config.cpython-313.pyc,,\nIPython/core/magics/__pycache__/display.cpython-313.pyc,,\nIPython/core/magics/__pycache__/execution.cpython-313.pyc,,\nIPython/core/magics/__pycache__/extension.cpython-313.pyc,,\nIPython/core/magics/__pycache__/history.cpython-313.pyc,,\nIPython/core/magics/__pycache__/logging.cpython-313.pyc,,\nIPython/core/magics/__pycache__/namespace.cpython-313.pyc,,\nIPython/core/magics/__pycache__/osm.cpython-313.pyc,,\nIPython/core/magics/__pycache__/packaging.cpython-313.pyc,,\nIPython/core/magics/__pycache__/pylab.cpython-313.pyc,,\nIPython/core/magics/__pycache__/script.cpython-313.pyc,,\nIPython/core/magics/ast_mod.py,sha256=06OoRO7Z7Jzfc-cflf8Z3wyqF17fkYv6fJ_Nw4d7eQE,10295\nIPython/core/magics/auto.py,sha256=yEouIjsQ6LmfSEfNvkZbNmNDFl19KLRnaJciYdR7a1A,4816\nIPython/core/magics/basic.py,sha256=uFkd-gTzlSVkNDSu8Rg4fbS_IK2raEhx1SYA6kWZ4hg,23968\nIPython/core/magics/code.py,sha256=h_dho9niPvtf_IpoOZf5GAD6CYbT0EQGsfLfutyX-7I,28144\nIPython/core/magics/config.py,sha256=QBL5uY7m-Q7C46mO3q1Yio9s73w1TnI9y__j5E-j44Y,4881\nIPython/core/magics/display.py,sha256=STRq66GlZwcvFyBxbkqslclpP_s9LnqD0ew9Z3S4-Jo,3130\nIPython/core/magics/execution.py,sha256=YKsyU9cUxAyAquyWVzw5iNH7h-OY-UYHRm4eJoz5XKI,64512\nIPython/core/magics/extension.py,sha256=Jj6OlkM71PS0j1HfEMDc-jU2Exwo9Ff_K0nD7e_W4N0,2477\nIPython/core/magics/history.py,sha256=Aw9gBzK4AJbe-gvRdMW7n-_zxxHuMyHvHJtRDuCwwug,12629\nIPython/core/magics/logging.py,sha256=VuDiF5QZrgzTT7Lr1NkkMCtUM1EHoGCw2pYlKsSQc4Q,6867\nIPython/core/magics/namespace.py,sha256=uqWM77PbbpOYvQOYMqCwJJrnJwXVIw4abju9Q7cxas0,25446\nIPython/core/magics/osm.py,sha256=mNlHBS8ZEMf687nDpLGYKj6aC-i_r7d9iUTFKw6WtY4,30695\nIPython/core/magics/packaging.py,sha256=5m2pt1bkosMdiQxB46hDdD4KisfPJpNnebCqMnygodE,6030\nIPython/core/magics/pylab.py,sha256=BBRczZ0khoZB5NPipgvVtOWYpdkLatB9mQFYzyg-vpg,6624\nIPython/core/magics/script.py,sha256=zv-BwLsqAeVsgwCEnO3mr4HoSM6aFz6eaH_KPmM2uJM,13570\nIPython/core/oinspect.py,sha256=_C6tUncGVHmaU89_chHRknQJ264mDYxzsNxeHNYFOao,40280\nIPython/core/page.py,sha256=P8Dmo0MjUq71DEnIPM_kaSGZoKTaPkrk4sUuM4I6HDA,11788\nIPython/core/payload.py,sha256=uHcwG5Ahm3fnz2dsIKbzYK_lHOilqfen0IhQffOUQbE,1763\nIPython/core/payloadpage.py,sha256=xGz4Ov82-0lmhKSIlM-kyIa50COk-ojB7tXLkGIRnPw,1177\nIPython/core/prefilter.py,sha256=JHQ3feaD4bhoBDqZcEgmlDjQ2sfRXC1DNjgJhpaMU7E,25766\nIPython/core/profile/README_STARTUP,sha256=Y47GtYQkWy6pdzkqylUNL6eBSZMUIRGwTxXPUF_BBBc,371\nIPython/core/profileapp.py,sha256=bFMFIyehxeF9pDUtxw_6D3b0nxeqsupKTe7XhH7GMkc,10711\nIPython/core/profiledir.py,sha256=-vjOa1I_UajMZJblJRYXh16Y0RaAUn5a2swQBsw2qEU,8459\nIPython/core/pylabtools.py,sha256=LfNV9xCJ3flCfJXmv1NaCRYj9jZDtHAQ5oSEHWo3Gmg,17376\nIPython/core/release.py,sha256=ecwU1SOd6rB87PaUvxEoHsxQCLFEAtebo2_pvVgvA0A,1505\nIPython/core/shellapp.py,sha256=oZIzj_sqIXrN3qyyhinZ1gLXvFviKYHkmS4H3wVEb74,19307\nIPython/core/splitinput.py,sha256=bAX1puQjvYB-otJyqiqeOhWj6dooWuQeNVx2YdaKQs8,5006\nIPython/core/tbtools.py,sha256=X4iB5zKAT2y4TK1R9l3d3kiW5htrzKn3qxalFFe2xzI,16880\nIPython/core/tips.py,sha256=oLWJtS_nnd2s1fQunXXvvHxItmbtargZWPCkr5mVGj8,6200\nIPython/core/ultratb.py,sha256=ItaUt56wPnptv6f5ecbcBR3FtHljTDoIRHKsU-ZWGqI,46265\nIPython/core/usage.py,sha256=agrZE5eZIvJnXoqI8VV9e-oWZx5LbLxUq9MdQpEyts4,13542\nIPython/display.py,sha256=PZ3-IJ1pPXGlTlpJh0Y_B0nhZFWWA4LMOEEe9sSqxx8,1392\nIPython/extensions/__init__.py,sha256=V4vSllFd18CVUvDTbXLYqfwTFmPXUiQZGCs5LX2IliE,78\nIPython/extensions/__pycache__/__init__.cpython-313.pyc,,\nIPython/extensions/__pycache__/autoreload.cpython-313.pyc,,\nIPython/extensions/__pycache__/storemagic.cpython-313.pyc,,\nIPython/extensions/autoreload.py,sha256=XnNxSE8d4cxvBGyvz2YJwySRsIOZe6WXRT9TUPWBd88,31724\nIPython/extensions/deduperreload/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nIPython/extensions/deduperreload/__pycache__/__init__.cpython-313.pyc,,\nIPython/extensions/deduperreload/__pycache__/deduperreload.cpython-313.pyc,,\nIPython/extensions/deduperreload/__pycache__/deduperreload_patching.cpython-313.pyc,,\nIPython/extensions/deduperreload/deduperreload.py,sha256=5BWnzqfoScQ3a1RTN3wZpxKGXVU_Oxo7P4rQoJfRrI0,24134\nIPython/extensions/deduperreload/deduperreload_patching.py,sha256=xOaws3UV5KmaAK8yZ3qtQO45w_5Ntkt_qZTcZ1psszY,4934\nIPython/extensions/storemagic.py,sha256=ths8PLtGmYZAYaibRuS1QetLm1Xu1soyGwehBjayByg,8168\nIPython/external/__init__.py,sha256=-EQHbuUnBe1RS1_CwaLGzNSZQsCJsrxHW_r15smvVW0,126\nIPython/external/__pycache__/__init__.cpython-313.pyc,,\nIPython/external/__pycache__/pickleshare.cpython-313.pyc,,\nIPython/external/__pycache__/qt_for_kernel.cpython-313.pyc,,\nIPython/external/__pycache__/qt_loaders.cpython-313.pyc,,\nIPython/external/pickleshare.py,sha256=Zs0Hq8IXbf51RNFCr1AFxZKtlhfPJMM3b1WD4sNB670,9974\nIPython/external/qt_for_kernel.py,sha256=ROLfN-NcA_h-ZgZsm9pBW1y57I_gxnJmOdpRwvpw8DA,3442\nIPython/external/qt_loaders.py,sha256=3ynYvEE-juM83XRq7-6tf-nuHswKmSn7vR7hEbpk-pY,11863\nIPython/lib/__init__.py,sha256=Cj-42grGOsG6Gz976stackKz9-ISoFK1QSYAmConqFQ,411\nIPython/lib/__pycache__/__init__.cpython-313.pyc,,\nIPython/lib/__pycache__/backgroundjobs.cpython-313.pyc,,\nIPython/lib/__pycache__/clipboard.cpython-313.pyc,,\nIPython/lib/__pycache__/deepreload.cpython-313.pyc,,\nIPython/lib/__pycache__/demo.cpython-313.pyc,,\nIPython/lib/__pycache__/display.cpython-313.pyc,,\nIPython/lib/__pycache__/editorhooks.cpython-313.pyc,,\nIPython/lib/__pycache__/guisupport.cpython-313.pyc,,\nIPython/lib/__pycache__/latextools.cpython-313.pyc,,\nIPython/lib/__pycache__/lexers.cpython-313.pyc,,\nIPython/lib/__pycache__/pretty.cpython-313.pyc,,\nIPython/lib/backgroundjobs.py,sha256=zZ-4E2PPPi8jNl-JWl9ObkWpG8Dzb5xxFtD1Jttmab8,17680\nIPython/lib/clipboard.py,sha256=Ulrpzp9Wy7XXOes7QNOps6O3ss2_8recXuYF49vIj4s,3051\nIPython/lib/deepreload.py,sha256=iymTEcJpP_hpcO1H5GRgb2aODGUtiUFksodoIe9738E,9431\nIPython/lib/demo.py,sha256=PZoAgVYvWOqOJ4lFzJl5a14xnyMszPdFRwIRIkuM_bo,24502\nIPython/lib/display.py,sha256=YBXf_QDN62Ps25bRMqjY873Pczi_Av-EGNX51X1S63w,24550\nIPython/lib/editorhooks.py,sha256=KmQaAEZawUhHqy9CvRkbmc8BNXx4b1pqqLFhTEBf1CY,3982\nIPython/lib/guisupport.py,sha256=e3gQE2-rYF2Mj9EFqSYOKOjMDmys8o-yae7SEjiOeEs,6300\nIPython/lib/latextools.py,sha256=wzwckGrWf84U5pcmu2jn8ZzBl126aDBi5SySwe4Z8eI,8122\nIPython/lib/lexers.py,sha256=mt5QnEBuZaDXdL3Qwh9ZGHomjKgxNKW1IT4lM_78Rag,865\nIPython/lib/pretty.py,sha256=BouzxpAAlsKPnNTOJ-xS27XINRy5SbzIG14W5WxClCU,30721\nIPython/paths.py,sha256=QOPstpt2CVCrDUTn5a-Q1kcGBAwDLbq9omqc-2aoLU4,4126\nIPython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nIPython/sphinxext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nIPython/sphinxext/__pycache__/__init__.cpython-313.pyc,,\nIPython/sphinxext/__pycache__/custom_doctests.cpython-313.pyc,,\nIPython/sphinxext/__pycache__/ipython_console_highlighting.cpython-313.pyc,,\nIPython/sphinxext/__pycache__/ipython_directive.cpython-313.pyc,,\nIPython/sphinxext/custom_doctests.py,sha256=e6nLB1dsLrmYEwsKuJab6epdOfZg-rXTqmYIrg8aSBI,4610\nIPython/sphinxext/ipython_console_highlighting.py,sha256=VzlykN7guz3dQV9nFuZM_x2M98yDZP3eyLhDp5fJ3wI,895\nIPython/sphinxext/ipython_directive.py,sha256=hOQCdWx2N7WzBJVHMw7qVvAwLJxBZJxFCElqR4uXvqY,45154\nIPython/terminal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nIPython/terminal/__pycache__/__init__.cpython-313.pyc,,\nIPython/terminal/__pycache__/debugger.cpython-313.pyc,,\nIPython/terminal/__pycache__/embed.cpython-313.pyc,,\nIPython/terminal/__pycache__/interactiveshell.cpython-313.pyc,,\nIPython/terminal/__pycache__/ipapp.cpython-313.pyc,,\nIPython/terminal/__pycache__/magics.cpython-313.pyc,,\nIPython/terminal/__pycache__/prompts.cpython-313.pyc,,\nIPython/terminal/__pycache__/ptutils.cpython-313.pyc,,\nIPython/terminal/debugger.py,sha256=0LdBmCKVHKNGpmBKdb4bBgKlyuTVyfz2Dg2Y8wE4FTM,6937\nIPython/terminal/embed.py,sha256=uR1Z7wp5z5SpYto7sa9A63sPDtX5h0XD048Y3gDE_V0,16164\nIPython/terminal/interactiveshell.py,sha256=PLdnb2qWyIuEh2lY1ROBVOOxHKk1lS2z-zjljUwgMgE,39879\nIPython/terminal/ipapp.py,sha256=d2Rog4DRkVv0_fReqZOuorKMXAtEqsCskwPejtjj0Lg,12512\nIPython/terminal/magics.py,sha256=49ZVJzbAUkG_EFpebxIBEqm3tEClvqefoeM6QnxGrrk,7705\nIPython/terminal/prompts.py,sha256=5IoXb-pXA4MWu3gAfEuyIwZUbDg6mxxJuMkOqRBmYa0,4555\nIPython/terminal/pt_inputhooks/__init__.py,sha256=jB7MOn9ZtC5qcq9RnCu9kbxjysP5YrN9KbXeYIx79Q4,3606\nIPython/terminal/pt_inputhooks/__pycache__/__init__.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/asyncio.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/glut.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/gtk.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/gtk3.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/gtk4.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/osx.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/pyglet.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/qt.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/tk.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/__pycache__/wx.cpython-313.pyc,,\nIPython/terminal/pt_inputhooks/asyncio.py,sha256=ffxVjt0RIsh0yYzcPDpSTrhWv5JDNRBTof0OlJgksFU,1271\nIPython/terminal/pt_inputhooks/glut.py,sha256=CchyzpkfAqVytLzuKv_XWsU4rmAJXCgxBksACM2bk2s,4999\nIPython/terminal/pt_inputhooks/gtk.py,sha256=qx0OTtDdinx39bD9Fbf6m0JZWBXmuoypr56yUITFtfE,2427\nIPython/terminal/pt_inputhooks/gtk3.py,sha256=_MuZIjZuLsW2i4vvUjNQh9u4xIU8kcITyJpXNiH2Zu0,279\nIPython/terminal/pt_inputhooks/gtk4.py,sha256=r_MxCT7a0nTHZtqyuZpPgCW2Cl7iuomC0PjgFteSL9c,557\nIPython/terminal/pt_inputhooks/osx.py,sha256=TnndyR_SPbmWC_A--0ORB06rhH7IS2_7kjphfPcRqXo,4448\nIPython/terminal/pt_inputhooks/pyglet.py,sha256=wDDQDgilvK9uzwGB3XyAqcf8LfKr-Lc_NMAzunZMu_Y,2371\nIPython/terminal/pt_inputhooks/qt.py,sha256=ivVQu3UzzfGGeuowh6lNeVtuOJOL7g_VTKcgMG8JHpM,3479\nIPython/terminal/pt_inputhooks/tk.py,sha256=FjejvtwbvpeBZLoBCci1RDo_jWD5qElMy7PP-atd8j4,3651\nIPython/terminal/pt_inputhooks/wx.py,sha256=9yI52lDSZ3O_5Gww_3IeenEk_3PepLIME3Onh4X3kW0,7126\nIPython/terminal/ptutils.py,sha256=6PWDVPuBzpMxLdl_jqK7QtdnYVoVIjUP4Vl1JpFZFoM,8067\nIPython/terminal/shortcuts/__init__.py,sha256=irSX9mwHzeLDQ95fXRGdZxduRknwATtESvm2NIov7KU,18563\nIPython/terminal/shortcuts/__pycache__/__init__.cpython-313.pyc,,\nIPython/terminal/shortcuts/__pycache__/auto_match.cpython-313.pyc,,\nIPython/terminal/shortcuts/__pycache__/auto_suggest.cpython-313.pyc,,\nIPython/terminal/shortcuts/__pycache__/filters.cpython-313.pyc,,\nIPython/terminal/shortcuts/auto_match.py,sha256=9uT1fDb-c4Ew7TSIs_zET1jSxDlbfWGluxfW_pj39tk,3066\nIPython/terminal/shortcuts/auto_suggest.py,sha256=jJm6PVTddzGom8AxVPl3sNIedUg1pU4tvwEwvRqm1cI,23803\nIPython/terminal/shortcuts/filters.py,sha256=MgRTQWq8YfIyWvMASuQ9BGKq5RQwiEY5trSyMnMtJAo,10998\nIPython/testing/__init__.py,sha256=9t97XO03Ez9GdZA5FWZYmfyHZt2c3AqQe2dj_0AiPJY,784\nIPython/testing/__pycache__/__init__.cpython-313.pyc,,\nIPython/testing/__pycache__/decorators.cpython-313.pyc,,\nIPython/testing/__pycache__/globalipapp.cpython-313.pyc,,\nIPython/testing/__pycache__/ipunittest.cpython-313.pyc,,\nIPython/testing/__pycache__/skipdoctest.cpython-313.pyc,,\nIPython/testing/__pycache__/tools.cpython-313.pyc,,\nIPython/testing/decorators.py,sha256=0MmtdZsh0EehAIV73V3hTCM9gr-elFr4QTRP7sJqPc8,4430\nIPython/testing/globalipapp.py,sha256=F-RD6xLFJ2R1jNPycA9zk116GfH8qTsgsYFECWCeDRY,3948\nIPython/testing/ipunittest.py,sha256=KlZ_FnzDo15Lqq-yx8iLOGiFPcO4TSIs8sHdjZcjVxo,6756\nIPython/testing/plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nIPython/testing/plugin/__pycache__/__init__.cpython-313.pyc,,\nIPython/testing/plugin/__pycache__/dtexample.cpython-313.pyc,,\nIPython/testing/plugin/__pycache__/ipdoctest.cpython-313.pyc,,\nIPython/testing/plugin/__pycache__/pytest_ipdoctest.cpython-313.pyc,,\nIPython/testing/plugin/__pycache__/setup.cpython-313.pyc,,\nIPython/testing/plugin/__pycache__/simple.cpython-313.pyc,,\nIPython/testing/plugin/__pycache__/simplevars.cpython-313.pyc,,\nIPython/testing/plugin/__pycache__/test_ipdoctest.cpython-313.pyc,,\nIPython/testing/plugin/__pycache__/test_refs.cpython-313.pyc,,\nIPython/testing/plugin/dtexample.py,sha256=yedUX2aIUpFLkeDyshT5fqaODJg0iQzU_zvGOSr4JLc,2921\nIPython/testing/plugin/ipdoctest.py,sha256=vYQpSy0jhk9G7r3ocBjWr7CT2JEWIxKrH2KgH_Bmgao,11881\nIPython/testing/plugin/pytest_ipdoctest.py,sha256=liTgAUSumUsEK1_LfhH7tK_wXDRn_10y1Qo8QudUfH4,30053\nIPython/testing/plugin/setup.py,sha256=945a09Zm2HWWvukd5IVZ4v5p1czQPJfVlr5_Idey2AA,539\nIPython/testing/plugin/simple.py,sha256=F7e3Zj_Cc59xdkhCkW2xaocYGGG5T_GHDlRwdUk7-qo,727\nIPython/testing/plugin/simplevars.py,sha256=YZnDvFqQuFcrgzkgmm-koVRJKDnHCf0278Y5S_tyI3g,24\nIPython/testing/plugin/test_combo.txt,sha256=rrXjdOlRh9DltFu3GpuWuD0Hojtj4QQcEBOm52Z3-dE,923\nIPython/testing/plugin/test_example.txt,sha256=CGM8aZIYHlePDdAnR1yX3MfDGu0OceZpUiI_Y4tZGaU,730\nIPython/testing/plugin/test_exampleip.txt,sha256=5gLcj8iCk-WCOGz0ObpQpuZMhGwS1jUMyH3mouGxQJI,814\nIPython/testing/plugin/test_ipdoctest.py,sha256=Lc3qQdZ3amXf9EKA7JlXf30b3BzP8RwdNS9-SMRe2P0,1907\nIPython/testing/plugin/test_refs.py,sha256=y-Y2Q8niRIbaanbwpIzvEwwaHkJfAq10HYfb4bAXHBc,715\nIPython/testing/skipdoctest.py,sha256=haSEhd8EJr2Y0EbXXxv3pGvK6AQ8Lb7SyqkX5O8EU6s,717\nIPython/testing/tools.py,sha256=TlUbGAQoz_-hQVbZ8wTn_a-Pq7eDDv0umbXcEnHlr78,12936\nIPython/utils/PyColorize.py,sha256=crC0QJ6WwmXD-5YfVtT2MJHGzUtizfZaubrs2ZAL7KU,15573\nIPython/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0\nIPython/utils/__pycache__/PyColorize.cpython-313.pyc,,\nIPython/utils/__pycache__/__init__.cpython-313.pyc,,\nIPython/utils/__pycache__/_process_cli.cpython-313.pyc,,\nIPython/utils/__pycache__/_process_common.cpython-313.pyc,,\nIPython/utils/__pycache__/_process_emscripten.cpython-313.pyc,,\nIPython/utils/__pycache__/_process_posix.cpython-313.pyc,,\nIPython/utils/__pycache__/_process_win32.cpython-313.pyc,,\nIPython/utils/__pycache__/_process_win32_controller.cpython-313.pyc,,\nIPython/utils/__pycache__/_sysinfo.cpython-313.pyc,,\nIPython/utils/__pycache__/capture.cpython-313.pyc,,\nIPython/utils/__pycache__/coloransi.cpython-313.pyc,,\nIPython/utils/__pycache__/contexts.cpython-313.pyc,,\nIPython/utils/__pycache__/data.cpython-313.pyc,,\nIPython/utils/__pycache__/decorators.cpython-313.pyc,,\nIPython/utils/__pycache__/dir2.cpython-313.pyc,,\nIPython/utils/__pycache__/docs.cpython-313.pyc,,\nIPython/utils/__pycache__/encoding.cpython-313.pyc,,\nIPython/utils/__pycache__/eventful.cpython-313.pyc,,\nIPython/utils/__pycache__/frame.cpython-313.pyc,,\nIPython/utils/__pycache__/generics.cpython-313.pyc,,\nIPython/utils/__pycache__/importstring.cpython-313.pyc,,\nIPython/utils/__pycache__/io.cpython-313.pyc,,\nIPython/utils/__pycache__/ipstruct.cpython-313.pyc,,\nIPython/utils/__pycache__/jsonutil.cpython-313.pyc,,\nIPython/utils/__pycache__/log.cpython-313.pyc,,\nIPython/utils/__pycache__/module_paths.cpython-313.pyc,,\nIPython/utils/__pycache__/openpy.cpython-313.pyc,,\nIPython/utils/__pycache__/path.cpython-313.pyc,,\nIPython/utils/__pycache__/process.cpython-313.pyc,,\nIPython/utils/__pycache__/py3compat.cpython-313.pyc,,\nIPython/utils/__pycache__/sentinel.cpython-313.pyc,,\nIPython/utils/__pycache__/strdispatch.cpython-313.pyc,,\nIPython/utils/__pycache__/sysinfo.cpython-313.pyc,,\nIPython/utils/__pycache__/syspathcontext.cpython-313.pyc,,\nIPython/utils/__pycache__/tempdir.cpython-313.pyc,,\nIPython/utils/__pycache__/terminal.cpython-313.pyc,,\nIPython/utils/__pycache__/text.cpython-313.pyc,,\nIPython/utils/__pycache__/timing.cpython-313.pyc,,\nIPython/utils/__pycache__/tokenutil.cpython-313.pyc,,\nIPython/utils/__pycache__/wildcard.cpython-313.pyc,,\nIPython/utils/_process_cli.py,sha256=tJWYMEgNYgeMx9v-n3YLbKW0tPbFtpczfDH28RC3n4A,2020\nIPython/utils/_process_common.py,sha256=hMFRGOJh-n-uBcSAOnr2qetQXAthMVpS8mwRcZuQqlo,7306\nIPython/utils/_process_emscripten.py,sha256=lGLQb2IgmanNtb502KflfuKIhgOF119Ji3cwo4fnJYg,503\nIPython/utils/_process_posix.py,sha256=aOEtguhS3vdWngBpws1XQURO8Ozqd5gRiCk9VLky6tA,7502\nIPython/utils/_process_win32.py,sha256=Pcf6ZiqMbqDT79edzegE_AX3D367UtE8bbhT41no54A,6775\nIPython/utils/_process_win32_controller.py,sha256=hi2eR7mLbl3TTMCVbgps85GppxdtYbhOYK_l13WvYaM,21343\nIPython/utils/_sysinfo.py,sha256=dBl2xAoPkJnjAen7HGklkADaXbyQjQc9sk00mQOwoCA,45\nIPython/utils/capture.py,sha256=h5yL5Lxq8bgO1SFpoNDYjEi6mh1IW_2X9CE7vOsUxE4,5137\nIPython/utils/coloransi.py,sha256=CML-SkzLa7oaIK1qypb3uwcfPXDeKHxZQiMJ0IWvUY0,293\nIPython/utils/contexts.py,sha256=w5_uXc0WTU3KKV1kcCW9A0_Mz5mGRoeGWMq_P_eo-Dg,1610\nIPython/utils/data.py,sha256=36VVGY1b0JG7_zSdbVSy8IzLqM0uT-uB12TBYWgd1lI,1015\nIPython/utils/decorators.py,sha256=qsYLskFlT2bB_Q-87ttBA56lAf-knWLOe5WiOwPdXFE,2680\nIPython/utils/dir2.py,sha256=wh_yb2_D9EvJ3PkrFGiDXuElAznUzv3gaSuV1Zrllv8,2231\nIPython/utils/docs.py,sha256=QY8n0cFrTS6gePmT3Tppv9Tzgc3Pzlf33XuzAwiE_wE,86\nIPython/utils/encoding.py,sha256=C5fz4yWJ-tnxvYLw0S0fl_GouBtxKh7ZF-BowYv9GyA,3332\nIPython/utils/eventful.py,sha256=idbcT7GyZ43hrX9e6cI2bz7kKr389yMBE9hos6amMzE,138\nIPython/utils/frame.py,sha256=XPVbwf05vtvUA9Ast7oaOJibgtvyYEOc8rJQ5f1cQdo,3122\nIPython/utils/generics.py,sha256=5vFYTtGClMGQVPKKIkDhAY7GsUTdZpffKS2xktkvUBU,705\nIPython/utils/importstring.py,sha256=cuhNA6PqDjOzS2RpDesWkHFAG0zFUcoQ7GpqJwe_1sw,1046\nIPython/utils/io.py,sha256=rKaq1gtIEbvApkvV2IGJo9NAhijstTdQKjIGJvQJQ6Y,3928\nIPython/utils/ipstruct.py,sha256=XPfl1b0rRjISwyG3P1e2kJLSFHawzcPY71UBoa5v7qo,11856\nIPython/utils/jsonutil.py,sha256=2QsAXueCIbbmjyz37Im9yXU41XK_XGJ9aGA7NGilDIs,148\nIPython/utils/log.py,sha256=3tYJLqZEa40zTX0tgKnpb-bvj4NhI64PijiRV6mnc78,123\nIPython/utils/module_paths.py,sha256=lBlarunvhPIzQ0cUoZ6yIIYRYYIqMaaGTZ8IIK5A0IY,2327\nIPython/utils/openpy.py,sha256=bLucY-ZKDkI-chE3CKfJ7O7eJYrfJhZwh0RNQZBTYPM,3396\nIPython/utils/path.py,sha256=7xtVfsVCjvk-p-jpbqSLjOcacsOrXNSQxwlveHjfO_U,10902\nIPython/utils/process.py,sha256=EZkyui1PQgpuDBPvGPxC5a-qWP90KbJYza5SOqr8ltw,1990\nIPython/utils/py3compat.py,sha256=5kCgTyqpVt95crqEXycB8XHashIf-OvHQ_1aWfELniI,1603\nIPython/utils/sentinel.py,sha256=D6q5BelAbtA8f8JIoQV10zGFpqVGJvgUbZbsUVkHRr0,415\nIPython/utils/strdispatch.py,sha256=tNKeUZL1Di7WxxbJiHRc0EEoxhqHWOtakZQbD-NWuvg,1832\nIPython/utils/sysinfo.py,sha256=rbNOtqDKYYYd4v8KK0oCcJikiMmrcoPsFAa--fTTaHE,3720\nIPython/utils/syspathcontext.py,sha256=vMIENCg-3PqpRYcihf0ehNyZ4MzEiS_7G90Agr5dEcI,631\nIPython/utils/tempdir.py,sha256=L3niStyEXLh07TS0mQEY-Nm4sEekBGmk_tlY1_cuSek,1852\nIPython/utils/terminal.py,sha256=YBhc-mYFa6MVujEjjA0KKUaN5uRn9toT1iOYOOGOzfs,3259\nIPython/utils/text.py,sha256=6s-y4KvDmnJxLs0urf5D-1auZGSnj2xmXgQ-9jVu0N8,18788\nIPython/utils/timing.py,sha256=nND-ZUBkHWfYevvbRG-YfOSIFczz_epzMqWK5PH6nqA,4275\nIPython/utils/tokenutil.py,sha256=x6KQ6ZCGOY7j5GQcr7byJRZSBFgyBcfkTiLtjxkl9f8,6552\nIPython/utils/wildcard.py,sha256=6EEc3OEYp-IuSoidL6nwpaHg--GxnzbAJTmFiz77CNE,4612\nipython-9.4.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4\nipython-9.4.0.dist-info/METADATA,sha256=d4dTcreyYD_4S0OE3JSqst9kT1pRCroTCNNwdInBiZY,4431\nipython-9.4.0.dist-info/RECORD,,\nipython-9.4.0.dist-info/WHEEL,sha256=_2vT4RZnosDS5yjNeAMuEbJY3SAaKsQTuZHmdWSC-aI,90\nipython-9.4.0.dist-info/entry_points.txt,sha256=z5BEEohWgg0SHdgdeNABf4T3fu-lr9W6F_bWOQHLdVs,83\nipython-9.4.0.dist-info/licenses/COPYING.rst,sha256=NBr8vXKYh7cEb-e5j8T07f867Y048G7v2bMGcPBD3xc,1639\nipython-9.4.0.dist-info/licenses/LICENSE,sha256=4OOQdI7UQKuJPKHxNaiKkgqvVAnbuQpbQnx1xeUSaPs,1720\nipython-9.4.0.dist-info/top_level.txt,sha256=PKjvHtNCBZ9EHTmd2mwJ1J_k3j0F6D1lTFzIcJFFPEU,8\n | .venv\Lib\site-packages\ipython-9.4.0.dist-info\RECORD | RECORD | Other | 26,137 | 0.85 | 0 | 0 | awesome-app | 744 | 2023-11-17T15:35:22.379177 | GPL-3.0 | false | 0c827fd424f54b2d2d0b496bd7a7b680 |
IPython\n | .venv\Lib\site-packages\ipython-9.4.0.dist-info\top_level.txt | top_level.txt | Other | 8 | 0.5 | 0 | 0 | react-lib | 772 | 2025-06-07T09:25:49.065449 | Apache-2.0 | false | 15857cdaa23c7955592bfccc316d2f32 |
Wheel-Version: 1.0\nGenerator: setuptools (9.4.0)\nRoot-Is-Purelib: true\nTag: py3-none-any\n\n | .venv\Lib\site-packages\ipython-9.4.0.dist-info\WHEEL | WHEEL | Other | 90 | 0.5 | 0 | 0 | awesome-app | 670 | 2024-12-04T01:55:36.138638 | Apache-2.0 | false | 7d0c83c6909e041f35e72d547e3e25fe |
=============================\n The IPython licensing terms\n=============================\n\nIPython is licensed under the terms of the Modified BSD License (also known as\nNew or Revised or 3-Clause BSD). See the LICENSE file.\n\n\nAbout the IPython Development Team\n----------------------------------\n\nFernando Perez began IPython in 2001 based on code from Janko Hauser\n<jhauser@zscout.de> and Nathaniel Gray <n8gray@caltech.edu>. Fernando is still\nthe project lead.\n\nThe IPython Development Team is the set of all contributors to the IPython\nproject. This includes all of the IPython subprojects. \n\nThe core team that coordinates development on GitHub can be found here:\nhttps://github.com/ipython/.\n\nOur Copyright Policy\n--------------------\n\nIPython uses a shared copyright model. Each contributor maintains copyright\nover their contributions to IPython. But, it is important to note that these\ncontributions are typically only changes to the repositories. Thus, the IPython\nsource code, in its entirety is not the copyright of any single person or\ninstitution. Instead, it is the collective copyright of the entire IPython\nDevelopment Team. If individual contributors want to maintain a record of what\nchanges/contributions they have specific copyright on, they should indicate\ntheir copyright in the commit message of the change, when they commit the\nchange to one of the IPython repositories.\n\nWith this in mind, the following banner should be used in any source code file \nto indicate the copyright and license terms:\n\n::\n\n # Copyright (c) IPython Development Team.\n # Distributed under the terms of the Modified BSD License.\n | .venv\Lib\site-packages\ipython-9.4.0.dist-info\licenses\COPYING.rst | COPYING.rst | Other | 1,639 | 0.95 | 0 | 0.066667 | awesome-app | 346 | 2024-02-11T07:34:24.073409 | GPL-3.0 | false | 59b20262b8663cdd094005bddf47af5f |
BSD 3-Clause License\n\n- Copyright (c) 2008-Present, IPython Development Team\n- Copyright (c) 2001-2007, Fernando Perez <fernando.perez@colorado.edu>\n- Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>\n- Copyright (c) 2001, Nathaniel Gray <n8gray@caltech.edu>\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n | .venv\Lib\site-packages\ipython-9.4.0.dist-info\licenses\LICENSE | LICENSE | Other | 1,720 | 0.7 | 0 | 0.115385 | node-utils | 30 | 2025-05-17T17:30:15.245291 | Apache-2.0 | false | 96c7b03c4a9d8babd9ec57b1f0613d78 |
[pygments.lexers]\nipython=ipython_pygments_lexers:IPythonLexer\nipython3=ipython_pygments_lexers:IPython3Lexer\nipythonconsole=ipython_pygments_lexers:IPythonConsoleLexer\n\n | .venv\Lib\site-packages\ipython_pygments_lexers-1.1.1.dist-info\entry_points.txt | entry_points.txt | Other | 170 | 0.7 | 0 | 0 | react-lib | 749 | 2025-01-29T23:26:36.726143 | GPL-3.0 | false | 6a6064a5f6c8ad9401da61936602b465 |
pip\n | .venv\Lib\site-packages\ipython_pygments_lexers-1.1.1.dist-info\INSTALLER | INSTALLER | Other | 4 | 0.5 | 0 | 0 | node-utils | 288 | 2024-09-26T13:16:15.298710 | BSD-3-Clause | false | 365c9bfeb7d89244f2ce01c1de44cb85 |
BSD 3-Clause License\n\n- Copyright (c) 2012-Present, IPython Development Team\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n | .venv\Lib\site-packages\ipython_pygments_lexers-1.1.1.dist-info\LICENSE | LICENSE | Other | 1,535 | 0.7 | 0 | 0.130435 | node-utils | 188 | 2025-02-26T12:50:11.375413 | MIT | false | 59028f809aa24c7b88bff27927343d58 |
Metadata-Version: 2.3\nName: ipython_pygments_lexers\nVersion: 1.1.1\nSummary: Defines a variety of Pygments lexers for highlighting IPython code.\nAuthor-email: The IPython Development Team <ipython-dev@python.org>\nRequires-Python: >=3.8\nDescription-Content-Type: text/markdown\nClassifier: Framework :: IPython\nClassifier: License :: OSI Approved :: BSD License\nRequires-Dist: pygments\nProject-URL: Source, https://github.com/ipython/ipython-pygments-lexers\n\nA [Pygments](https://pygments.org/) plugin for IPython code & console sessions\n\n[IPython](https://ipython.org/) is an interactive Python shell. Among other features,\nit adds some special convenience syntax, including `%magics`, `!shell commands`\nand `help?`. This package contains lexers for these, to use with the Pygments syntax\nhighlighting package.\n\n- The `ipython` lexer should be used where only input code is highlighted\n- The `ipythonconsole` lexer works for an IPython session, including code,\n prompts, output and tracebacks.\n\nThese lexers were previously part of IPython itself (in `IPython.lib.lexers`),\nbut have now been moved to a separate package.\n\n | .venv\Lib\site-packages\ipython_pygments_lexers-1.1.1.dist-info\METADATA | METADATA | Other | 1,121 | 0.8 | 0.153846 | 0 | react-lib | 482 | 2024-09-24T04:59:01.303994 | GPL-3.0 | false | ea6a3b97514abbf349caef460934332a |
__pycache__/ipython_pygments_lexers.cpython-313.pyc,,\nipython_pygments_lexers-1.1.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4\nipython_pygments_lexers-1.1.1.dist-info/LICENSE,sha256=sdDbwPp5d000uOLQrskdUNjK8F97QPwiwwEKS9mtK_k,1535\nipython_pygments_lexers-1.1.1.dist-info/METADATA,sha256=azjAlGvbxHePTjjiKYVHy9fROuupl57E5KQS6r-9-ts,1121\nipython_pygments_lexers-1.1.1.dist-info/RECORD,,\nipython_pygments_lexers-1.1.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82\nipython_pygments_lexers-1.1.1.dist-info/entry_points.txt,sha256=hyhe6r0UvHvZPV9EJvyujIlb8CgtRlQ7R6obhvM_s-Y,170\nipython_pygments_lexers.py,sha256=IPM8mGgS8w15Y3yCSnkvbKYvGAv67t9OwXHwtaKFCpc,19656\n | .venv\Lib\site-packages\ipython_pygments_lexers-1.1.1.dist-info\RECORD | RECORD | Other | 719 | 0.7 | 0 | 0 | node-utils | 799 | 2024-08-24T15:56:41.451113 | MIT | false | 5acec93afd1a0c3f6f5baa5ee795594d |
Wheel-Version: 1.0\nGenerator: flit 3.10.1\nRoot-Is-Purelib: true\nTag: py3-none-any\n | .venv\Lib\site-packages\ipython_pygments_lexers-1.1.1.dist-info\WHEEL | WHEEL | Other | 82 | 0.5 | 0 | 0 | vue-tools | 779 | 2024-07-02T14:35:17.451609 | BSD-3-Clause | false | bef8b3a8022a44402ce1e4466e43ab6f |
# compatibility shim for ipykernel < 6.18\nimport sys\nfrom IPython import get_ipython\nimport comm\n\n\ndef requires_ipykernel_shim():\n if "ipykernel" in sys.modules:\n import ipykernel\n\n version = ipykernel.version_info\n return version < (6, 18)\n else:\n return False\n\n\ndef get_comm_manager():\n if requires_ipykernel_shim():\n ip = get_ipython()\n\n if ip is not None and getattr(ip, "kernel", None) is not None:\n return get_ipython().kernel.comm_manager\n else:\n return comm.get_comm_manager()\n\n\ndef create_comm(*args, **kwargs):\n if requires_ipykernel_shim():\n from ipykernel.comm import Comm\n\n return Comm(*args, **kwargs)\n else:\n return comm.create_comm(*args, **kwargs)\n | .venv\Lib\site-packages\ipywidgets\comm.py | comm.py | Python | 764 | 0.95 | 0.242424 | 0.041667 | node-utils | 65 | 2023-12-06T21:08:49.406229 | BSD-3-Clause | false | b30aa170c06cf3ab6ed1991ac7420862 |
{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "description": "Jupyter Interactive Widget View JSON schema.",\n "type": "object",\n "properties": {\n "version_major": {\n "description": "Format version (major)",\n "type": "number",\n "minimum": 1,\n "maximum": 1\n },\n "version_minor": {\n "description": "Format version (minor)",\n "type": "number"\n },\n "model_id": {\n "description": "Unique identifier of the widget model to be displayed",\n "type": "string"\n },\n "required": ["model_id"]\n },\n "additionalProperties": false\n}\n | .venv\Lib\site-packages\ipywidgets\view.schema.json | view.schema.json | JSON | 595 | 0.95 | 0 | 0 | python-kit | 404 | 2024-12-02T01:46:35.226626 | GPL-3.0 | false | f6de7b07ce09f06dc7f2a8c6eebb728f |
# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n__version__ = '8.1.7'\n\n__protocol_version__ = '2.1.0'\n__control_protocol_version__ = '1.0.0'\n\n# These are *protocol* versions for each package, *not* npm versions. To check, look at each package's src/version.ts file for the protocol version the package implements.\n__jupyter_widgets_base_version__ = '2.0.0'\n__jupyter_widgets_output_version__ = '1.0.0'\n__jupyter_widgets_controls_version__ = '2.0.0'\n\n# A compatible @jupyter-widgets/html-manager npm package semver range\n__html_manager_version__ = '^1.0.1'\n | .venv\Lib\site-packages\ipywidgets\_version.py | _version.py | Python | 610 | 0.8 | 0.133333 | 0.363636 | python-kit | 383 | 2024-05-23T07:52:38.250972 | MIT | false | 84ad641284126969d5300a71203a9408 |
# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n"""Interactive widgets for the Jupyter notebook.\n\nProvide simple interactive controls in the notebook.\nEach Widget corresponds to an object in Python and Javascript,\nwith controls on the page.\n\nTo put a Widget on the page, you can display it with Jupyter's display machinery::\n\n from ipywidgets import IntSlider\n slider = IntSlider(min=1, max=10)\n display(slider)\n\nMoving the slider will change the value. Most Widgets have a current value,\naccessible as a `value` attribute.\n"""\n\n# Must import __version__ first to avoid errors importing this file during the build process. See https://github.com/pypa/setuptools/issues/1724#issuecomment-627241822\nfrom ._version import __version__, __protocol_version__, __jupyter_widgets_controls_version__, __jupyter_widgets_base_version__\n\nimport os\nimport sys\n\nfrom traitlets import link, dlink\nfrom IPython import get_ipython\n\nfrom .widgets import *\n\n\ndef load_ipython_extension(ip):\n """Set up Jupyter to work with widgets"""\n if not hasattr(ip, 'kernel'):\n return\n register_comm_target()\n\ndef register_comm_target(kernel=None):\n """Register the jupyter.widget comm target"""\n from . import comm\n comm_manager = comm.get_comm_manager()\n if comm_manager is None:\n return\n comm_manager.register_target('jupyter.widget', Widget.handle_comm_opened)\n comm_manager.register_target('jupyter.widget.control', Widget.handle_control_comm_opened)\n\ndef _handle_ipython():\n """Register with the comm target at import if running in Jupyter"""\n ip = get_ipython()\n if ip is None:\n return\n register_comm_target()\n\n_handle_ipython()\n | .venv\Lib\site-packages\ipywidgets\__init__.py | __init__.py | Python | 1,728 | 0.95 | 0.148148 | 0.075 | vue-tools | 226 | 2024-08-23T08:57:40.107044 | Apache-2.0 | false | b350109ed9513c4aca6da0e8d4f77540 |
\nfrom io import StringIO\nfrom html.parser import HTMLParser\nimport json\nimport os\nimport re\nimport tempfile\nimport shutil\n\nimport traitlets\n\nfrom ..widgets import IntSlider, IntText, Text, Widget, jslink, HBox, widget_serialization, widget as widget_module\nfrom ..embed import embed_data, embed_snippet, embed_minimal_html, dependency_state\n\n\nclass CaseWidget(Widget):\n """Widget to test dependency traversal"""\n\n a = traitlets.Instance(Widget, allow_none=True).tag(sync=True, **widget_serialization)\n b = traitlets.Instance(Widget, allow_none=True).tag(sync=True, **widget_serialization)\n\n _model_name = traitlets.Unicode('CaseWidgetModel').tag(sync=True)\n\n other = traitlets.Dict().tag(sync=True, **widget_serialization)\n\n\n\n\nclass TestEmbed:\n\n def teardown(self):\n for w in tuple(widget_module._instances.values()):\n w.close()\n\n def test_embed_data_simple(self):\n w = IntText(4)\n state = dependency_state(w, drop_defaults=True)\n data = embed_data(views=w, drop_defaults=True, state=state)\n\n state = data['manager_state']['state']\n views = data['view_specs']\n\n assert len(state) == 3\n assert len(views) == 1\n\n model_names = [s['model_name'] for s in state.values()]\n assert 'IntTextModel' in model_names\n\n def test_cors(self):\n w = IntText(4)\n code = embed_snippet(w)\n # 1 is from the require\n assert len(re.findall(' crossorigin', code)) > 1\n f = StringIO()\n embed_minimal_html(f, w)\n assert len(re.findall(' crossorigin', f.getvalue())) > 1\n\n code = embed_snippet(w, cors=False, requirejs=False)\n assert ' crossorigin' not in code\n f = StringIO()\n embed_minimal_html(f, w, cors=False, requirejs=False)\n assert ' crossorigin' not in f.getvalue()\n\n code = embed_snippet(w, cors=False, requirejs=True)\n assert len(re.findall(' crossorigin', code)) == 1 # 1 is from the require, which is ok\n f = StringIO()\n embed_minimal_html(f, w, cors=False, requirejs=True)\n assert len(re.findall(' crossorigin', f.getvalue())) == 1 # 1 is from the require, which is ok\n\n def test_escape(self):\n w = Text('<script A> <ScRipt> </Script> <!-- --> <b>hi</b>')\n code = embed_snippet(w)\n assert code.find(r'<script A>') == -1\n assert code.find(r'\u003cscript A> \u003cScRipt> \u003c/Script> \u003c!-- --> <b>hi</b>') >= 0\n\n f = StringIO()\n embed_minimal_html(f, w)\n content = f.getvalue()\n assert content.find(r'<script A>') == -1\n assert content.find(r'\u003cscript A> \u003cScRipt> \u003c/Script> \u003c!-- --> <b>hi</b>') >= 0\n\n def test_embed_data_two_widgets(self):\n w1 = IntText(4)\n w2 = IntSlider(min=0, max=100)\n jslink((w1, 'value'), (w2, 'value'))\n state = dependency_state([w1, w2], drop_defaults=True)\n data = embed_data(views=[w1, w2], drop_defaults=True, state=state)\n\n state = data['manager_state']['state']\n views = data['view_specs']\n\n assert len(state) == 7\n assert len(views) == 2\n\n model_names = [s['model_name'] for s in state.values()]\n assert 'IntTextModel' in model_names\n assert 'IntSliderModel' in model_names\n\n def test_embed_data_complex(self):\n w1 = IntText(4)\n w2 = IntSlider(min=0, max=100)\n jslink((w1, 'value'), (w2, 'value'))\n\n w3 = CaseWidget()\n w3.a = w1\n\n w4 = CaseWidget()\n w4.a = w3\n w4.other['test'] = w2\n\n # Add a circular reference:\n w3.b = w4\n\n # Put it in an HBox\n HBox(children=[w4])\n\n state = dependency_state(w3)\n\n assert len(state) == 9\n\n model_names = [s['model_name'] for s in state.values()]\n assert 'IntTextModel' in model_names\n assert 'IntSliderModel' in model_names\n assert 'CaseWidgetModel' in model_names\n assert 'LinkModel' in model_names\n\n # Check that HBox is not collected\n assert 'HBoxModel' not in model_names\n\n # Check that views make sense:\n\n data = embed_data(views=w3, drop_defaults=True, state=state)\n assert state is data['manager_state']['state']\n views = data['view_specs']\n assert len(views) == 1\n\n\n def test_snippet(self):\n\n class Parser(HTMLParser):\n state = 'initial'\n states = []\n\n def handle_starttag(self, tag, attrs):\n attrs = dict(attrs)\n if tag == 'script' and attrs.get('type', '') == "application/vnd.jupyter.widget-state+json":\n self.state = 'widget-state'\n self.states.append(self.state)\n elif tag == 'script' and attrs.get('type', '') == "application/vnd.jupyter.widget-view+json":\n self.state = 'widget-view'\n self.states.append(self.state)\n\n def handle_endtag(self, tag):\n self.state = 'initial'\n\n def handle_data(self, data):\n if self.state == 'widget-state':\n manager_state = json.loads(data)['state']\n assert len(manager_state) == 3\n self.states.append('check-widget-state')\n elif self.state == 'widget-view':\n view = json.loads(data)\n assert isinstance(view, dict)\n self.states.append('check-widget-view')\n\n w = IntText(4)\n state = dependency_state(w, drop_defaults=True)\n snippet = embed_snippet(views=w, drop_defaults=True, state=state)\n parser = Parser()\n parser.feed(snippet)\n print(parser.states)\n assert parser.states == ['widget-state', 'check-widget-state', 'widget-view', 'check-widget-view']\n\n def test_minimal_html_filename(self):\n w = IntText(4)\n\n tmpd = tempfile.mkdtemp()\n\n try:\n output = os.path.join(tmpd, 'test.html')\n state = dependency_state(w, drop_defaults=True)\n embed_minimal_html(output, views=w, drop_defaults=True, state=state)\n # Check that the file is written to the intended destination:\n with open(output, 'r') as f:\n content = f.read()\n assert content.splitlines()[0] == '<!DOCTYPE html>'\n finally:\n shutil.rmtree(tmpd)\n\n def test_minimal_html_filehandle(self):\n w = IntText(4)\n output = StringIO()\n state = dependency_state(w, drop_defaults=True)\n embed_minimal_html(output, views=w, drop_defaults=True, state=state)\n content = output.getvalue()\n assert content.splitlines()[0] == '<!DOCTYPE html>'\n | .venv\Lib\site-packages\ipywidgets\tests\test_embed.py | test_embed.py | Python | 6,729 | 0.95 | 0.112245 | 0.040541 | vue-tools | 710 | 2025-03-29T21:25:51.266073 | BSD-3-Clause | true | 972b0624ae83ab77f44281315f278801 |
\n\n | .venv\Lib\site-packages\ipywidgets\tests\__pycache__\test_embed.cpython-313.pyc | test_embed.cpython-313.pyc | Other | 10,602 | 0.95 | 0 | 0 | node-utils | 329 | 2024-09-04T08:22:56.732012 | GPL-3.0 | true | 0943529c15fc1303bb37cac1301a2d1b |
\n\n | .venv\Lib\site-packages\ipywidgets\tests\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 191 | 0.7 | 0 | 0 | react-lib | 411 | 2024-08-01T19:57:52.019784 | BSD-3-Clause | true | 728803d8371a16d3a0959d4b4c3e6f53 |
# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\ndef doc_subst(snippets):\n """ Substitute format strings in class or function docstring """\n def decorator(cls):\n # Running python with -OO will discard docstrings (__doc__ is None).\n if cls.__doc__ is not None:\n # Strip the snippets to avoid trailing new lines and whitespace\n stripped_snippets = {\n key: snippet.strip() for (key, snippet) in snippets.items()\n }\n cls.__doc__ = cls.__doc__.format(**stripped_snippets)\n return cls\n return decorator\n | .venv\Lib\site-packages\ipywidgets\widgets\docutils.py | docutils.py | Python | 639 | 0.95 | 0.4 | 0.285714 | awesome-app | 970 | 2024-07-06T14:59:03.896619 | Apache-2.0 | false | 77de8dfd6b31dae98045c1213d7dadcb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.