Question

The 'locate' command is used in several ipython notebooks (example below), however, I am unable to locate documentation for the command. I would appreciate help finding the appropriate documentation.

profile_dir = ! ipython locate
profile_dir = profile_dir[0]
profile_dir

Many thanks Ron

Was it helpful?

Solution

I am not very familiar with IPython, but it looks as if the locate command is used to find the IPYTHONDIR or a specific profile.

According to the documentation on IPython's homepage:

From the command-line, you can quickly locate the IPYTHONDIR or a specific profile with:

$ ipython locate
/home/you/.ipython

$ ipython locate profile foo
/home/you/.ipython/profile_foo

These map to the utility functions: IPython.utils.path.get_ipython_dir() and IPython.utils.path.locate_profile() respectively.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top