Skip to Content
Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
book

Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

by Jake VanderPlas, 菊池 彰
May 2018
Intermediate to advanced
556 pages
13h 21m
Japanese
O'Reilly Japan, Inc.
Content preview from Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
10
1
章 
IPython
Python
より優れた
Python
コマンドを遡って検索できます。ここから
Ctrl
-
r
をさらに
2
回押すと、次のようになります。
In [1]:
(reverse-i-search)`sqa': def square(a):
"""Return the square of a""" a
2
乗を返す
return a ** 2
探しているコマンドが見つかったら、リターンキーを押すと検索が終了します。そこから取得し
たコマンドを使用してセッションを継続できます。
In [1]: def square(a):
"""Return the square of a"""
return a ** 2
In [2]: square(2)
Out[2]: 4
Ctrl
-
p/Ctrl
-
n
または上
/
下矢印キーを使用して履歴を検索することもできますが、行頭で一致す
る文字だけを使用することができます。つまり、
def
を入力して
Ctrl
-
p
押すと、(存在するなら)
履歴内で
def
で始まる直近のコマンドを見つけることができます。
1.3.4
 その他のショートカット
最後に、これまでのカテゴリに分類できないその他のショートカットがいくつかあります。これ
らも同様に知っておくと便利です。
キーストローク アクション
Ctrl
-
l
画面表示をクリアする
Ctrl
-
c
実行中の
Python
コマンドを中断する
Ctrl
-
d IPython
セッションを終了する
Ctrl
-
c
は、長時間実行するコマンドを誤って実行してしまった場合に特に便利です。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Jake VanderPlas, 菊池 彰
初めてのGraphQL ―Webサービスを作って学ぶ新世代API

初めてのGraphQL ―Webサービスを作って学ぶ新世代API

Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし

Publisher Resources

ISBN: 9784873118413Other