{"id":18812181,"url":"https://github.com/drorspei/ipython-suggestions","last_synced_at":"2025-04-13T20:32:13.306Z","repository":{"id":62571623,"uuid":"106958357","full_name":"drorspei/ipython-suggestions","owner":"drorspei","description":"Get suggestions on misspelled names, and do system wide symbol searching in ipython","archived":false,"fork":false,"pushed_at":"2024-01-23T15:37:58.000Z","size":60,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-09T17:38:44.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drorspei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-14T19:54:44.000Z","updated_at":"2022-03-10T14:05:04.000Z","dependencies_parsed_at":"2022-11-04T08:46:25.802Z","dependency_job_id":null,"html_url":"https://github.com/drorspei/ipython-suggestions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drorspei%2Fipython-suggestions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drorspei%2Fipython-suggestions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drorspei%2Fipython-suggestions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drorspei%2Fipython-suggestions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drorspei","download_url":"https://codeload.github.com/drorspei/ipython-suggestions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223605246,"owners_count":17172458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T23:30:21.816Z","updated_at":"2025-04-13T20:32:13.294Z","avatar_url":"https://github.com/drorspei.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPython Extension: ipython-suggestions\n\n(i) Number one feature: system wide symbol searching!\n  When ipython is loaded, suggestions module will scan your python paths for\n  symbols and will create a cache. On the author's old 2008 computer (this\n  readme is from 2017), 50000 symbols load in 10 seconds.\n  But then you get a very easy way to import any symbol, without typing or\n  remembering the entrine import path.\n  First example:\n\n   In [1]: %findsymbol DecisionTreeClasifir  # two typos here on purpose\n   Out[1]: 0 (C) from sklearn.tree import DecisionTreeClassifier\n\n   In [2]: %suggestion 0\n   from sklearn.tree import DecisionTreeClassifier  # it's now imported!\n\n  %findsymbol searches string up to two character edits (deletion, substitution, transpose\n  and insertion).\n\n  Second example:\n\n    In [1]: %findsymbol pypl  # now hit tab!\n    [this completes to:]\n    In [1]: %findsymbol pyplot...matplotlib  # press enter now.\n    from matplotlib import pyplot\n    [pyplot is now imported]\n\n  Even better example:\n\n    In [1]: %findsymbol pypl  # now hit tab!\n    [this completes to:]\n    In [1]: %findsymbol pyplot...matplotlib\n    [now add -as parameter]\n    In [1]: %findsymbol pyplot...matplotlib -as plt\n    from matplotlib import pyplot as plt\n    [pyplot is now imported as plt]\n\n  The completions offered by pressing tab in a %findsymbol line are all the\n  symbols that begin with what you wrote. Note that this is case-sensitive.\n\n  This also works in jupyter :)\n\n(ii) Get suggestions on misspelled names:\n\n   In [1]: my_awesome_variable = 10\n\n   In [2]: 10 * my_awsome_variable ** 3\n   ---------------------------------------------------------------------------\n   NameError                                 Traceback (most recent call last)\n   \u003cipython-input-86-a128c9dcb1fc\u003e in \u003cmodule\u003e()\n   ----\u003e 1 10 * my_awsome_variable ** 3\n\n   NameError: name 'my_awsome_variable' is not defined\n   Did you mean:\n   0 my_awesome_variable\n\n   In [3]: %suggestion 0\n   [ipython automatically fills the next line]\n   In [4]: 10 * my_awesome_variable ** 3\n\n   Auto-filling of corrected code currently only works inside the shell and not\n   in jupyter.\n\n# Installation\n\nFrom pypi:\n\n```shell\npip install ipython-suggestions\n```\n\nOr directly from source:\n\n```shell\npip install git+https://github.com/drorspei/ipython-suggestions\n```\n\nthen append the output of ``ipython -m ipython_suggestions``\nto the output of ``ipython profile locate`` (typically\n``~/.ipython/profile_default/ipython_config.py``).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrorspei%2Fipython-suggestions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrorspei%2Fipython-suggestions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrorspei%2Fipython-suggestions/lists"}