1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Getting started with Spyder\n",
"\n",
"In this tutorial we will cover the basics of using the Spyder IDE\n",
"(Interactive Development Environment). If you’ve ever worked with MATLAB\n",
"before, then this will feel familiar. Spyder is a program that allows\n",
"you to write, run and de-bug code.\n",
"\n",
"## Launching Spyder\n",
"\n",
"Using Anaconda we will select the environment we created earlier\n",
"*spyder-dev* and then we can launch spyder from the Home page.\n",
"\n",
"## Spyder Interface\n",
"\n",
"<figure>\n",
"<img\n",
"src=\"https://docs.spyder-ide.org/current/_images/mainwindow_default_1610.png\"\n",
"alt=\"Spyder Interface\" />\n",
"<figcaption aria-hidden=\"true\">Spyder Interface</figcaption>\n",
"</figure>\n",
"\n",
"Once you open up Spyder in it’s default configuration, you’ll see three\n",
"sections; the editor IPython Console, Help viewer. You can customize the\n",
"interface to suit your prefference and needs some of which include,\n",
"rearrange, undock, hide panes. Feel free to set up Spyder as you like.\n",
"\n",
"### Editor\n",
"\n",
"This pane is used to write your scripts. The\n",
"\n",
"<figure>\n",
"<img src=\"https://docs.spyder-ide.org/5/_images/editor-components.png\"\n",
"alt=\"Editor key components\" />\n",
"<figcaption aria-hidden=\"true\">Editor key components</figcaption>\n",
"</figure>\n",
"\n",
"1. The left sidebar shows line numbers and displays any code analysis\n",
" warnings that exist in the current file. Clicking a line number\n",
" selects the text on that line, and clicking to the right of it sets\n",
" a\n",
" [breakpoint](https://docs.spyder-ide.org/5/panes/debugging.html#debugging-breakpoints).\n",
"2. The scrollbars allow vertical and horizontal navigation in a file.\n",
"3. The context (right-click) menu displays actions relevant to whatever\n",
" was clicked.\n",
"4. The options menu (“Hamburger” icon at top right) includes useful\n",
" settings and actions relevant to the Editor.\n",
"5. The location bar at the top of the Editor pane shows the full path\n",
" of the current file.\n",
"6. The tab bar displays the names of all opened files. It also has a\n",
" Browse tabs button (at left) to show every open tab and switch\n",
" between them—which comes in handy if many are open.\n",
"\n",
"### IPython Console\n",
"\n",
"This pane allows you to interactively run functions, do math\n",
"computations, assign and modify variables.\n",
"\n",
"<figure>\n",
"<img src=\"https://docs.spyder-ide.org/5/_images/console-standard.png\"\n",
"alt=\"IPython Console\" />\n",
"<figcaption aria-hidden=\"true\">IPython Console</figcaption>\n",
"</figure>\n",
"\n",
"- Automatic code completion\n",
"- Real-time function calltips\n",
"- Full GUI integration with the enhanced Spyder\n",
" [Debugger](https://docs.spyder-ide.org/5/panes/debugging.html).\n",
"- The [Variable\n",
" Explorer](https://docs.spyder-ide.org/5/panes/variableexplorer.html),\n",
" with GUI-based editors for many built-in and third-party Python\n",
" objects.\n",
"- Display of Matplotlib graphics in Spyder’s\n",
" [Plots](https://docs.spyder-ide.org/5/panes/plots.html) pane, if the\n",
" Inline backend is selected under Preferences ‣ IPython console ‣\n",
" Graphics ‣ Graphics backend, and inline in the console if Mute\n",
" inline plotting is unchecked under the Plots pane’s options menu.\n",
"\n",
"### Variable Explorer\n",
"\n",
"This pane shows all the defined variables (objects) stored. This can be\n",
"used to identify the data type of variables, the size and inspect larger\n",
"arrays. Double clicking the value cell opens up a window which allowing\n",
"you to inspect the data in a spreadsheet like view.\n",
"\n",
"<figure>\n",
"<img\n",
"src=\"https://docs.spyder-ide.org/5/_images/variable-explorer-standard.png\"\n",
"alt=\"Variable Explorer\" />\n",
"<figcaption aria-hidden=\"true\">Variable Explorer</figcaption>\n",
"</figure>"
],
"id": "f2de8d6b-7248-4687-81eb-a382f5554810"
}
],
"nbformat": 4,
"nbformat_minor": 5,
"metadata": {}
}
|