Re: Markup from file
Matthias Bussonnier <[email protected]> Wed, 8 Jul 2015 22:42:35 -0500
| Newsgroups | gmane.comp.python.ipython.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1874018394== Content-Type: multipart/alternative; boundary="Apple-Mail=_A805AAD8-4E1E-42D1-A709-B19D829BE8F7" --Apple-Mail=_A805AAD8-4E1E-42D1-A709-B19D829BE8F7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Steve,=20 >=20 > Hello, >=20 > I'm just a new user to ipython notebook, and dont know if I am = overlooking functionality. Welcome to the project, we are happy to see you here ! >=20 > I would like to store a markdown file in a directory with my data from = a test run, when I open a notebook and point it at the directory with my = data, I would like to see the markdown file marked up in my notebook. ( = This file will specify some of the test run parameters that can change = from run to run and intended for human consumption in the form of some = headings and bullet points) >=20 > To do this I think I either need to be able to pass a filename to a = markdown cell. > or > Do it in a code cell with something like IPython.display "Markdown" = object which I dont think exists. On current stable (3.2) I seem to have a Markdown object in = IPython.display, and the following works, can you check if this is really not the case for you ? from IPython.display import Markdown Markdown(filename=3D'mdfile.md=E2=80=99) Cheers,=20 --=20 Matthias= --Apple-Mail=_A805AAD8-4E1E-42D1-A709-B19D829BE8F7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D"">Hi Steve, <div class=3D""><div><blockquote type=3D"cite" = class=3D""><br class=3D"Apple-interchange-newline"><div class=3D""><div = style=3D"font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; = font-size: 12px;" class=3D"">Hello,<br class=3D""><br class=3D"">I'm = just a new user to ipython notebook, and dont know if I am overlooking = functionality.<br class=3D""></div></div></blockquote><div><br = class=3D""></div><div>Welcome to the project, we are happy to see you = here !</div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D""><div style=3D"font-family: 'Helvetica = Neue',Helvetica,Arial,sans-serif; font-size: 12px;" class=3D""><br = class=3D"">I would like to store a markdown file in a directory with my = data from a test run, when I open a notebook and point it at the = directory with my data, I would like to see the markdown file marked up = in my notebook. ( This file will specify some of the test run parameters = that can change from run to run and intended for human consumption in = the form of some headings and bullet points)<br class=3D""><br = class=3D"">To do this I think I either need to be able to pass a = filename to a markdown cell.<br class=3D"">or<br class=3D"">Do it = in a code cell with something like IPython.display "Markdown" object = which I dont think exists.<br class=3D""></div></div></blockquote><div><br= class=3D""></div><div>On current stable (3.2) I seem to have a = Markdown object in IPython.display, and the following works, can you = check if</div><div>this is really not the case for you ?</div><div><br = class=3D""></div><div><div>from IPython.display import = Markdown</div><div>Markdown(filename=3D'mdfile.md=E2=80=99)</div><div><br = class=3D""></div><div><br = class=3D""></div></div><div>Cheers, </div><div>-- </div><div>Mat= thias</div></div></div></body></html>= --Apple-Mail=_A805AAD8-4E1E-42D1-A709-B19D829BE8F7-- --===============1874018394== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ IPython-User mailing list [email protected] http://mail.scipy.org/mailman/listinfo/ipython-user --===============1874018394==--