All imports in one line with pyforest!
Writing imports over and over again is difficult. Solve this problem by clicking here!
Hey There👋
I am sure that you spend a lot of time importing various Python libraries like pandas, matplotlib, numpy, sklearn
and all the others.
This process can be time consuming and really boring.
Moreover missing imports can damage the flow of your work.
pyforest can come to our rescue!
What is pyforest?
With pyforest you can use all your favorite Python libraries without importing them before. If you use a package that is not imported yet, pyforest imports the package for you and adds the code to the first Jupyter cell. If you don't use a library, it won't be imported.
Sounds cool! Let’s look at how we can install it.
Installation
First you would need a Python version of more than 3.6 installed in your system.
Then you have to run these two statements in Terminal/Anaconda Prompt/Powershell.
pip install --upgrade pyforest
python -m pyforest install_extensions
The first command installs pyforest through pip package manager and the second adds a pyforest Jupyter extension that enables you to use it in IPython notebooks also!
And that’s all!
With pyforest you can use 99% of all python libraries with minimal work!
Demo
Here is a video demo of using pyforest by YouTuber Krish Naik.
If you like my posts, subscribe to my email newsletter for insightful weekly posts and cool freebies and cheatsheets!
Also do follow my LinkedIn page for updates on posts
That’s all for now folks.
See you next week!
-Vedanth