[IPython-User] import markdown into notebook
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 <firstname.lastname@example.org> wrote:
> On Sat, Jul 7, 2012 at 8:03 AM, James Bergstra <email@example.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
> 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.
> IPython-User mailing list
More information about the IPython-User