Issue
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
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()
andIPython.utils.path.locate_profile()
respectively.
Answered By - user2555451
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.