How to INSTALL THE PROSPECTOR STATIC CODE ANALYSIS TOOL

INSTALLING THE PROSPECTOR STATIC CODE ANALYSIS TOOL

You may want to analyze you Python code using the Prospector analysis tool, which checks your code for common errors and helps you improve it. To install Prospector and the Python libraries it uses, run the following command in the command­-line window:

pip install prospector

INSTALLING JUPYTER-MATPLOTLIB

We implement several animations using a visualization library called Matplotlib. To use them in Jupyter Notebooks, you must install a tool called ipympl. In the Terminal, Anaconda Command Prompt or shell you opened previously, execute the following commands one at a time:

conda install ­c conda­forge ipympl

conda install nodejs

jupyter labextension install @jupyter­widgets/jupyterlab­manager

jupyter labextension install jupyter­matplotlib

INSTALLING THE OTHER PACKAGES

Anaconda comes with approximately 300 popular Python and data science packages foryou, such as NumPy, Matplotlib, pandas, Regex, BeautifulSoup, requests, Bokeh, SciPy, SciKit­Learn, Seaborn, Spacy, sqlite, statsmodels and many more. The number of additional packages you’ll need to install throughout the article will be small and we’ll provide installation instructions as necessary. As you discover new packages, their documentation will explain how to install them.

GET A TWITTER DEVELOPER ACCOUNT

If you intend to use our “Data Mining Twitter” chapter and any Twitter­based examples in subsequent chapters, apply for a Twitter developer account. Twitter now requires registration for access to their APIs. To apply, fill out and submit the application at

Twitter reviews every application. At the time of this writing, personal developer accounts were being approved immediately and company­account applications were making from several days to several weeks. Approval is not guaranteed.

INTERNET CONNECTION REQUIRED IN SOME CHAPTERS

While using this article, you’ll need an Internet connection to install various additional Python libraries. In some chapters, you’ll register for accounts with cloud­based services, mostly to use their free tiers. Some services require credit cards to verify your identity. In a few cases, you’ll use services that are not free. In these cases, you’ll take advantage of monetary credits provided by the vendors so you can try their services without incurring charges. Caution: Some cloud­based services incur costs once you set them up. When you complete our case studies using such services, be sure to promptly delete the resources you allocated.

SLIGHT DIFFERENCES IN PROGRAM OUTPUTS

When you execute our examples, you might notice some differences between the results we show and your own results:

  • Due to differences in how calculations are performed with floating­point numbers (like –123.45, 7.5 or 0.0236937) across operating systems, you might see minor variations in outputs—especially in digits far to the right of the decimal point.
  • When we show outputs that appear in separate windows, we crop the windows to remove their borders.

GETTING YOUR QUESTIONS ANSWERED

Online forums enable you to interact with other Python programmers and get your Python questions answered. Popular Python and general programming forums include:

Also, many vendors provide forums for their tools and libraries. Most of the libraries you’ll use in this article are managed and maintained at github.com. Some library maintainers provide support through the Issues tab on a given library’s GitHub page.

If you cannot find an answer to your questions online, please see our web page for the article at

Our website is undergoing a major upgrade. If you do not find something you need, please write to us directly at juttbadshah1120@gmail.com.

You’re now ready to begin reading Python for Programmers. We hope you enjoy the Course!

*

Post a Comment (0)
Previous Post Next Post