Commit Graph

432 Commits

Author SHA1 Message Date
Brian E. Granger
70cf4b80ba Stripping notebook server flags from kernel's argv. 2011-08-16 11:58:20 -07:00
Brian E. Granger
1271cfcfcd Removing old CodeMirror version. 2011-08-15 23:40:31 -07:00
Brian E. Granger
dfac7eca2b WebSocket url is now passed to browser when a kernel is started. 2011-08-15 23:35:01 -07:00
Brian E. Granger
e45e339344 Kernel/notebook mapping is removed when a kernel dies.
* Previously, when a kernel died due to an external cause, the
  notebook/kernel mapping was not removed, so the kernel would
  be resused even though it was dead.
* The heartbeat now properly removes the notebook/kernel mapping.
2011-08-15 15:06:11 -07:00
Brian E. Granger
3602f7f023 Date is properly removed from JSON reply before WebSocket forward.
* Both the header and parent_header have a date field that cannot
  be json serialized. This field is just removed for now, but
  in the future, we will covert the date to a ISO8601 field.
* Better error handling around this code has also been added
  to prevent the server from crashing due to malformed messages.
2011-08-15 14:43:49 -07:00
Brian E. Granger
726f8c1780 Pager is not activated if the pager text is empty.
* Things like asdf.*? used to open the pager even though there
  was nothing to show.
2011-08-15 14:25:49 -07:00
Brian E. Granger
a086fc6d83 I like ClearAll better than Clr All. 2011-08-15 14:21:28 -07:00
Brian E. Granger
c7a12effa1 Export works with filenames having spaces.
* The fix was to put the filename in double quotes in the
  Content-Disposition header.
* Export As/Clear All have been renamed to Export and Clr All
2011-08-15 14:19:36 -07:00
Brian E. Granger
bf8ba0889e Code cell gets focused after "To Code" is triggered. 2011-08-15 14:15:21 -07:00
Brian E. Granger
dcd25caf9a Adding additional whitespace at botton of notebook for TAB comp. 2011-08-15 14:10:27 -07:00
Brian E. Granger
0790979100 Fixing tab completion edge cases. 2011-08-15 14:03:17 -07:00
Brian E. Granger
60147f495f A single tab-completion match is now automatically selected. 2011-08-14 23:41:54 -07:00
Brian E. Granger
e445ad1796 Fixing latex rendering bug. 2011-08-14 23:30:11 -07:00
Brian E. Granger
75c54c887e Notebook id removed from the notebook format. 2011-08-14 22:38:46 -07:00
Brian E. Granger
3d7d0f8b0b Added a notebook dirty flag that is used when exiting page. 2011-08-14 22:01:39 -07:00
Brian E. Granger
e911393836 Browser window title follows the name of the notebook. 2011-08-14 21:48:20 -07:00
Brian E. Granger
3be2ace4f2 Autotry additional ports if 8888 if already in use. 2011-08-14 21:41:01 -07:00
Brian E. Granger
63de9cd719 Fixing bug that caused plots to not be saved.
CodeCell.append_mime_type needed a default element.
2011-08-14 21:29:07 -07:00
Brian E. Granger
a9d6f2eb2d Major refactor of kernel connection management in the notebook.
* Full kernel heartbeating is working.
* Connections between the notebook and server and now created
  a new each time there is a WebSocket connection. Each channel is
  also handled separately. This dramatically simplifies the
  server code and makes for a more scalable system.
2011-08-14 17:58:25 -07:00
Brian E. Granger
b264e21a6d Clear all output is implemented. 2011-08-13 16:18:16 -07:00
Brian E. Granger
24a3464921 Disabling auto-save at exit. 2011-08-13 16:08:30 -07:00
Brian E. Granger
058c0b4767 HTML output cells are now styled with the rendered_html class. 2011-08-13 15:55:58 -07:00
Brian E. Granger
c72b41883f Adding tracebacks, evalue and etype to the nbformat and notebook. 2011-08-13 15:53:35 -07:00
Brian E. Granger
0c3bba9641 Adding time delay to show the notebook saving more clearly. 2011-08-11 16:55:46 -07:00
Brian E. Granger
1abacb4fce HTML/Markdown cells no longer saved their rendered output. 2011-08-11 16:48:22 -07:00
Brian E. Granger
0b5b3ed341 Added collapsed field to the code cell. 2011-08-11 16:44:50 -07:00
Brian E. Granger
0529d43ae7 Fixing padding of output cells. 2011-08-11 15:39:48 -07:00
Brian E. Granger
c2ce42121b %loadpy works in the notebook and bug with inline plotting fixed. 2011-08-11 14:51:53 -07:00
Brian E. Granger
3db421fb73 Autoindentation fixed and enabled by default. 2011-08-11 14:30:44 -07:00
Brian E. Granger
0db7ab16a3 Finishing display system work.
* Added image/jpeg MIME type to notebook format, the core display
  logic and the notebook.
* Finished HTML, SVG, Image, Math, Javascript, JSON classes.
2011-08-11 14:17:01 -07:00
Brian E. Granger
3ad866c73d Reducing/adjusting the padding of cells to make the notebook more
compact.

* Reduced padding between cells from 15px to 5px.
* Prompt width is now dynamic to grow/shrink as the prompt number
  increases in width.
* Reduced padding between input and output from 15px to 5px.
2011-08-11 09:39:04 -07:00
Brian E. Granger
0877b01a74 Adding initial documentation on the notebook. 2011-08-11 09:19:43 -07:00
Brian E. Granger
90a20054a0 Updating notebook configuration.
* ipython_notebook_config.py is now created and staged.
* New certfile/keyfile config=True attributes for enabling SSL/TLS.
* Examples of usage added.
* New handling for --ip=*
* Aliases added.
2011-08-10 09:28:47 -07:00
Brian E. Granger
c238febce1 Merge branch 'master' into htmlnotebook
Conflicts:
	setupbase.py
2011-08-09 23:18:19 -07:00
Brian E. Granger
8a55d6bf22 Adding minor help strings for keyboard shortcuts. 2011-08-09 21:12:44 -07:00
Brian E. Granger
da63e8cbe8 Minor fixes to config system for notebook. 2011-08-09 16:38:09 -07:00
Brian E. Granger
20adfc4ced Updates to the css style of rendered html text cells. 2011-08-09 16:05:32 -07:00
Brian E. Granger
217616a505 Fixed text cell rendering bug. 2011-08-09 14:36:38 -07:00
Brian E. Granger
a70cbfc382 Implemented smart autoindenting. 2011-08-09 14:09:03 -07:00
Brian E. Granger
bc5dd6d359 Markdown cells are now saved and restored in notebooks. 2011-08-09 13:09:36 -07:00
Brian Granger
c56f76980e Reordering Export button and renaming Export->Export As 2011-08-09 12:38:59 -07:00
Brian Granger
f90b5761a2 Refactoring of text/markdown/rst/html cells. 2011-08-09 11:37:14 -07:00
Brian E. Granger
81a1099f87 Starting work on a Markdown cell. 2011-08-09 10:05:20 -07:00
Brian E. Granger
b62857f151 Fixing HTML cell syntax highlighting. 2011-08-08 14:33:48 -07:00
Brian E. Granger
b7bcdabc9a Updating CodeMirror to v 2.12.
For now I am keeping the old codemirror2 directory in here until
we finish debugging the new version.
2011-08-08 14:03:36 -07:00
Brian E. Granger
9964704b73 New HTMl cell working with CodeMirror editing. 2011-08-08 11:12:11 -07:00
Brian E. Granger
a003af7977 Starting to rename text cell to html cell. 2011-08-08 08:44:51 -07:00
Brian E. Granger
875e7da94b Added saving and loading of output of all types. 2011-08-07 20:38:51 -07:00
Brian E. Granger
188e6271e1 Using beforeunload to save at exit and kill the kernel. 2011-08-07 12:26:33 -07:00
Brian E. Granger
8cf1812395 Fixed subtle bug in kernel restarting.
* Old routers were not being shutdown and removed.
* We were incorrectly associating the new kernel with the notebook
  (we were using the *old* kernel_id for this).
* General clean ups in the kernel manager.
2011-08-07 11:17:54 -07:00