MCPcopy Create free account

hub / github.com/ipython/ipython / functions

Functions3,293 in github.com/ipython/ipython

↓ 6 callersMethodload_extension
Load an IPython extension by its module name. Returns the string "already loaded" if the extension is already loaded, "no load functi
IPython/core/extensions.py:65
↓ 6 callersMethodprocess_input_line
(self, line, store_history)
IPython/sphinxext/ipython_directive.py:393
↓ 6 callersMethodrun_cell
Execute a string with one or more lines of code
IPython/lib/demo.py:446
↓ 6 callersMethodset
Set the hook.
IPython/core/display_trap.py:61
↓ 6 callersMethodstart
(self)
IPython/terminal/ipapp.py:172
↓ 6 callersMethodstore_inputs
Store source and raw input in history and create input cache variables ``_i*``. Parameters ---------- line_num : int
IPython/core/history.py:691
↓ 6 callersFunctionsystem
system(cmd) should work in a cli environment on Mac OSX, Linux, and Windows
IPython/utils/_process_cli.py:34
↓ 6 callersFunctiontransform_checker
Utility to loop over test inputs
IPython/core/tests/test_inputtransformer.py:21
↓ 6 callersMethodwait
(self)
IPython/testing/iptestcontroller.py:74
↓ 5 callersMethod__init__
(self, color_scheme='NoColor', call_pdb=False, ostream=None, parent=None, config=None)
IPython/core/ultratb.py:618
↓ 5 callersMethod__init__
(self, data=None, url=None, filename=None, metadata=None)
IPython/core/display.py:703
↓ 5 callersMethod_data_and_metadata
(self)
IPython/core/display.py:908
↓ 5 callersFunction_elide
(string:str, typed:str, min_elide=30)
IPython/terminal/ptutils.py:70
↓ 5 callersFunction_mod_name_key
Return a (__module__, __name__) tuple for a type. Used as key in Formatter.deferred_printers.
IPython/core/formatters.py:264
↓ 5 callersFunction_safe_getattr
Safe version of getattr. Same as getattr, but will return ``default`` on any Exception, rather than raising.
IPython/lib/pretty.py:102
↓ 5 callersFunction_writable_dir
Whether `path` is a directory, to which the user has write access.
IPython/utils/path.py:25
↓ 5 callersMethodask_exit
(self)
IPython/terminal/interactiveshell.py:532
↓ 5 callersFunctioncheck_find
(transformer, case, match=True)
IPython/core/tests/test_inputtransformer2.py:154
↓ 5 callersMethodcheck_ns
Validate that the given input lines produce the resulting namespace. Note: the input lines are given exactly as they would be typed in an
IPython/core/tests/test_inputsplitter.py:353
↓ 5 callersMethodclear_cout
(self)
IPython/sphinxext/ipython_directive.py:389
↓ 5 callersFunctionensure_dir_exists
ensure that a directory exists If it doesn't exist, try to create it and protect against a race condition if another process is doing the sam
IPython/utils/path.py:421
↓ 5 callersMethodfind_user_code
Get a code string from history, file, url, or a string or macro. This is mainly used by magic functions. Parameters --------
IPython/core/interactiveshell.py:3666
↓ 5 callersMethodflush
(self)
IPython/testing/globalipapp.py:44
↓ 5 callersFunctiongenerate_tokens
wrap generate_tokens to catch EOF errors
IPython/utils/tokenutil.py:15
↓ 5 callersFunctionget_paged_request
get a full list, handling APIv3's paging
tools/gh_api.py:132
↓ 5 callersMethodget_tail
Get the last n lines from the history database. Parameters ---------- n : int The number of lines to get ra
IPython/core/history.py:344
↓ 5 callersMethodgetdoc
(self)
IPython/core/tests/test_oinspect.py:244
↓ 5 callersFunctiongetoutput
getoutput(cmd) should work in a cli environment on Mac OSX, Linux, and Windows
IPython/utils/_process_cli.py:47
↓ 5 callersFunctioninput
(prompt='')
IPython/utils/py3compat.py:146
↓ 5 callersMethodis_alias
Return whether or not a given name has been defined as an alias
IPython/core/alias.py:238
↓ 5 callersFunctionmake_tokens_by_line
Tokenize a series of lines and group tokens by line. The tokens for a multiline Python string or expression are grouped as one line. All line
IPython/core/inputtransformer2.py:468
↓ 5 callersFunctionpatch_get_home_dir
(dirpath)
IPython/core/tests/test_paths.py:44
↓ 5 callersMethodregister_magic_function
(self, func, magic_kind='line', magic_name=None)
IPython/core/interactiveshell.py:2281
↓ 5 callersMethodreset
Reset the namespace and seek pointer to restart the demo
IPython/lib/demo.py:336
↓ 5 callersMethodset_active_scheme
(self, scheme)
IPython/core/oinspect.py:383
↓ 5 callersMethodset_hook
set_hook(name,hook) -> sets an internal IPython hook. IPython exposes some of its internal API as user-modifiable hooks. By adding y
IPython/core/interactiveshell.py:1012
↓ 5 callersMethodshow
Show a single block on screen
IPython/lib/demo.py:416
↓ 5 callersMethodsource_reset
Return the input source and perform a full reset.
IPython/core/inputsplitter.py:345
↓ 5 callersMethodstop
This can be called from the main thread to safely stop this thread. Note that it does not attempt to write out remaining history before
IPython/core/history.py:839
↓ 5 callersMethodtime
Time execution of a Python statement or expression. The CPU and wall clock times are printed, and the value of the expression (if any
IPython/core/magics/execution.py:1204
↓ 4 callersMethod__init__
(self, data=None, url=None, filename=None, language=None)
IPython/lib/display.py:626
↓ 4 callersMethod_get_exc_info
get exc_info from a given tuple, sys.exc_info() or sys.last_type etc. Ensures sys.last_type,value,traceback hold the exc_info we foun
IPython/core/interactiveshell.py:1959
↓ 4 callersMethod_mkdir
ensure a directory exists at a given path This is a version of os.mkdir, with the following differences: - returns True if it create
IPython/core/profiledir.py:71
↓ 4 callersMethod_repr_html_
(self)
IPython/lib/display.py:644
↓ 4 callersMethod_store
Store one or more lines of input. If input lines are not newline-terminated, a newline is automatically appended.
IPython/core/inputsplitter.py:514
↓ 4 callersFunction_use_appnope
Should we use appnope for dealing with OS X app nap? Checks if we are on OS X 10.9 or greater.
IPython/lib/inputhook.py:62
↓ 4 callersMethodassert_inode_equal
(self, a, b)
IPython/utils/tests/test_path.py:437
↓ 4 callersMethodcache
Make a name for a block of code, and cache the code. Parameters ---------- code : str The Python source code to cac
IPython/core/compilerop.py:115
↓ 4 callersMethodcheck_complete
Return whether a block of code is ready to execute, or should be continued This is a non-stateful API, and will reset the state of th
IPython/core/inputsplitter.py:352
↓ 4 callersMethodcheck_ident
(self, magic)
IPython/core/tests/test_magic.py:797
↓ 4 callersFunctioncheck_transform
(transformer_cls, case)
IPython/core/tests/test_inputtransformer2.py:165
↓ 4 callersFunctioncompress_user
Reverse of :func:`os.path.expanduser`
IPython/utils/path.py:84
↓ 4 callersFunctionembed
Call this to embed IPython at the current point in your program. The first invocation of this will create an :class:`InteractiveShellEmbed` i
IPython/terminal/embed.py:337
↓ 4 callersMethodfind_cell_magic
Find and return a cell magic by name. Returns None if the magic isn't found.
IPython/core/interactiveshell.py:2390
↓ 4 callersFunctionfind_file
Find the absolute path to the file where an object was defined. This is essentially a robust wrapper around `inspect.getabsfile`. Returns No
IPython/core/oinspect.py:287
↓ 4 callersMethodfind_profile_dir_by_name
Find an existing profile dir by profile name, return its ProfileDir. This searches through a sequence of paths for a profile dir. If it
IPython/core/profiledir.py:182
↓ 4 callersMethodget_exception_only
Only print the exception type and message, without a traceback. Parameters ---------- etype : exception type value :
IPython/core/ultratb.py:815
↓ 4 callersFunctionget_home_dir
Return the 'home' directory, as a unicode string. Uses os.path.expanduser('~'), and checks for writability. See stdlib docs for how this is
IPython/utils/path.py:170
↓ 4 callersFunctionget_ipython
()
IPython/testing/globalipapp.py:48
↓ 4 callersFunctionget_output_error_code
Return (standard output, standard error, return code) of executing cmd in a shell. Accepts the same arguments as os.system(). Parameters
IPython/utils/_process_common.py:153
↓ 4 callersFunctionget_py_filename
Return a valid python filename in the current directory. If the given name is not a file, it adds '.py' and searches again. Raises IOError wi
IPython/utils/path.py:92
↓ 4 callersMethodget_range
Retrieve input by session. Parameters ---------- session : int Session number to retrieve. The current se
IPython/core/history.py:653
↓ 4 callersMethodget_range_by_str
Get lines of history from a string of ranges, as used by magic commands %hist, %save, %macro, etc. Parameters ----------
IPython/core/history.py:451
↓ 4 callersFunctionget_real_method
Like getattr, but with a few extra sanity checks: - If obj is a class, ignore everything except class methods - Check if obj is a proxy that
IPython/utils/dir2.py:54
↓ 4 callersFunctiongreedy_completion
()
IPython/core/tests/test_completer.py:38
↓ 4 callersMethodinit_profile_dir
initialize the profile dir
IPython/core/application.py:353
↓ 4 callersMethodinit_user_ns
Initialize all user-visible namespaces to their minimum defaults. Certain history lists are also initialized here, as they effectively
IPython/core/interactiveshell.py:1344
↓ 4 callersMethodinteract
(self, display_banner=DISPLAY_BANNER_DEPRECATED)
IPython/terminal/interactiveshell.py:537
↓ 4 callersMethodload_config_file
Load the config file. By default, errors in loading config are handled, and a warning printed on screen. For testing, the suppress_er
IPython/core/application.py:289
↓ 4 callersFunctionloaded_api
Return which API is loaded, if any If this returns anything besides None, importing any other Qt binding is unsafe. Returns -------
IPython/external/qt_loaders.py:85
↓ 4 callersMethodlogstart
Start logging anywhere in a session. %logstart [-o|-r|-t|-q] [log_name [log_mode]] If no name is given, it defaults to a file named
IPython/core/magics/logging.py:39
↓ 4 callersMethodlogstop
Fully stop logging and close log file. In order to start logging again, a new %logstart call needs to be made, possibly (though not n
IPython/core/magics/logging.py:165
↓ 4 callersMethodlsmagic
List currently available magic functions.
IPython/core/magics/basic.py:179
↓ 4 callersMethodmagic_autoreload
(self, parameter)
IPython/extensions/tests/test_autoreload.py:58
↓ 4 callersMethodmktempfile
Make a new tempfile and return its filename. This makes a call to tempfile.mkstemp (created in a tempfile.mkdtemp), but it registers
IPython/core/interactiveshell.py:3593
↓ 4 callersFunctionn
create a selector name (for ObjC methods)
IPython/terminal/pt_inputhooks/osx.py:29
↓ 4 callersMethodnew_module
(self, code)
IPython/extensions/tests/test_autoreload.py:117
↓ 4 callersMethodnoinfo
Generic message when no information is found.
IPython/core/oinspect.py:388
↓ 4 callersFunctionprocess_handler
Open a command in a shell subprocess and execute a callback. This function provides common scaffolding for creating subprocess.Popen() calls.
IPython/utils/_process_common.py:43
↓ 4 callersMethodraise_error
Reraises error if `success` is `False`, otherwise does nothing
IPython/core/interactiveshell.py:326
↓ 4 callersFunctionread_wav
(data)
IPython/lib/tests/test_display.py:258
↓ 4 callersFunctionrecord_magic
Utility function to store a function as a magic of a specific kind. Parameters ---------- dct : dict A dictionary with 'line' and '
IPython/core/magic.py:112
↓ 4 callersMethodreset
Reset the input buffer and associated state.
IPython/core/inputsplitter.py:337
↓ 4 callersMethodreset_tokenizer
(self)
IPython/core/inputtransformer.py:128
↓ 4 callersMethodrun
Runs the process, using the provided functions for I/O. The function stdin_func should return strings whenever a character or charact
IPython/utils/_process_win32_controller.py:392
↓ 4 callersMethodrun_code
(self, code)
IPython/extensions/tests/test_autoreload.py:50
↓ 4 callersFunctionsafe_hasattr
In recent versions of Python, hasattr() only catches AttributeError. This catches all errors.
IPython/utils/dir2.py:12
↓ 4 callersMethodshowsyntaxerror
Display the syntax error that just occurred. This doesn't display a stack trace because there isn't one. If a filename is given, it
IPython/core/interactiveshell.py:2069
↓ 4 callersMethodstb2text
Convert a structured traceback (a list) to a string.
IPython/core/ultratb.py:576
↓ 4 callersFunctionstdin_ready
()
IPython/lib/inputhookglut.py:84
↓ 4 callersMethodstore_or_execute
Execute a block, or store it in a variable, per the user's request.
IPython/terminal/magics.py:43
↓ 4 callersFunctiontransform
(inp)
IPython/core/tests/test_inputtransformer.py:12
↓ 4 callersMethodundefine_alias
(self, name)
IPython/core/alias.py:242
↓ 4 callersMethodwho_ls
Return a sorted list of all interactive variables. If arguments are given, only variables of types matching these arguments are retur
IPython/core/magics/namespace.py:247
↓ 4 callersMethodwrite_file
Write a file, and force a timestamp difference of at least one second Notes ----- Python's .pyc files record the tim
IPython/extensions/tests/test_autoreload.py:94
↓ 3 callersMethod__init__
(self, shell=None, **kwargs)
IPython/core/prefilter.py:120
↓ 3 callersMethod__init__
(self, name, includes)
IPython/testing/iptest.py:151
↓ 3 callersMethod__setattr__
Set an attr with protection of class members. This calls :meth:`self.__setitem__` but convert :exc:`KeyError` to :exc:`AttributeError
IPython/utils/ipstruct.py:90
↓ 3 callersMethod_check_return
Check that a return value is appropriate Return the value if so, None otherwise, warning if invalid.
IPython/core/formatters.py:359
↓ 3 callersMethod_complete
Like complete but can also returns raw jedi completions as well as the origin of the completion text. This could (and should) be mad
IPython/core/completer.py:1958
← previousnext →101–200 of 3,293, ranked by callers