[IPython-User] import markdown into notebook
MinRK
benjaminrk@gmail....
Mon Jul 9 05:27:50 CDT 2012
You can do `%load myfile.md`, then ^M-m to turn it into a markdown
cell, but not maintain it long-term.
On Sun, Jul 8, 2012 at 10:37 PM, Fernando Perez <fperez.net@gmail.com> wrote:
> On Sat, Jul 7, 2012 at 8:03 AM, James Bergstra <james.bergstra@gmail.com> wrote:
>> Quick question - Is there a way to maintain [large] markdown blocks in
>> external files, and have them automatically mirrored / inlined in a
>> notebook cell?
>
> Not that I can think of, but it might be possible with a bit of
> JavaScript. Keep in mind that the filesystem relative to where the
> notebook lives is visible to you, prefixed with /files/ from the root
> of the web server path. So if you can write a bit of JS that reads
> '/files/yourfile.md' and inserts that into a cell at render time,
> that might work. But I have no idea if it will work or not, and
> unfortunately can't look in detail right now. I just hope the
> 'files/' tip gives you something to work with.
>
> Cheers,
>
> f
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
More information about the IPython-User
mailing list