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

bundles / IPython 9.3.0 / IPython / core / interactiveshell / InteractiveShell / get_path_links

staticmethod

IPython.core.interactiveshell:InteractiveShell.get_path_links

source: /IPython/core/interactiveshell.py :879

Signature

staticmethod def   get_path_links ( p : Path )

Summary

Gets path links including all symlinks

Examples

In [1]: from IPython.core.interactiveshell import InteractiveShell In [2]: import sys, pathlib In [3]: paths = InteractiveShell.get_path_links(pathlib.Path(sys.executable)) In [4]: len(paths) == len(set(paths)) Out[4]: True In [5]: bool(paths) Out[5]: True

Aliases

  • IPython.InteractiveShell.get_path_links