IPython-Pythonシェルコードのインポート
IPythonは、デフォルトで標準のPythonコンソールから読み取ることができます >>>プロンプトと別のIPythonセッション。次のスクリーンショットは、標準のPythonシェルで記述されたforループを示しています-

コードを(Pythonプロンプトとともに)コピーし、IPython入力セルに貼り付けます。IPythonは、入力プロンプト(>>>および...)またはIPythonのもの([N]内:および... :)をインテリジェントにフィルターで除外します。

同様に、あるIPythonセッションのコードを別のセッションに貼り付けることができます。以下に示す最初のスクリーンショットは、1つのIPythonウィンドウでのSayHello()関数の定義を示しています-

ここで、コードを選択して別のIPythonシェルに貼り付け、SayHello()関数を呼び出します。
