MCPcopy Create free account

hub / github.com/ipython/traitlets / functions

Functions933 in github.com/ipython/traitlets

↓ 3 callersMethodset_trait
Forcibly sets trait attribute, including read-only attributes.
traitlets/traitlets.py:1767
↓ 2 callersMethod_busy_updating
(self)
traitlets/traitlets.py:330
↓ 2 callersMethod_check_conf
(self, config)
tests/config/test_loader.py:72
↓ 2 callersMethod_configure_logging
(self)
traitlets/config/application.py:290
↓ 2 callersMethod_find_file
Try to find the file by searching the paths.
traitlets/config/loader.py:548
↓ 2 callersMethod_get_trait_default_generator
Return default generator for a given trait Walk the MRO to resolve the correct default generator according to inheritance.
traitlets/traitlets.py:1881
↓ 2 callersMethod_info
Returns a description of the trait.
traitlets/traitlets.py:3252
↓ 2 callersMethod_info
Returns a description of the trait.
traitlets/traitlets.py:3298
↓ 2 callersMethod_info
Returns a description of the trait.
traitlets/traitlets.py:3346
↓ 2 callersMethod_info
Returns a description of the trait.
traitlets/traitlets.py:4301
↓ 2 callersMethod_notify_observers
Notify observers of any event
traitlets/traitlets.py:1535
↓ 2 callersFunction_prefix
(value: Any)
traitlets/utils/descriptions.py:122
↓ 2 callersFunction_validate_link
Validate arguments for traitlet link functions
traitlets/traitlets.py:261
↓ 2 callersMethod_walk_mro
Walk the cls.mro() for parent classes that are also singletons For use in instance()
traitlets/config/configurable.py:528
↓ 2 callersMethodadd_traits
Dynamically add trait attributes to the HasTraits instance.
traitlets/traitlets.py:1755
↓ 2 callersMethodassign
(self, value)
tests/test_traitlets.py:1241
↓ 2 callersMethodassign
(self, value: Any)
traitlets/tests/test_traitlets.py:12
↓ 2 callersMethodclass_config_rst_doc
Generate rST documentation for this class' config options. Excludes traits defined on parent classes.
traitlets/config/configurable.py:421
↓ 2 callersMethodclass_get_trait_help
Get the helptext string for a single trait. :param inst: If given, its current trait values will be used in place of
traitlets/config/configurable.py:268
↓ 2 callersMethodclass_own_traits
Get a dict of all the traitlets defined on this class, not a parent. Works like `class_traits`, except for excluding traits from parents.
traitlets/traitlets.py:1818
↓ 2 callersMethodclose_handlers
(self)
traitlets/config/application.py:1052
↓ 2 callersMethodelement_error
( self, obj: t.Any, element: t.Any, validator: t.Any, side: str = "Values" )
traitlets/traitlets.py:4003
↓ 2 callersMethodemit_description
Yield lines with the application description.
traitlets/config/application.py:672
↓ 2 callersMethodemit_examples
Yield lines with the usage and examples. This usage string goes at the end of the command line help string and should contain example
traitlets/config/application.py:682
↓ 2 callersMethodemit_flag_help
Yield the lines for the flag part of the help.
traitlets/config/application.py:556
↓ 2 callersMethodemit_options_help
Yield the lines for the options part of the help.
traitlets/config/application.py:584
↓ 2 callersMethodemit_subcommands_help
Yield the lines for the subcommand part of the help.
traitlets/config/application.py:603
↓ 2 callersMethodfile_name
(self, section_name: str)
traitlets/config/manager.py:52
↓ 2 callersMethodgenerate_config_file
generate default config file from Configurables
traitlets/config/application.py:1040
↓ 2 callersFunctionget_config
Get the config object for the global Application instance, if there is one otherwise return an empty config object
traitlets/config/application.py:1124
↓ 2 callersMethodget_metadata
DEPRECATED: Get a metadata value. Use .metadata[key] or .metadata.get(key, default) instead.
traitlets/traitlets.py:852
↓ 2 callersFunctiongetmembers
A safe version of inspect.getmembers that handles missing attributes. This is useful when there are descriptor based attributes that for some
traitlets/traitlets.py:241
↓ 2 callersMethodinitialize
Do the basic steps to configure me. Override in subclasses.
traitlets/config/application.py:461
↓ 2 callersMethodinject_class_to_parser
Add dummy arguments to our ArgumentParser for the traits of this class The argparse-based loader currently does not actually add any class tr
traitlets/config/argcomplete_config.py:121
↓ 2 callersMethodinstance_init
(self, obj: t.Any)
traitlets/traitlets.py:2172
↓ 2 callersMethodload_config
Load the config from a file and return it as a Config object.
traitlets/config/loader.py:615
↓ 2 callersFunctionparse_notifier_name
Convert the name argument to a list of names. Examples -------- >>> parse_notifier_name([]) [traitlets.All] >>> parse_notifier_na
traitlets/traitlets.py:200
↓ 2 callersMethodprint
(self, obj)
examples/argcomplete_app.py:88
↓ 2 callersMethodrun
(self)
examples/subcommands_app.py:26
↓ 2 callersMethodselect_by_number
Selects enum-value by using its number-constant.
traitlets/traitlets.py:4255
↓ 2 callersMethodset_metadata
DEPRECATED: Set a metadata key/value. Use .metadata[key] = value instead.
traitlets/traitlets.py:864
↓ 2 callersFunctionshould_warn
Add our own checks for too many deprecation warnings. Limit to once per package.
traitlets/utils/warnings.py:51
↓ 2 callersMethodunlink
(self)
traitlets/traitlets.py:357
↓ 1 callersMethod__contains__
(self, key: t.Any)
traitlets/config/loader.py:295
↓ 1 callersMethod__init__
(self, **kwargs)
examples/myapp.py:57
↓ 1 callersMethod__new__
(cls, /, *args: t.Any, **kwargs: t.Any)
traitlets/traitlets.py:1299
↓ 1 callersMethod__repr__
(self)
traitlets/traitlets.py:234
↓ 1 callersMethod__repr__
(self)
traitlets/config/loader.py:54
↓ 1 callersMethod_add_arguments
(self, aliases: t.Any, flags: t.Any, classes: t.Any)
traitlets/config/loader.py:912
↓ 1 callersMethod_add_kv_action
(self, key: str)
traitlets/config/loader.py:748
↓ 1 callersMethod_add_notifiers
( self, handler: t.Callable[..., t.Any], name: Sentinel | str, type: str | Sentinel )
traitlets/traitlets.py:1578
↓ 1 callersMethod_argcomplete
If argcomplete is enabled, allow triggering command-line autocompletion
traitlets/config/loader.py:915
↓ 1 callersMethod_busy_updating
(self)
traitlets/traitlets.py:412
↓ 1 callersMethod_choices_str
Returns a description of the trait choices (not none).
traitlets/traitlets.py:4293
↓ 1 callersMethod_convert_to_config
(self, dictionary: dict[str, t.Any])
traitlets/config/loader.py:580
↓ 1 callersMethod_convert_to_config
self.parsed_data->self.config
traitlets/config/loader.py:957
↓ 1 callersMethod_create_loader
( self, argv: list[str] | None, aliases: StrDict, flags: StrDict, clas
traitlets/config/application.py:783
↓ 1 callersMethod_create_parser
(self)
traitlets/config/loader.py:905
↓ 1 callersFunction_dedent
Equivalent of textwrap.dedent that ignores unindented first line.
traitlets/utils/text.py:15
↓ 1 callersMethod_defining_class
Get the class that defines a trait For reducing redundant help output in config files. Returns the current class if: - the tr
traitlets/config/configurable.py:330
↓ 1 callersMethod_ensure_subconfig
ensure that sub-dicts that should be Config objects are casts dicts that are under section keys to Config objects, which is necessary
traitlets/config/loader.py:242
↓ 1 callersMethod_exec_config_str
execute self.config.<lhs> = <rhs> * expands ~ with expanduser * interprets value with trait if available
traitlets/config/loader.py:665
↓ 1 callersMethod_find_my_config
extract my config from a global Config object will construct a Config object of only the config values that apply to me based on my m
traitlets/config/configurable.py:138
↓ 1 callersFunction_get_default
Get default argument value, given the trait default value.
traitlets/utils/decorators.py:11
↓ 1 callersMethod_get_sys_argv
Get `sys.argv` or equivalent from `argcomplete` `argcomplete`'s strategy is to call the python script with no arguments, so ``len(sys
traitlets/config/application.py:795
↓ 1 callersMethod_handle_argcomplete_for_subcommand
Helper for `argcomplete` to recognize `traitlets` subcommands `argcomplete` does not know that `traitlets` has already consumed subcommands,
traitlets/config/application.py:821
↓ 1 callersMethod_handle_unrecognized_alias
Handling for unrecognized alias arguments Probably a mistyped alias. By default just log a warning, but users can override this to ra
traitlets/config/loader.py:1117
↓ 1 callersMethod_init_call
(self, func: FuncT)
traitlets/traitlets.py:1245
↓ 1 callersMethod_load_config_files
Load config files (py,json) by filename and path. yield each config object in turn.
traitlets/config/application.py:892
↓ 1 callersMethod_load_flag
update self.config from a flag, which can be a dict or Config
traitlets/config/loader.py:694
↓ 1 callersMethod_log_default
(self)
traitlets/config/loader.py:485
↓ 1 callersMethod_notify_trait
(self, name: str, old_value: t.Any, new_value: t.Any)
traitlets/traitlets.py:1520
↓ 1 callersMethod_parse_args
self.parser->self.parsed_data
traitlets/config/loader.py:918
↓ 1 callersMethod_read_file_as_dict
(self)
traitlets/config/loader.py:576
↓ 1 callersMethod_read_file_as_dict
Load the config file into self.config, with recursive loading.
traitlets/config/loader.py:640
↓ 1 callersMethod_register_validator
Setup a handler to be called when a trait should be cross validated. This is used to setup dynamic notifications for cross-validation.
traitlets/traitlets.py:1719
↓ 1 callersMethod_remove_notifiers
( self, handler: t.Callable[..., t.Any] | None, name: Sentinel | str, type: str | Sentinel )
traitlets/traitlets.py:1593
↓ 1 callersMethod_resolve_classes
(self)
traitlets/traitlets.py:2177
↓ 1 callersMethod_resolve_classes
(self)
traitlets/traitlets.py:2335
↓ 1 callersFunctionall_warnings
Context for use in testing to ensure that all warnings are raised. Examples -------- >>> import warnings >>> def foo(): ...
tests/_warnings.py:17
↓ 1 callersFunctionbool_flag
(trait, value=True)
examples/argcomplete_app.py:122
↓ 1 callersFunctioncheck_help_all_output
test that `python -m PKG --help-all` works
traitlets/tests/utils.py:32
↓ 1 callersFunctioncheck_help_output
test that `python -m PKG [subcommand] -h` works
traitlets/tests/utils.py:18
↓ 1 callersFunctionclass_config_rst_doc
Generate rST documentation for this class' config options. Excludes traits defined on parent classes.
traitlets/config/sphinxdoc.py:72
↓ 1 callersMethodclass_trait_names
Get a list of all the names of this class' traits. This method is just like the :meth:`trait_names` method, but is unbound.
traitlets/traitlets.py:1775
↓ 1 callersMethodcoerce
(self, value)
tests/test_traitlets.py:1244
↓ 1 callersMethodcoerce
(self, value: Any)
traitlets/tests/test_traitlets.py:15
↓ 1 callersMethoddescribe
(self)
examples/myapp.py:145
↓ 1 callersMethoddocument_config_options
Generate rST format documentation for the config options this application Returns a multiline string.
traitlets/config/application.py:661
↓ 1 callersMethodemit_help
Yield the help-lines for each Configurable class in self.classes. If classes=False (the default), only flags and aliases are printed.
traitlets/config/application.py:636
↓ 1 callersMethodemit_help_epilogue
Yield the very bottom lines of the help message. If classes=False (the default), print `--help-all` msg.
traitlets/config/application.py:620
↓ 1 callersMethodensure_config_dir_exists
(self)
traitlets/config/manager.py:45
↓ 1 callersFunctionexpand_path
Expand $VARS and ~names in a string, like a shell :Examples: In [2]: os.environ['FOO']='test' In [3]: expand_path('variable FOO i
traitlets/utils/__init__.py:71
↓ 1 callersFunctionfilefind
Find a file by looking through a sequence of paths. This iterates through a sequence of paths looking for a file and returns the full, absolu
traitlets/utils/__init__.py:15
↓ 1 callersMethodflatten_flags
Flatten flags and aliases for loaders, so cl-args override as expected. This prevents issues such as an alias pointing to InteractiveShell,
traitlets/config/application.py:724
↓ 1 callersFunctionformat_aliases
(aliases: list[str])
traitlets/config/sphinxdoc.py:64
↓ 1 callersMethodfrom_string_list
Return a dict from a list of config strings. This is where we parse CLI configuration. Each item should have the form ``"key=value"`
traitlets/traitlets.py:4076
↓ 1 callersMethodget
Retrieve the config data for the specified section. Returns the data as a dictionary, or an empty dictionary if the file doesn't exis
traitlets/config/manager.py:55
↓ 1 callersFunctionget_argcomplete_cwords
Get current words prior to completion point This is normally done in the `argcomplete.CompletionFinder` constructor, but is exposed here to a
traitlets/config/argcomplete_config.py:27
↓ 1 callersMethodget_value
construct the value from the initial one after applying any insert / extend / update changes
traitlets/config/loader.py:173
← previousnext →101–200 of 933, ranked by callers