-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
faq.html
281 lines (242 loc) · 12.5 KB
/
faq.html
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>FAQ — IPython</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/agogo.css" />
<link rel="stylesheet" href="_static/ipython.css" type="text/css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
<script src="_static/underscore.js"></script>
<script src="_static/doctools.js"></script>
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Installing IPython" href="install.html" />
<link rel="prev" title="Support IPython Development" href="donate.html" />
</head><body>
<div class="header-wrapper">
<div class="header">
<div class="logo"><a href="index.html">
<img class="logo" src="_static/IPy_header.png" alt="Logo"/>
</a></div>
<div class="rel">
<a href="https://jupyter.readthedocs.io/en/latest/install.html" target="_blank">Install</a> ·
<a href="documentation.html">Documentation</a> ·
<a href="project.html">Project</a> ·
<a href="https://jupyter.org/" target="_blank">Jupyter</a> ·
<a href="news.html">News</a> ·
<a href="citing.html">Cite</a> ·
<a href="donate.html">Donate</a> ·
<a href="books.html">Books</a>
</div>
</div>
</div>
<div class="content-wrapper">
<div class="content">
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<div class="sidebarblock">
<div id="cse-search-form" style="width: 100%;">Loading</div>
<script src="https://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en'});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl(
'017950022472296044740:wfr9nyfshwo');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.enableSearchboxOnly("searchresults.html");
customSearchControl.draw('cse-search-form', options);
}, true);
</script>
<link rel="stylesheet" href="https://www.google.com/cse/style/look/default.css" type="text/css" /> <style type="text/css">
input.gsc-input {
border-color: #BCCDF0;
}
input.gsc-search-button {
border-color: #666666;
background-color: #CECECE;
padding: 0;
}
div.sphinxsidebar input[type="text"] {
width: 100%;
}
div.sphinxsidebar input[type="submit"] {
width: 100%;
}
</style>
</div>
<div class="sidebarblock">
<h3>JupyterCon</h3>
<a href="http://jupytercon.com">
<img src="_static/jupytercon-logo.svg" width="180px" alt="JupyterCon 2017">
</a>
</div>
<div class="sidebarblock">
<h3>Notebook Viewer</h3>
Share your notebooks
<div class="nbviewer-thm-random">
<script src="_static/nbviewer_thm.js"></script>
<script type="text/javascript">
nbviewer_random_thumbnail();
</script>
</div>
</div>
<div class="sidebarblock">
<h3>Community</h3>
<ul class="simple">
<li><a class="reference external" href="http://stackoverflow.com/questions/tagged/ipython">
Stack Overflow</a></li>
<li><a class="reference external" href="https://mail.python.org/mailman/listinfo/ipython-dev">
Mailing list</a></li>
<li><a class="reference external" href="https://github.com/ipython/ipython/issues">
File a bug</a></li>
<li><a class="reference external" href="http://www.reddit.com/r/IPython">
Reddit</a></li>
</ul>
</div>
<div class="sidebarblock">
<h3>For developers</h3>
<ul class="simple">
<li><a class="reference external" href="https://mail.python.org/mailman/listinfo/ipython-dev">Mailing list</a></li>
<li><a class="reference external" href="https://gitter.im/ipython/ipython">
Development Chat Room</a></li>
<li><a class="reference external"
href="https://github.com/ipython/ipython/wiki/Dev:-Index">Development information</a></li>
<li><a class="reference external" href="http://travis-ci.org/#!/ipython/ipython">
Travis CI</a></li>
<li><a class="reference external" href="https://github.com/ipython/ipython/wiki">Wiki</a></li>
</ul>
</div>
<div class="sidebarblock">
<h3>Book</h3>
<a href="books.html"><img
title="Packt Publishing donates a portion of the proceeds from this book to
support IPython's development." width="160" height="200" id="sidebar-book-cover"
style="margin-bottom: 10px;"></a>
<script language="javascript">
// most recent at the end
var urls = [
"_static/ipython-book.jpg",
"_static/learning-jupyter-book.png",
"_static/mastering-ipython-book.png",
"_static/jupyter-notebook-for-all-I.jpg",
"_static/jupyter-notebook-for-all-II.jpg",
"_static/jupyter-in-depth.png",
"_static/jupyter-for-ds.png",
"_static/ipython-cookbook-2nd.png",
]
function pick(){
var len = urls.length;
var num = Math.floor(Math.sqrt(Math.random()*len*len));
return urls[num];
}
function repick(){
$("#sidebar-book-cover").attr("src", pick());
}
window.onload = repick ;
var seconds = 1000;
setInterval(repick, 60*seconds)
</script>
</div>
<div class="sidebarblock">
<div class="tile" id="donate">
<h4>Support IPython</h4>
<!--This relies on some CSS & JS which is added in the _templates folder-->
<a style="background: #34677c;
border-radius:0px 0px 0px 0px;
font-weight:normal;
font-family:Arial, Helvetica, sans-serif;
border:none;
box-shadow:none;
left: 50%;
margin-left:-72.5px; margin-top: 1em; margin-bottom: 1em;
clear: both; display: block;
width:145px; height:45px;
line-height:2.8;
position:relative;
font-size:16px;
text-align:center;
cursor:pointer;
color:#fff;
text-decoration: none;
z-index:1"
href="https://numfocus.salsalabs.org/donate-to-ipython/index.html">Donate Now</a>
<a href="donate.html">Find out more...</a>
</div>
</div>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="faq">
<h1>FAQ<a class="headerlink" href="#faq" title="Permalink to this headline">¶</a></h1>
<p>If your question isn’t answered below, check <a class="reference external" href="https://ipython.org/ipython-doc/">the docs</a>, then ask on the <a class="reference external" href="https://mail.python.org/mailman/listinfo/ipython-dev">mailing list</a>.</p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><p><a class="reference internal" href="#can-ipython-run-under-ironpython-pypy-jython-other-python-interpreters" id="id1">Can IPython run under IronPython/PyPy/Jython/other Python interpreters?</a></p></li>
<li><p><a class="reference internal" href="#ipython-crashes-under-os-x-when-using-the-arrow-keys" id="id2">IPython crashes under OS X when using the arrow keys</a></p></li>
<li><p><a class="reference internal" href="#does-ipython-play-well-with-windows" id="id3">Does IPython play well with Windows?</a></p></li>
<li><p><a class="reference internal" href="#what-is-the-best-way-to-install-ipython" id="id4">What is the best way to install IPython?</a></p></li>
</ul>
</div>
<section id="can-ipython-run-under-ironpython-pypy-jython-other-python-interpreters">
<h2>Can IPython run under IronPython/PyPy/Jython/other Python interpreters?<a class="headerlink" href="#can-ipython-run-under-ironpython-pypy-jython-other-python-interpreters" title="Permalink to this headline">¶</a></h2>
<p>The terminal-based shell should run on any interpreter which complies with
the necessary version of Python. IPython 0.11 requires Python 2.6
or above, and as of June 2011, IronPython and PyPy both support this.</p>
<p>The most likely problems would come from Readline and from using the undocumented
sys._getframe() function. On Windows we ship our own <a class="reference external" href="pyreadline.html">pyreadline</a>,
which might also work under IronPython. PyPy ships its own readline module,
which should now work.</p>
<p>If IPython does not work under a supported interpreter, please
<a class="reference external" href="https://github.com/ipython/ipython/issues">file a bug</a>.</p>
</section>
<section id="ipython-crashes-under-os-x-when-using-the-arrow-keys">
<h2>IPython crashes under OS X when using the arrow keys<a class="headerlink" href="#ipython-crashes-under-os-x-when-using-the-arrow-keys" title="Permalink to this headline">¶</a></h2>
<p>Under some circumstances, using the arrow keys to navigate your input history can cause a complete crash of the Python interpreter.</p>
<p><strong>Answer:</strong> This is due to a bug in the readline library from the official builds. There are a few solutions you can take:</p>
<blockquote>
<div><ol class="arabic">
<li><p>Use a different Python version from Apple’s default (MacPython or Fink have been reported to work)</p></li>
<li><p>You can disable in your ipythonrc file the following lines by commenting them out:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">readline_parse_and_bind</span> <span class="s2">"\e[A"</span><span class="p">:</span> <span class="n">history</span><span class="o">-</span><span class="n">search</span><span class="o">-</span><span class="n">backward</span>
<span class="n">readline_parse_and_bind</span> <span class="s2">"\e[B"</span><span class="p">:</span> <span class="n">history</span><span class="o">-</span><span class="n">search</span><span class="o">-</span><span class="n">forward</span>
</pre></div>
</div>
</li>
</ol>
</div></blockquote>
<p>You will lose searching in your history with the arrow keys, but at least Python won’t crash.</p>
</section>
<section id="does-ipython-play-well-with-windows">
<h2>Does IPython play well with Windows?<a class="headerlink" href="#does-ipython-play-well-with-windows" title="Permalink to this headline">¶</a></h2>
<p>Yes, it most definitely does! There are some things that should be noted: <a class="reference external" href="https://ipython.org/ipython-doc/stable/install/install.html#windows">see
the installation documentation</a>.</p>
</section>
<section id="what-is-the-best-way-to-install-ipython">
<h2>What is the best way to install IPython?<a class="headerlink" href="#what-is-the-best-way-to-install-ipython" title="Permalink to this headline">¶</a></h2>
<p>See <a class="reference external" href="https://ipython.org/ipython-doc/stable/install/install.html#installing-ipython-itself">the installation documentation</a> for full details.</p>
<p>The standard Python installation mechanisms (<code class="docutils literal notranslate"><span class="pre">setup.py</span></code>, <code class="docutils literal notranslate"><span class="pre">pip</span></code> or <code class="docutils literal notranslate"><span class="pre">easy_install</span></code>) all work for installing IPython to use in a terminal. Windows users are best off installing <a class="reference external" href="https://pypi.python.org/pypi/distribute">distribute</a>, then running the .exe installer, to create start menu shortcuts.</p>
<p>To use the notebook or the Qt console, it’s easiest to install through a package manager, or download a Python distribution such as <a class="reference external" href="https://store.continuum.io/cshop/anaconda">Anaconda</a> or <a class="reference external" href="https://www.enthought.com/downloads/">Enthought Canopy</a>. Otherwise, you will need to install pyzmq, along with tornado for the notebook, and PyQt4/PySide and pygments for the Qt console.</p>
</section>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
</div>
<div class="footer-wrapper">
<div class="footer" role="contentinfo">
© Copyright the IPython development team. Python is trademark of the Python Software Foundation.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.5.0.
</div>
</div>
</body>
</html>