You are viewing an older version (9.3.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.3.0 / IPython / core / magics / namespace / NamespaceMagics / who_ls

function

IPython.core.magics.namespace:NamespaceMagics.who_ls

source: /IPython/core/magics/namespace.py:245

Signature

def who_ls(self, parameter_s = '')

Summary

Return a sorted list of all interactive variables.

Extended Summary

If arguments are given, only variables of types matching these arguments are returned.

Examples

Define two variables and list them with who_ls:: In [1]: alpha = 123 In [2]: beta = 'test' In [3]: %who_ls Out[3]: ['alpha', 'beta'] In [4]: %who_ls int Out[4]: ['alpha'] In [5]: %who_ls str Out[5]: ['beta']

Aliases

  • IPython.core.magics.NamespaceMagics.who_ls