[IPython-dev] running notebook from command line

Aaron O'Leary aaron.oleary@gmail....
Tue Feb 25 17:13:56 CST 2014


`ipython -c "%run blah.ipynb"`

Thanks! seems obvious now I think about it. Only in version 2.0

On 25 February 2014 21:49, Fernando Perez <fperez.net@gmail.com> wrote:
> On Tue, Feb 25, 2014 at 1:45 PM, Thomas Kluyver <takowl@gmail.com> wrote:
>>
>> From within IPython, you can now run a notebook with: %run foo.ipynb
>>
>> I don't believe there's any neat way of doing it from a system shell,
>> though.
>
>
> There is:
>
> alpamayo[~]> ipython -c "%run foo.ipynb"
> this is a notebook!
> ['/home/fperez/usr/bin/ipython', '-c', '%run foo.ipynb']
>
> Cheers
>
> f
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>


More information about the IPython-dev mailing list