Выбираем среду разработки для python

Even more fixes and refinements with Spyder 3.3.1

As a quick follow-on to the 3.3.0 release, Spyder 3.3.1 fixed a handful of bugs and minor issues with the new functionality and cleaned up several other existing ones, as well made a number of lower-level maintenance and development-oriented changes—over two dozen in all.
Furthermore, several user-visible enhancements made it into the release, primary aimed at improving usability.
To make it easier for users to manage multiple environments, the selection UI under remembers the executables you’ve previously selected and allows quick switching between them.

In the Console, mundane commands are automatically filtered from the history, and the Editor now supports syntax highlighting for the new numeric literal syntax introduced in Python 3.6.
Spyder’s tutorial has been re-written for modern Spyder as well as to be clearer and more understandable, and overhauled for better and more consistent formatting and visuals with the rest of our documentation.
Finally, our update checker now consults the Anaconda channel rather than PyPI to determine if an update is available, so it doesn’t bug the majority of our users on Anaconda until they can actually acquire the package.

Installation

If in doubt, you should always install Spyder via this method to avoid
unexpected issues we are unable to help you with; it generally has the
least likelihood of potential pitfalls for non-experts, and we may be
able to provide limited assistance if you do run into trouble.

Other install options exist, including:

  • Your distribution’s package manager (i.e. , , etc) on Linux
  • The package manager, included with most Python installations

However, we lack the resources to provide individual support for users who
install via these methods, and they may be out of date or contain bugs outside
our control, so we recommend the Anaconda version instead if you run into issues.

But wait, there’s more!

There are numerous additional features we’ve added in the previous 10
months! These include:

  • Autosave and File Recovery in the editor, so Spyder can restore your
    unsaved files in case it crashes or something else goes wrong.
  • Dedicated Sympy, Cython and Pylab consoles, making it
    very simple to quickly explore and create code for these libraries.
  • OS level window pane undocking, allowing you to easily
    organize panes across different monitors.
  • Support for multi-indexes
    in our Dataframe viewer, making working with complex datasets much easier.

We will describe all of these additional enhancements in greater detail in
future blog posts.

Major new features of the 3.9 series, compared to 3.8

Some of the new major new features and changes in Python 3.9 are:

  • PEP 573, Module State Access from C Extension Methods
  • PEP 584, Union Operators in
  • PEP 585, Type Hinting Generics In Standard Collections
  • PEP 593, Flexible function and variable annotations
  • PEP 602, Python adopts a stable annual release cadence
  • PEP 614, Relaxing Grammar Restrictions On Decorators
  • PEP 615, Support for the IANA Time Zone Database in the Standard Library
  • PEP 616, String methods to remove prefixes and suffixes
  • PEP 617, New PEG parser for CPython
  • BPO 38379, garbage collection does not block on resurrected objects;
  • BPO 38692, os.pidfd_open added that allows process management without races and signals;
  • BPO 39926, Unicode support updated to version 13.0.0;
  • BPO 1635741, when Python is initialized multiple times in the same process, it does not leak memory anymore;
  • A number of Python builtins (range, tuple, set, frozenset, list, dict) are now sped up using PEP 590 vectorcall;
  • A number of Python modules (_abc, audioop, _bz2, _codecs, _contextvars, _crypt, _functools, _json, _locale, operator, resource, time, _weakref) now use multiphase initialization as defined by PEP 489;
  • A number of standard library modules (audioop, ast, grp, _hashlib, pwd, _posixsubprocess, random, select, struct, termios, zlib) are now using the stable ABI defined by PEP 384.

You can find a more comprehensive list in this release’s «What’s New» document.

Overview

Spyder is a powerful scientific environment written in Python, for Python,
and designed by and for scientists, engineers and data analysts. It offers a
unique combination of the advanced editing, analysis, debugging, and profiling
functionality of a comprehensive development tool with the data exploration,
interactive execution, deep inspection, and beautiful visualization
capabilities of a scientific package.

Beyond its many built-in features, its abilities can be extended even further
via its plugin system and API. Furthermore, Spyder can also be used as a PyQt5
extension library, allowing you to build upon its functionality and embed
its components, such as the interactive console, in your own software.

Language Server Protocol architecture

The Language Server Protocol (LSP) was created by Microsoft for Visual Studio Code to standardize how
development tools (e.g. editors and IDEs) communicate with
servers that provide code completion, linting and related facilities for
different programming languages. With LSP, as
they describe it:

As of Spyder 4 Beta 2, Spyder is now one of those tools!
We developed our own client to communicate with any server that implements
LSP v3.0 through a transport layer that uses ZeroMQ sockets. Code completion,
help generation, calltips, and real-time code/style analysis were rewritten to take advantage of this
architecture, and hover hints and docstring style analysis were added.
Further LSP features, such as workspace functionality and on the fly completion, will come in future betas.

Our current support is geared towards Python, using the great
Python-Language-Server
package. This has allowed us to provide fine-grained configurability for
Pycodestyle and
Pydocstyle options, and in future
betas we’ll also add the ability to use and configure code formatters like
YAPF and autopep8.

We support configuring LSP servers for additional, non-Python programming languages.
In the future, we hope to include out-of-the-box LSP integration for
some of the most popular languages in the scientific computing space,
including Fortran, Julia and C/C++.

Other Useful Items

  • Looking for 3rd party Python modules? The
    Package Index has many of them.
  • You can view the standard documentation
    online, or you can download it
    in HTML, PostScript, PDF and other formats. See the main
    Documentation page.
  • Information on tools for unpacking archive files
    provided on python.org is available.
  • Tip: even if you download a ready-made binary for your
    platform, it makes sense to also download the source.
    This lets you browse the standard library (the subdirectory Lib)
    and the standard collections of demos (Demo) and tools
    (Tools) that come with it. There’s a lot you can learn from the
    source!
  • There is also a collection of Emacs packages
    that the Emacsing Pythoneer might find useful. This includes major
    modes for editing Python, C, C++, Java, etc., Python debugger
    interfaces and more. Most packages are compatible with Emacs and
    XEmacs.

Affiliated Project Progress

Outside the core Spyder IDE, while most plugins have been paused until the Spyder 4 release, work on other affiliated projects has continued. The new spyder-unittest plugin has seen particularly active development, and lead developer and Spyder team member Jitse Niesen recently published a tutorial on its use.
Since November, it has gotten improved support with realtime test results and click-to-open, better UI/UX, a robust communications backend (ZeroMQ), and numerous bug fixes and minor improvements.
QtPy, another affiliated project which Spyder uses as its Qt GUI abstraction layer, has had three releases including one major, with new Qt classes, early support for , better performance, and a number of bugfixes.

Other projects under the Spyder umbrella are also making major progress. The pywinpty pseudo-terminal library has seen six official releases (three major), with a new rich high level interface to create and track processes, new process wrappers, Python 2.7 support, major performance, stability and security improvements, and many bug fixes.
Most importantly, we are proud to report that since this January Jupyter Notebook (in 5.3.0) and JupyterLab have both adopted it to create and manage system terminals on Windows!
The qtsass SASS to Qt stylesheet compiler has a new maintainer, with development including new dev infrastructure, refactoring work, a PyPI release, and new features, with more on the way.
Finally, our loghub automatic changelog generator has seen significant internal and external developer interest, as well as three releases, bug fixes, additional examples, and the ability to group issues and PRs together if desired.
The common thread between all five of these projects has been a substantially increased development pace in recent weeks, so expect to see even more good news soon if that trend continues.

Overview

Spyder is a powerful scientific environment written in Python, for Python,
and designed by and for scientists, engineers and data analysts. It offers a
unique combination of the advanced editing, analysis, debugging, and profiling
functionality of a comprehensive development tool with the data exploration,
interactive execution, deep inspection, and beautiful visualization
capabilities of a scientific package.

Beyond its many built-in features, its abilities can be extended even further
via its plugin system and API. Furthermore, Spyder can also be used as a PyQt5
extension library, allowing you to build upon its functionality and embed
its components, such as the interactive console, in your own software.

Core components

  • Editor

    Work efficiently in a multi-language editor with a function/class browser,
    real-time code analysis tools (, , and ),
    automatic code completion ( and ),
    horizontal/vertical splitting, and go-to-definition.

  • Interactive console

    Harness the power of as many IPython consoles as you like with full
    workspace and debugging support, all within the flexibility of a full
    GUI interface. Instantly run your code by line, cell, or file,
    and render plots right inline with the output or in interactive windows.

  • Documentation viewer

    Render documentation in real-time with Sphinx for any class or function,
    whether external or user-created, from either the Editor or a Console.

  • Variable explorer

    Inspect any variables, functions or objects created during your session.
    Editing and interaction is supported with many common types, including
    numeric/strings/bools, Python lists/tuples/dictionaries, dates/timedeltas,
    Numpy arrays, Pandas index/series/dataframes, PIL/Pillow images, and more.

  • Development tools

    Examine your code with the static analyzer, trace its execution with the
    interactive debugger, and unleash its performance with the profiler.
    Keep things organized with project support and a built-in file explorer, and
    use find in files to search across entire projects with full regex support.

Other Useful Items

  • Looking for 3rd party Python modules? The
    Package Index has many of them.
  • You can view the standard documentation
    online, or you can download it
    in HTML, PostScript, PDF and other formats. See the main
    Documentation page.
  • Information on tools for unpacking archive files
    provided on python.org is available.
  • Tip: even if you download a ready-made binary for your
    platform, it makes sense to also download the source.
    This lets you browse the standard library (the subdirectory Lib)
    and the standard collections of demos (Demo) and tools
    (Tools) that come with it. There’s a lot you can learn from the
    source!
  • There is also a collection of Emacs packages
    that the Emacsing Pythoneer might find useful. This includes major
    modes for editing Python, C, C++, Java, etc., Python debugger
    interfaces and more. Most packages are compatible with Emacs and
    XEmacs.

Редакторы кода для Python

Редакторов кода существует великое множество. В этой статье мы познакомим вас с двумя, наиболее популярными из них. Сразу отметим, что оба редактора имеют версии под операционные системы Windows, Mac OS и Linux. Они бесплатны и имеют схожий набор функций для работы как с языком программирования Python, так и с другими языками программирования или разметки гипертекста (HTML).

Atom

Популярный редактор кода от авторов сервиса GitHub. Имеет весь необходимый функционал для написания полноценных программ на Python. На наш взгляд — лучший выбор для новичка, так как поддержка Python имеется уже «из коробки», вам не нужно устанавливать дополнительные плагины.

Atom довольно быстро работает даже на слабых компьютерах, имеет приятную темную цветовую гамму и большое количество настроек (если вам это необходимо).

Visual Studio Code

Относительно новый игрок от компании Microsoft уже успел завоевать любовь разработчиков. Так же как и Atom — очень легкий и быстрый редактор кода. Отлично выглядит и имеет весь необходимый функционал для программирования на Python.

Стоит отметить, что для работы с Python нужно установить расширение ms-python.python. Сделать это довольно просто: откройте вкладку расширений View > Extensions и выполните поиск по слову Python или идентификатору ms-python.python. Далее нажмите кнопку Install, дождитесь окончания установки и перезагрузите редактор.

Dark theme

A full-interface dark theme has been a
long awaited feature,
and is enabled by default in Spyder 4. You can still select the
light theme under by either choosing a light-background
syntax-highlighting scheme, or changing to .

Pretty, right 🙂 ?

This enhancement was made possible by the work of
Colin Duquesnoy,
Daniel Pizzeta
and their QDarkStyle
package. The Spyder team is now actively collaborating with Colin and Daniel
to pursue the release of QDarkStyle 3.x, which will be using Spyder’s
QtSASS
package to harness the power of SASS/SCSS and allow users to fully customize
the theme dynamically.

All packages

project-manager

Project Manager for easy access and switching between projects in Atom.

  • #project
  • #manager
  • #settings
  • #workflow
  • #productivity

danielbrodin

1,101,813

Install

If nothing happens, download Atom and try again.

Syntax support for ini files.

jacobbednarz

1,079,785

Install

If nothing happens, download Atom and try again.

atom-live-server

Launch a http server with live reload capability.

  • #static
  • #server
  • #live reload
  • #livereload

jas-chen

1,070,352

Install

If nothing happens, download Atom and try again.

remote-ftp

Enable browsing remote FTP/FTPS/SFTP just like the built-in Tree View. Requires a project.

icetee

1,061,322

Install

If nothing happens, download Atom and try again.

ide-python

Python language support for Atom-IDE

  • #ide
  • #python
  • #atom-ide
  • #autocomplete
  • #jedi

atom-ide-community

1.6.2

1,059,300

Install

If nothing happens, download Atom and try again.

terminal-plus

A terminal package for Atom, complete with themes and more.

  • #terminal-plus
  • #terminal
  • #plus
  • #panel
  • #tty

jeremyramin

956,512

Install

If nothing happens, download Atom and try again.

autocomplete for C/C++/ObjC using clang

yasuyuky

954,698

Install

If nothing happens, download Atom and try again.

Display a customizable clock in the status bar.

  • #clock
  • #time
  • #date
  • #statusbar
  • #momentjs

b3by

0.1.18

918,472

Install

If nothing happens, download Atom and try again.

Activate POWER MODE to write your code in style.

JoelBesada

904,700

Install

If nothing happens, download Atom and try again.

React.js (JSX) language support, indentation, snippets, auto completion, reformatting

orktes

895,317

Install

If nothing happens, download Atom and try again.

A split pane diff tool.

  • #diff
  • #git
  • #split
  • #compare
  • #panes

mupchrch

894,344

Install

If nothing happens, download Atom and try again.

Format JSON

  • #json
  • #format
  • #pretty
  • #prettify
  • #minify

federomero

846,916

Install

If nothing happens, download Atom and try again.

Run a python source file.

#python

foreshadow

846,704

Install

If nothing happens, download Atom and try again.

Pluggable text-clicking UI for Atom

  • #hyperclick
  • #nuclide

facebook-atom

813,350

Install

If nothing happens, download Atom and try again.

Lint C and C++ source files using gcc / g++

  • #lint
  • #linter
  • #c
  • #c++
  • #gcc

AtomLinter

807,187

Install

If nothing happens, download Atom and try again.

Makes working with Go in Atom awesome.

  • #go
  • #golang
  • #autocomplete
  • #gofmt
  • #gocode

joefitzgerald

794,727

Install

If nothing happens, download Atom and try again.

vim-mode improved

t9md

789,431

Install

If nothing happens, download Atom and try again.

markdown-preview-plus

Markdown Preview + Community Features

  • #markdown
  • #maths
  • #latex
  • #commonmark
  • #pandoc

atom-community

789,116

Install

If nothing happens, download Atom and try again.

Adds path autocompletion to autocomplete+

atom-community

787,524

Install

If nothing happens, download Atom and try again.

Display possible completions in the editor while typing

atom

771,664

Install

If nothing happens, download Atom and try again.

A helper package for writing documentation

nikhilkalige

761,986

Install

If nothing happens, download Atom and try again.

markdown-writer

Make Atom a better Markdown editor and an easier static blogging tool.

  • #markdown
  • #asciidoc
  • #jekyll
  • #octopress
  • #hexo

zhuochun

756,254

Install

If nothing happens, download Atom and try again.

Resolve git conflicts within Atom

smashwilson

750,217

Install

If nothing happens, download Atom and try again.

prettier-atom

Atom plugin for formatting JavaScript using prettier with (optional) prettier-eslint integration

  • #javascript
  • #prettier
  • #prettier-eslint
  • #eslint
  • #formatter

prettier

732,273

Install

If nothing happens, download Atom and try again.

A toolkit for building IDEs in Atom

  • #julia
  • #juno
  • #ide

JunoLab

726,138

Install

If nothing happens, download Atom and try again.

sublime-style-column-selection

Enable Sublime style ‘Column Selection’. Just hold ‘alt’ while you select, or select using your middle mouse button. Also similar to Texmate’s ‘Multiple Carets’, or BBEdit’s ‘Block Select’

bigfive

717,016

Install

If nothing happens, download Atom and try again.

A debugging front-end for PlatformIO IDE

  • #platformio
  • #gdb
  • #debug
  • #debugger
  • #c

platformio

705,932

Install

If nothing happens, download Atom and try again.

Runs scripts inside of Atom.

lsegal

2.7.1

699,803

Install

If nothing happens, download Atom and try again.

Lint PHP on the fly, using php -l

AtomLinter

681,622

Install

If nothing happens, download Atom and try again.

A minimap binding for the highlight-selected package

atom-minimap

672,023

Install

File Explorer:

The File Explorer is basically a filesystem and directory browser that allows you to browse, open, and perform other management tasks on the files and folders. You can make use of the context menus functions for operating with them.

Configuring Spyder:

Python Spyder IDE can be configured conveniently using the options present in the preferences menu. You can change anything such as themes, syntax colors, font size, etc. To do this, navigate to Tools menu and then select the P references option. You will see the following window which will allow you to configure Spyder according to your choice:

Лучшая среда разработки (IDE) для Python

Сначала мы хотели поместить в категорию все сколько нибудь популярные IDE в этот раздел, но потом мы решили что обзора абсолютного лидера в данной категории будет вполне достаточно.

PyCharm

Эта среда разработки, наверно, является самой популярной среди программистов на Python. Огромное количество возможностей делает ее подходящей для разработки во всех областях программирования где используется Python.

PyCharm доступна в двух версиях: платной и бесплатной. Платная имеет 30ти дневный период, в течении которого вы можете попробовать ее и решить, подходит она вам или нет. Бесплатная называется Community Edition и имеет несколько урезанный функционал, но даже в этом случае она остается отличной IDE для разработки на Python.

Вместо того, чтобы описывать все ее преимущества (об этом лучше почитать на сайте JetBrains), мы упомянем всего один ее недостаток: PyCharm довольно требовательна к ресурсам, поэтому если у вас старый или просто слабый компьютер то иногда возможны задержки во время работы.

В остальном же, PyCharm это отличный выбор как для начинающего, так и для опытного программиста.

Better Variable Explorer usability and performance

We’ve made several changes and optimizations to greatly improve performance and efficiency in the Variable Explorer, to make it much faster and use less memory when opening and editing large objects.
In particular, we’ve fixed several major memory leaks when saving edited objects and closing the Variable Explorer dialogs through better length validation and garbage collection, and now skip the whole saving process entirely if the object was not modified (or cannot be modified).
We’ve also changed the names and functions of the and buttons in Variable Explorer dialogs to be easier to understand and use.
They now feature a button which exits the dialog without saving any edits to the object’s contents, and a button—automatically enabled once modifications are made—that commits the changes back to the kernel.

Что нам потребуется

Нам понадобятся PyQt и Qt Designer, ну и Python, само собой.

В этой статье используется PyQt5 с Python 3, но особых различий между PyQt и PySide или их версиями для Python 2 нет.

Windows: PyQt можно скачать здесь. В комплекте с ним идёт Qt Designer.

macOS: Вы можете установить PyQt с помощью Homebrew:

Скачать пакет с большинством компонентов и инструментов Qt, который содержит Qt Designer, можно по этой ссылке.

Linux: Всё нужное, вероятно, есть в репозиториях вашего дистрибутива. Qt Designer можно установить из Центра Приложений, но PyQt придётся устанавливать через терминал. Установить всё, что нам понадобится, одной командой можно, например, так:

После того как вы закончили с приготовлениями, откройте командную строку/терминал и убедитесь, что вы можете использовать команду . Вы должны увидеть следующее:

Если вы видите сообщение, что такой команды нет или что-то в таком роде, попробуйте загуглить решение проблемы для вашей операционной системы и версии PyQt.

Если вы используете Windows, то, скорее всего, путь  (измените  на вашу версию Python) не прописан в вашем . Загляните в этот тред на Stack Overflow, чтобы узнать, как решить проблему.

Настройка Atom от GitHub для работы с PHP, Python и некоторыми другими языками программирования

Изначально считаем что у Вас установлена поддерживаемая операционная система, Node.JS и Atom. В примерах мы работаем в OpenSUSE (13.1) в нём (и вообще в дистрибутивах *nix) уже «из коробки» обычно есть не только Python но PHP и другие языки программирования. Так же исправно работает на Ubuntu (>12.04). Если у Вас Windows 7 или 8, а раньше Вы с ними (языками) не работали то их предварительно необходимо скачать и установить. Примечание: перед началом работы желательно запускать Atom под root. опыт показывает — работает стабильнее

Linter

Идеология Atom к подсветке в том, что основным пакетом для работы с синтаксисом и его анализа будет Linter, который является верхним уровнем в API для других линтеров кода. Это сделано для прекращения «войны между плагинами» (The idea is to stop the linter plugins war, by providing a top level API for linters to parse and display errors in the Atom editor). Тем не менее, не все сторонние разработчики придерживаются этой идеологии и пишут свои плагины.

  • linter-php , для PHP `php -l`
  • linter-phpcs , для PHP, `phpc`
  • linter-phpmd , для PHP, `phpmd`
  • linter-pylint , для Python, `pylint`
  • linter-pyflakes , для python, `pyflakes`
  • linter-pep8, для python, `pep8`
  • linter-flake8, для python, `flake8`
  • linter-javac , для Java, `javac`
  • linter-jshint , для JavaScript and JSON, `jshint`
  • linter-jscs , для JavaScript, `jscs`
  • linter-scss-lint , для SASS/SCSS, `scss-lint`
  • linter-coffeelint , для CoffeeScript, `coffeelint`
  • linter-csslint , для CSS, `csslint`
  • linter-rubocop , для Ruby and Ruby on Rails, `rubocop`
  • linter-tslint , для Typescript, `tslint`
  • linter-xmllint , для XML, `xmllint`
  • linter-shellcheck , для Bash, `shellcheck`
  • linter-scalac , для Scala, `scalac`
  • linter-clang , для C / C++, `clang`
  • linter-ruby , для ruby, `ruby -wc`
  • linter-lua , для Lua, `luac -p`

Пакет Script: запуск программ из Atom

Script — пакет для запуска кода в atom.

Установка пакета Script, возможна из командной строки:

или меню Packages->Settings View->Install->Packages

Каждый язык работает, при наличии предварительно установленного компилятора / интерпритатора. Пакет Script обновляется довольно часто. Например поддержка Swift появилась менее двух недель назад. Так что скорее всего в ближайшее время появится поддержка новых языков.

Для запуска программы необходимо выбрать Packages—>Script—>Run

Дополнительные опции можно найти в документации либо на страницах Atom`а или проекта.

Для функционирования должен быть создан рабочий каталог. Путь к нему нужно прописать здесь: Packages—>Script—>Configure Script—>Current Working Directory Заявку разработчикам на поддержку нового языка можно оставить здесь (отвечают быстро)

И немного юмора от разработчиков пакета Script, у которых, судя по всему, спрашивают всё на свете:

первод: Атом не может найти Нод | Руби | Питон | Мои носки

Python

Поддержка подсветки этого языка идёт изначально. Пакеты для работы с синтаксисом и отладки: Linter + Language Python + Linter Python Pep8 + Script

Script запускает код на Python, а Linter и Linter Python Pep8 покажут синтаксические ошибки. Возможно Вам, для работы с Python также поможет Atom Python Debugger. Подсветка ошибок и запуск после установки будут выглядеть так:

Терминал

Для запуска исполняемого кода С, C++, Java иногда проще использовать сторонний пакет (не пакет Atom, а пакет вашего дистрибутива), который запускается через терминал, поскольку сам Atom поддерживает большое количество языков. Если Atom выступает в качестве редактора кода, a терминал рядом запускает его — это очень удобно для нас, поскольку терминал не имеет такое преимущество редактирования, как Atom. Для запуска терминала в окне Atom установите пакет Term. Для запуска терминала в окне Atom выбрать Packages—>Command Palette—>Toggle и Term с нужными параметрами.

В заключении ещё один интересный кликабельный анимационный gif от разработчиков script, ссылки.

источник

You can help!

If would like to help us test this beta release and try out the new features it offers,
you can! You can install it with (if using Anaconda/Miniconda, as we recommend),
or with ; we suggest doing so in a new Conda env or /
so you can easily switch between your existing Spyder install and the Spyder 4 beta.
For example, to do so with , enter the following at the Terminal/Anaconda prompt:

This is a safe process because Spyder now uses a different configuration
directory for its development versions, so you can easily switch between our stable
and beta releases without worrying about one affecting the other.

If you find any bugs, you can report them on our
issue tracker;
make sure to search for your error message or behavior before making a new one.

Help:

The help pane allows you to find and display documentation of any object you desire. When you choose the help option, you will be able to see the following options:

As you can see, it has many options that will help you solve any issue you encounter while using the Python Spyder IDE.

Hope you are clear with all that has been shared with you in this tutorial. This brings us to the end of our article on Python Sypder IDE. Make sure you practice as much as possible and revert your experience.

If you wish to check out more articles on the market’s most trending technologies like Artificial Intelligence, DevOps, Ethical Hacking, then you can refer to Edureka’s official site.

Do look out for other articles in this series which will explain the various other aspects of Python and Data Science.

Writing the code:

Writing code in Spyder becomes very easy with its multi-language code editor and a number of powerful tools. As mentioned earlier, the editor has features such as syntax highlighting, real-time analysis of code, style analysis, on-demand completion, etc. When you write your code, you will also notice that it gives a clear call stack for methods suggesting all the arguments that can be used along with that method.

Take a look at the example below:

In the above example, you can notice that the editor is showing the complete syntax of the print function. Not just this, in case you have made an error in any line, you will be notified about it before the line number with a message describing what the issue is. Take a look at the image below:

To run any file, you can select the Run option and click on run. Once executed, the output will be visible on the Console as shown in the image below:

Оцените статью
Рейтинг автора
5
Материал подготовил
Андрей Измаилов
Наш эксперт
Написано статей
116
Добавить комментарий