Python and data science snippets on the command line
![](https://www.deeplearningdaily.com/wp-content/uploads/2021/07/python-and-data-science-snippets-on-the-command-line_60e231e6a3be9-375x210.jpeg)
A tool to get Python and data science snippets at Data Science Simplified on the command line. You can read my article to learn how I created this tool.
Installation
python3 -m pip install --user python-snippet
Note: The --user
is important. It ensures you install it in your directory and not in the global system. python3 -m
ensures that you install python_snippet using Python 3.
Make sure your Python version is >= 3.6.2.
python3 --version
Usage
Search for posts based on category
You can search for posts based on category by typing:
python-snippet search-category
Once you select a post, you will receive an output like below:
Search for posts based on a string