<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Working in a ipython notebook plugin for an ide, I realize that the
    print view of the notebook is functional notebook, and hence, it is
    editable.<br>
    For a print view, it would be a better options to get an
    non-editable notebook. There was a little discussion in github
    around this topic (<a
      href="https://github.com/ipython/ipython/issues/1292"></a><a
      href="https://github.com/ipython/ipython/issues/1292">https://github.com/ipython/ipython/issues/1292</a>).
    Brian propose to generate a static html for the print view. Then, I
    proposed another way, so I bring the discussion here:<br>
    <br>
    We can capture the notebook into a png (and other format) images
    using qwebkit inside PyQt (we have the last one as dependency for Qt
    console). In this way, first, we can support another ways of export
    the notebook, such as images... <br>
    Then, we can import this notebook images inside PyQt objects and
    displayed into the javascript enviroment...<br>
    I wrote a little script to capture a complete image of the notebook
    and show the image inside a web browser and it is displaying great,
    like the notebook itself.<br>
    <br>
    Another way to have a non editable print view would be an export to
    a raw html (<a href="https://github.com/ipython/ipython/issues/860">https://github.com/ipython/ipython/issues/860</a>),
    but we have to deal with <span style="color: rgb(51, 51, 51);
      font-family: Helvetica,arial,freesans,clean,sans-serif; font-size:
      13px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: 20px; orphans: 2;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; background-color: rgb(251, 251,
      251); display: inline ! important; float: none;"></span>MathJax,
    CodeMirror and Markdown. <br>
    <br>
    What do you think about the "image" way to generate a non-editable
    view of the notebook? I think it would be easy to implement.<br>
    <br>
    Regards.<br>
    <br>
    Damián.<br>
    <span style="color: rgb(51, 51, 51); font-family:
      Helvetica,arial,freesans,clean,sans-serif; font-size: 13px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 20px; orphans: 2;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; background-color: rgb(251, 251,
      251); display: inline ! important; float: none;"></span>
  </body>
</html>