In [ ]:

    # %%writefile foo.py
    print 'Hello world'

In [5]:

    %run foo

    Hello world

In [3]:

    %%bash
    echo "hello from $BASH"

    hello from /bin/bash

In [7]:

    from IPython.display import display
    from ipywidgets import widgets

    w = widgets.Dropdown(
        options=['1', '2', '3'],
        value='2',
        description='Number:',
    )
    display(w)

In [9]:

    import sys

In [ ]:

    sys.

FOOOOOOOOTEEEEER