PySearch
A faster way to code
PySearch provides intelligent completion suggestions that improve on ordinary Google search, by incorporating the context surrounding each query and learning on the fly.
Getting Started:
- (Optional) Add your python runtime to the PySearch config.
View -> Command Palette -> Preferences: Open User Settings -> Extensions -> PySearch
- Create or open a folder in your workspace:
File -> Add Folder to Workspace...
- Create or open a Python file in the folder:
File -> New File
File -> Save As... -> new_folder/filename.py
- Follow prompt to download pyls:
Or..
Run pip install python-language-server
in the command-line
View -> Command Palette -> Developer: Reload Window
- Install non-standard libraries in your python runtime to begin making PySearch queries
e.g. pip install sklearn
Using PySearch:
To make a PySearch query, type the delimiter (!!
by default, but user-configurable) to begin a search:
(Note that in VScode you can use ctrl + space
to toggle documentation)
For more control over query results, try adding the --context
flag (alias -c
) anywhere in your query
to scale context sensitivity.
The --context
flag takes integer values from 0
through 5
, where higher numbers increase context sensitivity.
While PySearch searches only functions across Python 3.7+, broader coverage is currently in alpha. Our search indexes are hosted in PySearch Cloud, and we're actively working on rolling out a local version. All requests are TLS/SSL encrypted, anonymized, and never sold or shared.
Troubleshooting
- If PySearch queries aren't working, check the logs to confirm the server started successfully:
View -> Output
Check the Output
tab under PySearch
for PySearch server is starting up
- VScode uses events to trigger the server startup process, so try reloading the window if you aren't getting PySearch results (as the server may never have been triggered, or pyls may have died)
View -> Command Palette -> Developer: Reload Window
If the server startup isn't initiated upon reloading, you may not have opened your Python file in an active workspace (see "Getting Started" step #1)
If your PySearch results aren't including non standard library packages, check that the package is installed in your python runtime in "Getting Started" step #4.
For feedback or additional support, visit us here.
Known Issues
Release Notes
0.2.3
Initial release
Made with ❤ by Flowbot Inc