MCPcopy Create free account

hub / github.com/ipython/ipython / functions

Functions3,293 in github.com/ipython/ipython

↓ 137 callersFunctionget_ipython
Get the global InteractiveShell instance. Returns None if no InteractiveShell instance is registered.
IPython/core/getipython.py:17
↓ 110 callersMethodrun_cell
Run a complete IPython cell. Parameters ---------- raw_cell : str The code (including IPython code such as %magic f
IPython/core/interactiveshell.py:2850
↓ 75 callersMethodformat
Return a format data dict for an object. By default all format types will be computed. The following MIME types are usually implemen
IPython/core/formatters.py:89
↓ 71 callersMethodformat
(self, raw, out=None, scheme=Undefined)
IPython/utils/PyColorize.py:199
↓ 64 callersMethodmagic
Print information about the magic function system. Supported formats: -latex, -brief, -rest
IPython/core/magics/basic.py:204
↓ 57 callersMethodpop
Pop a formatter for the given type. Parameters ---------- typ : type or '__module__.__name__' string for a type defau
IPython/core/formatters.py:509
↓ 51 callersMethodread
(self)
IPython/core/tests/test_display.py:92
↓ 51 callersMethodupdate
(self)
IPython/core/display.py:825
↓ 46 callersMethodwarn
()
IPython/core/display.py:704
↓ 43 callersMethodwrite
DEPRECATED: Write a string to the default output
IPython/core/interactiveshell.py:3618
↓ 42 callersMethodclose
Close the file and restore the channel.
IPython/utils/io.py:134
↓ 41 callersMethodpretty
Pretty print the given object.
IPython/lib/pretty.py:356
↓ 40 callersMethodwrite
Write data to both channels.
IPython/utils/io.py:141
↓ 37 callersMethodpush
(self, line)
IPython/core/tests/test_inputsplitter.py:468
↓ 34 callersMethodgroup
like begin_group / end_group but for the with statement.
IPython/lib/pretty.py:169
↓ 31 callersMethodcomplete
Return the next possible completion for 'text'. This is called successively with state == 0, 1, 2, ... until it returns None. The co
IPython/core/completer.py:633
↓ 29 callersMethodremove
(self, group)
IPython/lib/pretty.py:496
↓ 27 callersMethodparse_options
Parse options passed to an argument string. The interface is similar to that of :func:`getopt.getopt`, but it returns a :class:`~IPyt
IPython/core/magic.py:575
↓ 26 callersMethodmktmp
Make a valid python temp file.
IPython/testing/tools.py:271
↓ 24 callersMethodcopy
Return a copy as a Struct. Examples -------- >>> s = Struct(a=10,b=30) >>> s2 = s.copy() >>> type(s2) is Str
IPython/utils/ipstruct.py:234
↓ 24 callersFunctionf
()
IPython/core/tests/refbug.py:38
↓ 24 callersMethodregister
Register a new event callback. Parameters ---------- event : str The event for which to register this callb
IPython/core/events.py:42
↓ 21 callersMethodadd
Add a func to the cmd chain with given priority
IPython/core/hooks.py:122
↓ 21 callersMethodinfo
DEPRECATED. Compute a dict with detailed information about an object.
IPython/core/oinspect.py:685
↓ 21 callersMethodsort
sort by specified fields (see fields()) Example:: a.sort(1, nums = True) Sorts a by second field, in numerical order (
IPython/utils/text.py:203
↓ 20 callersMethodshowtraceback
Display the exception that just occurred. If nothing is known about the exception, this is the method which should be used throughout
IPython/core/interactiveshell.py:2007
↓ 20 callersMethodtext
Add literal text to the output.
IPython/lib/pretty.py:216
↓ 19 callersFunctiondedent
Equivalent of textwrap.dedent that ignores unindented first line. This means it will still dedent strings like: '''foo is a bar '''
IPython/utils/text.py:359
↓ 19 callersMethodrun_cell_magic
Execute the given cell magic. Parameters ---------- magic_name : str Name of the desired magic function, without '%
IPython/core/interactiveshell.py:2339
↓ 19 callersMethodrun_line_magic
Execute the given line magic. Parameters ---------- magic_name : str Name of the desired magic function, without '%
IPython/core/interactiveshell.py:2285
↓ 19 callersMethodsearch
Search the database using unix glob-style matching (wildcards * and ?). Parameters ---------- pattern : str
IPython/core/history.py:372
↓ 18 callersMethodflush
(self)
IPython/core/displayhook.py:285
↓ 16 callersMethodadd
(self, obj, width)
IPython/lib/pretty.py:437
↓ 15 callersMethodfind
Find the first help command (foo?) in the cell.
IPython/core/inputtransformer2.py:430
↓ 15 callersMethodget_indent_spaces
(self)
IPython/core/inputsplitter.py:499
↓ 15 callersMethodpush_accepts_more
Return whether a block of interactive input can accept more input. This method is meant to be used by line-oriented frontends, who need to
IPython/core/inputsplitter.py:444
↓ 15 callersMethodsystem
Execute a command in a subshell. Parameters ---------- cmd : str A command to be executed in the system shell.
IPython/utils/_process_posix.py:121
↓ 14 callersMethodreset
(self)
IPython/core/tests/test_inputsplitter.py:471
↓ 13 callersFunctiondisplay
Display a Python object in all frontends. By default all representations will be computed and sent to the frontends. Frontends can decide whi
IPython/core/display.py:131
↓ 13 callersMethodfor_type
Add a format function for a given type. Parameters ---------- typ : type or '__module__.__name__' string for a type
IPython/core/formatters.py:431
↓ 13 callersFunctiontransform_and_reset
(transformer)
IPython/core/tests/test_inputtransformer.py:10
↓ 12 callersMethod_inspect
Generic interface to the inspector system. This function is meant to be called by pdef, pdoc & friends.
IPython/core/interactiveshell.py:1743
↓ 12 callersMethodflush
Flush both channels.
IPython/utils/io.py:147
↓ 11 callersFunctionimport_item
Import and return ``bar`` given the string ``foo.bar``. Calling ``bar = import_item("foo.bar")`` is the functional equivalent of executing th
IPython/utils/importstring.py:10
↓ 11 callersMethodpage
Pretty print the object and display it through a pager. %page [options] OBJECT If no object is given, use _ (last output).
IPython/core/magics/basic.py:279
↓ 11 callersMethodtransform_cell
Transform an input cell before parsing it. Static transformations, implemented in IPython.core.inputtransformer2, deal with things li
IPython/core/interactiveshell.py:3164
↓ 10 callersFunction_display_mimetype
internal implementation of all display_foo methods Parameters ---------- mimetype : str The mimetype to be published (e.g. 'image
IPython/core/display.py:53
↓ 10 callersMethodfind_line_magic
Find and return a line magic by name. Returns None if the magic isn't found.
IPython/core/interactiveshell.py:2384
↓ 10 callersMethodget_handler_by_name
Get a handler by its name.
IPython/core/prefilter.py:234
↓ 10 callersFunctioninstall_editor
Installs the editor that is called by IPython for the %edit magic. This overrides the default editor, which is generally set by your EDITOR e
IPython/lib/editorhooks.py:19
↓ 10 callersMethodlookup_by_type
Look up the registered formatter for a type. Parameters ---------- typ : type or '__module__.__name__' string for a type
IPython/core/formatters.py:397
↓ 10 callersFunctionmake_auth_header
()
tools/gh_api.py:81
↓ 10 callersMethodparse_argstring
Split a string into an argument list and parse that argument list.
IPython/core/magic_arguments.py:132
↓ 10 callersFunctionprovisionalcompleter
This context manager has to be used in any place where unstable completer behavior and API may be called. >>> with provisionalcomplete
IPython/core/completer.py:184
↓ 10 callersMethodseek
Move the current seek pointer to the given block. You can use negative indices to seek from the end, with identical semantics to thos
IPython/lib/demo.py:360
↓ 10 callersMethodtext
Return formatted traceback. Subclasses may override this if they add extra arguments.
IPython/core/ultratb.py:580
↓ 9 callersMethod_ofind
Find an object in the available namespaces. self._ofind(oname) -> dict with keys: found,obj,ospace,ismagic Has special code to detec
IPython/core/interactiveshell.py:1603
↓ 9 callersMethodbreakable
Add a breakable separator to the output. This does not mean that it will automatically break here. If no breaking on this position
IPython/lib/pretty.py:231
↓ 9 callersFunctionclock
clock() -> floating point number Return the *TOTAL USER+SYSTEM* CPU time in seconds since the start of the process. This is done via
IPython/utils/timing.py:44
↓ 9 callersMethoddebug
Activate the interactive debugger. This magic command support two ways of activating debugger. One is to activate debugger before exe
IPython/core/magics/execution.py:441
↓ 9 callersMethoderror
Raise a catchable error instead of exiting.
IPython/core/magic_arguments.py:127
↓ 9 callersMethodex
Execute a normal python statement in user namespace.
IPython/core/interactiveshell.py:2682
↓ 9 callersMethodexecute
(*args, **kwargs)
IPython/core/history.py:39
↓ 9 callersMethodparse
(self, fmt_string)
IPython/utils/text.py:592
↓ 9 callersMethodstart
(self)
IPython/core/historyapp.py:152
↓ 9 callersMethodtrigger
Call callbacks for ``event``. Any additional arguments are passed to all callbacks registered for this event. Exceptions rais
IPython/core/events.py:80
↓ 8 callersMethodcompletions
Returns an iterator over the possible completions .. warning:: Unstable This function is unstable, API may change witho
IPython/core/completer.py:1766
↓ 8 callersFunctionget_ipython_dir
Get the IPython directory for this platform and user. This uses the logic in `get_home_dir` to find the home directory and then adds .ipython
IPython/paths.py:15
↓ 8 callersFunctionmagic_run_completer
Complete files that end in .py or .ipy or .ipynb for the %run command.
IPython/core/completerlib.py:261
↓ 8 callersMethodnew
Add a new background job and start it in a separate thread. There are two types of jobs which can be created: 1. Jobs based on expre
IPython/lib/backgroundjobs.py:106
↓ 8 callersFunctionparse_argstring
Parse the string of arguments for the given magic function.
IPython/core/magic_arguments.py:161
↓ 8 callersMethodpaste
Paste input text, by default in quiet mode
IPython/core/tests/test_magic_terminal.py:82
↓ 8 callersMethodset_custom_exc
set_custom_exc(exc_tuple, handler) Set a custom exception handler, which will be called if any of the exceptions in exc_tuple occur i
IPython/core/interactiveshell.py:1835
↓ 8 callersMethodset_mode
Switch to the desired mode. If mode is not specified, cycles through the available modes.
IPython/core/ultratb.py:1354
↓ 7 callersMethod_repr_mime_
(self, mime)
IPython/utils/capture.py:28
↓ 7 callersFunctionarg_split
Split a command line's arguments in a shell-like manner. This is a special version for windows that use a ctypes call to CommandLineToArgvW
IPython/utils/_process_win32.py:179
↓ 7 callersMethoddefine_alias
Define a new alias after validating it. This will raise an :exc:`AliasError` if there are validation problems.
IPython/core/alias.py:223
↓ 7 callersMethoddst
(self, *args)
IPython/utils/tests/test_path.py:430
↓ 7 callersFunctionexpect_token
(expected, cell, cursor_pos)
IPython/utils/tests/test_tokenutil.py:9
↓ 7 callersMethodflush
Flush data that is left in the buffer.
IPython/lib/pretty.py:297
↓ 7 callersFunctionget_ipython_package_dir
Get the base directory where IPython itself is installed.
IPython/paths.py:87
↓ 7 callersMethodlookup
Look up the formatter for a given instance. Parameters ---------- obj : object instance Returns ---
IPython/core/formatters.py:374
↓ 7 callersMethodpush
Push one or more lines of input. This stores the given lines and returns a status code indicating whether the code forms a complete P
IPython/core/inputsplitter.py:388
↓ 7 callersFunctionreload
Recursively reload all modules used in the given module. Optionally takes a list of modules to exclude from reloading. The default exclude l
IPython/lib/deepreload.py:327
↓ 7 callersMethodset_inputhook
DEPRECATED since IPython 5.0 Set PyOS_InputHook to callback and return the previous one.
IPython/lib/inputhook.py:148
↓ 7 callersMethodstructured_traceback
Return a color formatted string with the traceback info. Parameters ---------- etype : exception type Type of the e
IPython/core/ultratb.py:633
↓ 7 callersMethodunregister
Remove a callback from the given event.
IPython/core/events.py:65
↓ 7 callersMethodvar_expand
Expand python variables in a string. The depth argument indicates how many frames above the caller should be walked to look for the l
IPython/core/interactiveshell.py:3564
↓ 6 callersMethod_update_status
Update the status of the job lists. This method moves finished jobs to one of two lists: - self.completed: jobs which completed suc
IPython/lib/backgroundjobs.py:211
↓ 6 callersMethodask_yes_no
(self, prompt, default=None, interrupt=None)
IPython/core/interactiveshell.py:3631
↓ 6 callersMethodbegin_group
Begin a group. The first parameter specifies the indentation for the next line (usually the width of the opening text), the s
IPython/lib/pretty.py:264
↓ 6 callersMethodcheck_run_submodule
(self, submodule, opts='')
IPython/core/tests/test_run.py:473
↓ 6 callersFunctiondir2
dir2(obj) -> list of strings Extended version of the Python builtin dir(), which does a few extra checks. This version is guaranteed to
IPython/utils/dir2.py:23
↓ 6 callersMethoddisplay
(self)
IPython/utils/capture.py:23
↓ 6 callersMethodenable_matplotlib
Enable interactive matplotlib and inline figure support. This takes the following steps: 1. select the appropriate e
IPython/core/interactiveshell.py:3471
↓ 6 callersMethodend_group
End a group. See `begin_group` for more details.
IPython/lib/pretty.py:288
↓ 6 callersFunctionfind_cmd
Find absolute path to executable cmd in a cross platform manner. This function tries to determine the full path to a command line program usi
IPython/utils/process.py:28
↓ 6 callersMethodfunc
()
IPython/testing/tests/test_tools.py:79
↓ 6 callersFunctionget_test_tone
(scale=1)
IPython/lib/tests/test_display.py:255
↓ 6 callersFunctionindent
Indent a string a given number of spaces or tabstops. indent(str,nspaces=4,ntabs=0) -> indent str by ntabs+nspaces. Parameters ---------
IPython/utils/text.py:249
next →1–100 of 3,293, ranked by callers