Permalink
Browse files

Initial draft of HTML5/JS/CSS3 notebook.

  • Loading branch information...
ellisonbg committed Mar 18, 2011
1 parent 0494d13 commit adcfbf85bf3ae49853d20e0b01dddef11709ddaf
Showing with 11,126 additions and 0 deletions.
  1. +40 −0 IPython/frontend/html/notebook/notebook.py
  2. +173 −0 IPython/frontend/html/notebook/static/css/notebook.css
  3. +1,760 −0 IPython/frontend/html/notebook/static/jquery/css/jquery.wijmo-open.1.1.3.css
  4. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_flat_0_2d5972_40x100.png
  5. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_flat_0_4f4f4f_40x100.png
  6. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_flat_0_aaaaaa_40x100.png
  7. BIN ...on/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_flat_100_ffffff_40x100.png
  8. BIN ...hon/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_glass_55_fbf9ee_1x400.png
  9. BIN ...end/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_highlight-hard_80_85b2cb_1x100.png
  10. BIN ...end/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_highlight-hard_80_c4c4c4_1x100.png
  11. BIN ...end/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_highlight-hard_80_e3e3e3_1x100.png
  12. BIN ...nd/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_highlight-soft_100_c4c4c4_1x100.png
  13. BIN ...end/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_highlight-soft_75_85b2cb_1x100.png
  14. BIN ...rontend/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_inset-hard_65_85b2cb_1x100.png
  15. BIN ...rontend/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_inset-hard_65_c4c4c4_1x100.png
  16. BIN ...rontend/html/notebook/static/jquery/css/themes/aristo/images/ui-bg_inset-soft_95_fef1ec_1x100.png
  17. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-icons_2d5972_256x240.png
  18. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-icons_2e83ff_256x240.png
  19. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-icons_38667f_256x240.png
  20. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-icons_3a6983_256x240.png
  21. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-icons_616161_256x240.png
  22. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-icons_898989_256x240.png
  23. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-icons_cd0a0a_256x240.png
  24. BIN IPython/frontend/html/notebook/static/jquery/css/themes/aristo/images/ui-icons_ffffff_256x240.png
  25. +2,295 −0 IPython/frontend/html/notebook/static/jquery/css/themes/aristo/jquery-wijmo.css
  26. BIN ...on/frontend/html/notebook/static/jquery/css/themes/midnight/images/ui-bg_flat_0_aaaaaa_40x100.png
  27. BIN .../frontend/html/notebook/static/jquery/css/themes/midnight/images/ui-bg_flat_100_18181f_40x100.png
  28. BIN .../frontend/html/notebook/static/jquery/css/themes/midnight/images/ui-bg_flat_100_583d3d_40x100.png
  29. BIN ...n/frontend/html/notebook/static/jquery/css/themes/midnight/images/ui-bg_flat_10_3d4858_40x100.png
  30. BIN ...d/html/notebook/static/jquery/css/themes/midnight/images/ui-bg_highlight-soft_15_191921_1x100.png
  31. BIN ...d/html/notebook/static/jquery/css/themes/midnight/images/ui-bg_highlight-soft_15_32323d_1x100.png
  32. BIN ...d/html/notebook/static/jquery/css/themes/midnight/images/ui-bg_highlight-soft_35_191921_1x100.png
  33. BIN ...ntend/html/notebook/static/jquery/css/themes/midnight/images/ui-bg_inset-soft_35_191921_1x100.png
  34. BIN IPython/frontend/html/notebook/static/jquery/css/themes/midnight/images/ui-icons_8fddff_256x240.png
  35. BIN IPython/frontend/html/notebook/static/jquery/css/themes/midnight/images/ui-icons_a1ddff_256x240.png
  36. BIN IPython/frontend/html/notebook/static/jquery/css/themes/midnight/images/ui-icons_f4f4f9_256x240.png
  37. BIN IPython/frontend/html/notebook/static/jquery/css/themes/midnight/images/ui-icons_fafafa_256x240.png
  38. BIN IPython/frontend/html/notebook/static/jquery/css/themes/midnight/images/ui-icons_ff8f8f_256x240.png
  39. +574 −0 IPython/frontend/html/notebook/static/jquery/css/themes/midnight/jquery-wijmo.css
  40. BIN ...nd/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_diagonals-thick_50_00a6dd_40x40.png
  41. BIN IPython/frontend/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_flat_0_aaaaaa_40x100.png
  42. BIN ...on/frontend/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_flat_100_f1f1f1_40x100.png
  43. BIN ...end/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_15_242122_1x100.png
  44. BIN ...l/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_15_242122_1x100_bottom.png
  45. BIN ...end/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_15_333333_1x100.png
  46. BIN .../html/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_15_333333_1x100_50.png
  47. BIN ...end/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_15_65358a_1x100.png
  48. BIN ...end/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_15_8A56B2_1x100.png
  49. BIN ...end/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_15_9eca38_1x100.png
  50. BIN .../html/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_15_9eca38_1x100_50.png
  51. BIN ...end/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_15_ca3838_1x100.png
  52. BIN ...end/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_highlight-soft_35_00a6dd_1x100.png
  53. BIN ...ontend/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_inset-soft_100_e1e1e1_1x100.png
  54. BIN .../html/notebook/static/jquery/css/themes/rocket/images/ui-bg_inset-soft_15_242122_1x100 - Copy.png
  55. BIN ...rontend/html/notebook/static/jquery/css/themes/rocket/images/ui-bg_inset-soft_15_242122_1x100.png
  56. BIN IPython/frontend/html/notebook/static/jquery/css/themes/rocket/images/ui-icons_00a6dd_256x240.png
  57. BIN IPython/frontend/html/notebook/static/jquery/css/themes/rocket/images/ui-icons_304915_256x240.png
  58. BIN IPython/frontend/html/notebook/static/jquery/css/themes/rocket/images/ui-icons_d399ff_256x240.png
  59. BIN IPython/frontend/html/notebook/static/jquery/css/themes/rocket/images/ui-icons_eaffb9_256x240.png
  60. BIN IPython/frontend/html/notebook/static/jquery/css/themes/rocket/images/ui-icons_f4f4f9_256x240.png
  61. BIN IPython/frontend/html/notebook/static/jquery/css/themes/rocket/images/ui-icons_fafafa_256x240.png
  62. BIN IPython/frontend/html/notebook/static/jquery/css/themes/rocket/images/ui-icons_ff8f8f_256x240.png
  63. +2,312 −0 IPython/frontend/html/notebook/static/jquery/css/themes/rocket/jquery-wijmo.css
  64. BIN ...l/notebook/static/jquery/css/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
  65. BIN ...l/notebook/static/jquery/css/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
  66. BIN ...ontend/html/notebook/static/jquery/css/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
  67. BIN ...ntend/html/notebook/static/jquery/css/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
  68. BIN ...ntend/html/notebook/static/jquery/css/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
  69. BIN ...ontend/html/notebook/static/jquery/css/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
  70. BIN ...html/notebook/static/jquery/css/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
  71. BIN ...l/notebook/static/jquery/css/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
  72. BIN ...ml/notebook/static/jquery/css/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
  73. BIN ...n/frontend/html/notebook/static/jquery/css/themes/ui-lightness/images/ui-icons_222222_256x240.png
  74. BIN ...n/frontend/html/notebook/static/jquery/css/themes/ui-lightness/images/ui-icons_228ef1_256x240.png
  75. BIN ...n/frontend/html/notebook/static/jquery/css/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png
  76. BIN ...n/frontend/html/notebook/static/jquery/css/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png
  77. BIN ...n/frontend/html/notebook/static/jquery/css/themes/ui-lightness/images/ui-icons_ffffff_256x240.png
  78. +573 −0 IPython/frontend/html/notebook/static/jquery/css/themes/ui-lightness/jquery-ui-1.8.10.custom.css
  79. BIN IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/images/Line.gif
  80. BIN IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/images/filterop.png
  81. BIN IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/images/ui-anim_basic_16x16.gif
  82. +115 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijaccordion.css
  83. +116 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijcalendar.css
  84. +44 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijcheckbox.css
  85. +29 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijdialog.css
  86. +80 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijdropdown.css
  87. +185 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijexpander.css
  88. +35 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijlist.css
  89. +253 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijmenu.css
  90. +126 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijprogressbar.css
  91. +44 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijradio.css
  92. +55 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijslider.css
  93. +160 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijsplitter.css
  94. +97 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijsuperpanel.css
  95. +146 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijtabs.css
  96. +7 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijtextbox.css
  97. +257 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijtooltip.css
  98. +13 −0 IPython/frontend/html/notebook/static/jquery/css/themes/wijmo/jquery.wijmo.wijutil.css
  99. +95 −0 IPython/frontend/html/notebook/static/jquery/js/autoresize.jquery.js
  100. +16 −0 IPython/frontend/html/notebook/static/jquery/js/jquery-1.5.1.min.js
  101. +782 −0 IPython/frontend/html/notebook/static/jquery/js/jquery-ui-1.8.10.custom.min.js
  102. +54 −0 IPython/frontend/html/notebook/static/jquery/js/jquery.autogrow-textarea.js
  103. +75 −0 IPython/frontend/html/notebook/static/jquery/js/jquery.autogrow.js
  104. +30 −0 IPython/frontend/html/notebook/static/jquery/js/jquery.wijmo-open.1.1.3.min.js
  105. +501 −0 IPython/frontend/html/notebook/static/js/notebook.js
  106. +84 −0 IPython/frontend/html/notebook/templates/notebook.html
@@ -0,0 +1,40 @@
+
+import os
+
+import tornado.httpserver
+import tornado.ioloop
+import tornado.options
+import tornado.web
+
+from tornado.options import define, options
+
+define("port", default=8888, help="run on the given port", type=int)
+
+class MainHandler(tornado.web.RequestHandler):
+ def get(self):
+ self.render('notebook.html')
+
+
+class NotebookApplication(tornado.web.Application):
+ def __init__(self):
+ handlers = [
+ (r"/", MainHandler)
+ ]
+ settings = dict(
+ template_path=os.path.join(os.path.dirname(__file__), "templates"),
+ static_path=os.path.join(os.path.dirname(__file__), "static"),
+ )
+ tornado.web.Application.__init__(self, handlers, **settings)
+
+
+def main():
+ tornado.options.parse_command_line()
+ application = NotebookApplication()
+ http_server = tornado.httpserver.HTTPServer(application)
+ http_server.listen(options.port)
+ tornado.ioloop.IOLoop.instance().start()
+
+
+if __name__ == "__main__":
+ main()
+
@@ -0,0 +1,173 @@
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, embed,
+figure, figcaption, footer, header, hgroup,
+menu, nav, output, ruby, section, summary,
+time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+}
+
+body {
+ background-color: white;
+}
+
+span#ipython_notebook h1 {
+ font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font-size: 32pt;
+ padding: 10px;
+ margin: 10px;
+}
+
+
+div#toolbar {
+ width: 100%;
+ height: auto;
+ border-bottom-width: 2px;
+ border-bottom-style: solid;
+ border-bottom-color: black;
+ padding: 5px;
+}
+
+#main_toolbar {
+}
+
+#main_toolbar button {
+ font-size: 0.9em;
+}
+
+div.notebook {
+ width: 760px;
+ height: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ padding-top: 5px;
+ padding-bottom: 5px;
+ background-color: white;
+
+/* Uncomment this block for help in debugging the padding and margins
+/* border-left-width: 1px;
+ border-left-style: solid;
+ border-left-color: black;
+ border-right-width: 1px;
+ border-right-style: solid;
+ border-right-color: black;
+ border-bottom-width: 1px;
+ border-bottom-style: solid;
+ border-bottom-color: black;*/
+}
+
+div.cell {
+ width: 740px;
+ margin: 5px 5px 5px 5px;
+ padding: 5px;
+ font-size: 11pt;
+ position: relative;
+}
+
+div.code_cell {
+ background-color: white;
+}
+
+div.prompt {
+ vertical-align: top;
+ display: table-cell;
+ width: 85px;
+ min-width 80px !important;
+ font-family: Menlo, "Courier New", Courier, mono;
+ font-weight: normal;
+ font-style: normal;
+}
+
+div.input {
+ display: table;
+ height: auto;
+}
+
+div.input_prompt {
+ color: blue;
+}
+
+
+textarea.input_area {
+ text-align: left;
+ font-family: Menlo, "Courier New", Courier, mono;
+ font-size: inherit;
+ border-style: none;
+ display: table-cell;
+ margin: 0;
+ padding: 0;
+ overflow: auto;
+ font-weight: normal;
+ font-style: normal;
+ width: 665px;
+ outline: none;
+ resize: none;
+}
+
+
+div.output {
+ display: table;
+}
+
+div.output_prompt {
+ color: red;
+}
+
+div.output_area {
+ text-align: left;
+ font-family: Menlo, "Courier New", Courier, mono;
+ font-size: inherit;
+ margin: 0;
+ padding: 0;
+ display: table-cell;
+ width: 665px;
+}
+
+div.text_cell {
+ background-color: white;
+}
+
+textarea.text_cell_input {
+ font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font-size: inherit;
+ outline: none;
+ resize: none;
+ width: inherit;
+ border-style: none;
+ padding: 0;
+ margin: 0;
+ color: black;
+}
+
+div.text_cell_render {
+ font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font-size: inherit;
+ outline: none;
+ resize: none;
+ width: inherit;
+ border-style: none;
+ padding: 0;
+ margin: 0;
+ color: black;
+}
+
+div.text_cell_render em {
+ font-style: italic;
+}
+
+div.text_cell_render strong {
+ font-weight: bold;
+}
+
Oops, something went wrong.

0 comments on commit adcfbf8

Please sign in to comment.