Spyder: Your IDE for Data Science Development in Python

Spyder: Your IDE for Data Science Development in Python

There are many different integrated development environments (IDEs) to choose from for Python development. One popular option for data-focused work is Spyder, an open-source Python IDE geared toward scientists, engineers, and data analysts. Its name comes from Scientific PYthon Development EnviRonment.

Out of the box, it has powerful plotting, what-if, and profiling capabilities. It also integrates well with the data science ecosystem, is extensible with first- or third-party plugins, and has a relatively quick learning curve.

How does Spyder stack up against other Python IDEs? It depends on your use case. It’s not as powerful or customizable as VS Code, nor does it pretend to be. It does, however, excel for data science workflows:

Use Case Pick Spyder Pick an Alternative
Optimized for data science workflows
Dedicated to Python
Full-featured VS Code
Supports interactive notebooks ✅ With a plugin Jupyter, VS Code

If you’re focused on data science in Python, Spyder is a strong fit. For a more full-featured IDE or heavy notebook use, consider Jupyter or VS Code instead.

You can get a handy Spyder IDE cheat sheet at the link below:

Start Using the Spyder IDE

You can install Spyder in a few ways: as a standalone program, through a prepackaged distribution, or from the command line. You can also try out Spyder online.

To install Spyder as a standalone application, go to the Spyder download page. When you visit the site, it detects your operating system and offers the appropriate download. Once you download your install file, open it and follow the directions.

You can also install a Python distribution tailored to data science, such as Anaconda or WinPython. Both of these choices include Spyder in their base installations.

You’ll likely want to install dependencies and useful data libraries in addition to Spyder. In this case, first create a Python virtual environment, then use this command:

Shell
$ conda create -c conda-forge -n spyder-env spyder numpy scipy pandas matplotlib sympy cython

The install process for pip is similar. To install spyder together with common packages, run:

Shell
$ python -m pip install spyder numpy scipy pandas matplotlib sympy cython

For more information on installing Spyder, refer to their install guide.

Out of the box, the Spyder interface consists of three panes:

Spyder IDE Interface
The Spyder IDE Interface

On the left, you see code in the Editor pane. In the bottom right, you’ll find the IPython Console. Here, you can run code and check past commands using the History tab. The top-right area includes tabs such as Help, Debugger, Files, Find, and Code Analysis. You’ll learn about the Variable Explorer, Plots, and Profiler in the upcoming sections.

Explore Data With the Variable Explorer

The Variable Explorer pane contains details about variables in the current state of execution. It shows information about the type, size, and value of the variables in your program.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Article

Already a member? Sign-In

Locked learning resources

The full article is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Article

Already a member? Sign-In

About Mark Pedigo

is an avid Pythonista and Real Python contributor.

» More about Mark

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

What Do You Think?

What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment below and let us know.

Commenting Tips: The most useful comments are those written with the goal of learning from or helping out other students. Get tips for asking good questions and get answers to common questions in our support portal.


Looking for a real-time conversation? Visit the Real Python Community Chat or join the next “Office Hours” Live Q&A Session. Happy Pythoning!

Become a Member to join the conversation.

Keep Learning

Related Topics: basics data-science tools