Commit Graph

743 Commits

Author SHA1 Message Date
Brian E. Granger
970742c267 Using self.request._cookies in WS handlers. 2011-10-18 18:11:14 -07:00
Brian E. Granger
9b945e7bc2 Added kill_kernel to notebook template. 2011-10-18 18:11:14 -07:00
MinRK
6c5f69e97a Moving status widget to Kernel section of L panel. 2011-10-18 18:11:08 -07:00
MinRK
139fe52832 Renaming user cookie to username to better match usage. 2011-10-18 18:10:22 -07:00
Brian E. Granger
fd06bd1610 Minor changes to the notebook handlers. 2011-10-18 17:55:27 -07:00
Brian E. Granger
d26a7e5fcc Removed save widget delay. 2011-10-18 17:55:27 -07:00
Brian E. Granger
5f3fd837a4 Renaming NBBrowserHandler->ProjectDashboardHandler. 2011-10-18 17:55:26 -07:00
Brian E. Granger
05729f7c0c Further cleanup and renaming of notebook. 2011-10-18 17:55:26 -07:00
Brian E. Granger
2318fe4ef5 Renaming things in the notebook.
* nbbrowser -> projectdashboard.
* Getting rid of underscores on .js filenames.
2011-10-18 17:55:26 -07:00
Brian E. Granger
ae37e2fe2c Simplifying logic on login page. 2011-10-18 17:55:26 -07:00
Brian E. Granger
1f699c8c23 Further work updating JS URL scheme to use data-base-project-url. 2011-10-18 17:55:26 -07:00
Brian E. Granger
cc3516be01 Updating notebook list to use data-base-project-url. 2011-10-18 17:55:26 -07:00
Brian E. Granger
1f06a280ca Updating JS URL scheme to use embedded data.
All ajax requests from JS now use the data-base-project-url
and data-base-kernel-url data attributes set on the body.
2011-10-18 17:55:25 -07:00
Brian E. Granger
36e15cb5c2 Adding data-project to the body data attribs. 2011-10-18 17:55:25 -07:00
Brian E. Granger
c900979a80 Misc changes to the notebook.
* IPythonNotebookApp->NotebookApp.
* Cleaned up html templates of unused stylesheets.
2011-10-18 17:55:25 -07:00
Brian E. Granger
7611a38721 Minor changes to handlers. 2011-10-18 17:55:25 -07:00
MinRK
4f26dae311 don't present meaningless username option in notebook
username isn't used for anything other than hash input
for authentication, so remove the field in the login form
and just use a uuid.
2011-10-18 17:55:25 -07:00
Brian E. Granger
66d5c9f8a6 Adding base_project_url and base_kernel_url as HTML data attribs.
* Also saving the notebook_id using that as well.
2011-10-18 17:55:25 -07:00
Fernando Perez
986f2e7223 Merge pull request #893 from minrk/clearoutput
Adding clear_output to kernel and HTML notebook.

This enables the clearing of output during the execution of a cell. It can be used for simple forms of animation in the notebook.
2011-10-18 17:55:13 -07:00
MinRK
033c9d9848 Add tooltips to the notebook via 'title' attr.
All buttons, show/hide clickable areas, etc. should have some tooltip describing
what they do.  There are jQuery plugins for enhanced tooltips, but this gets
the lightest version working.

closes #436
2011-10-18 17:43:29 -07:00
MinRK
24d37b6bcc add channel-selection to clear_output
example notebook updated accordingly
2011-10-17 19:27:50 -07:00
Brian Granger
10deb3b744 Adding clear_output to kernel and HTML notebook. 2011-10-17 16:19:58 -07:00
Fernando Perez
9fa9f0b15f Merge pull request #884 from fperez/nb-usability
Various Notebook usability fixes:

- add kernel restart dialog confirmation (it destroys the user session)
- add missing keybindings
- change language from 'terminal mode' to 'in-place execution' which is more descriptive
- adjust spacing/padding and colors slightly for readability and better use of space in small screens.
- add line numbering toggle to code cells.  Triggered with C-m-l.
- show keybindings in monospaced font.
- add QuickHelp button that is always visible and at the top.
- add missing keybindings for kernel interrupt/restart from the kbd.
2011-10-17 16:10:25 -07:00
Fernando Perez
55223d0414 Adjust title area sizes to improve alignment. 2011-10-17 16:07:40 -07:00
MinRK
a42f678fd1 Merge PR-883
Notify user if notebook save fails.

closes #883
2011-10-17 15:24:53 -07:00
Fernando Perez
781c5ad281 Underline quick help button key accelerator (h). 2011-10-17 15:23:57 -07:00
MinRK
8d139492ce show_keyboard_shortcuts -> toggle_keyboard_shortcuts
Now multiple calls no longer show multiple instances of the shortcut dialog.  Rather, clicking the quick help, or invoking `C-m h` will hide
the dialog if shown.
2011-10-17 15:02:05 -07:00
MinRK
53d10a61ab fix quickhelp widget
Move header.js -> quickhelp.js, as it not longer acts on whole header.
2011-10-17 14:58:08 -07:00
Thomas Kluyver
74771e4037 Add ability to open the notebook in a browser when it starts. 2011-10-17 22:33:02 +01:00
Fernando Perez
b06d0f03c6 Adjust cell background and number color after review with @minrk. 2011-10-17 14:00:38 -07:00
Fernando Perez
77c62893bc Keep kernel-related bindings together in code. 2011-10-17 00:43:47 -07:00
Fernando Perez
1a109765b8 Clean up accidentally introduced hard tabs in JS code. 2011-10-17 00:37:27 -07:00
Fernando Perez
83790b7e29 Fix text cell color, was too light to be seen on certain monitors/browsers. 2011-10-16 20:02:53 -07:00
Fernando Perez
e9d744f06c Add quick help button: broken ATM, style and binding aren't working.
Help needed here, will discuss during pull request before merging.
2011-10-16 20:02:53 -07:00
Fernando Perez
6d0715988f Change button labels in restart dialog to action words. 2011-10-16 20:02:53 -07:00
Fernando Perez
e852a86669 Add confirmation dialog to kernel restart action. 2011-10-16 20:02:53 -07:00
Fernando Perez
e41ba5a75c Refactor line num. toggle into proper function, access via C-m-l.
This makes the keybinding consistent with the rest, updated help dialog.
2011-10-16 20:02:53 -07:00
Fernando Perez
8fb9f71e42 Use monospaced font for keybinding display. 2011-10-16 20:02:53 -07:00
Fernando Perez
e8326241eb Add C-m-{'i', '.'} as keybindings for kernel interrupt/restart. 2011-10-16 20:02:53 -07:00
Fernando Perez
3db974a4f4 Padding adjustments to better use vertical and horizontal whitespace.
Verified that all prompts align correctly on linux/chrome + ffox, and
that input prompts up to 4 digits long still fit.
2011-10-16 20:02:53 -07:00
Fernando Perez
e00e604144 Add Ctrl-L as a way to toggle line-numbers for any individual code cell 2011-10-16 20:02:53 -07:00
MinRK
7041224f96 fix typo in stripping kernel args in nb and qt
closes #885
2011-10-16 19:56:47 -07:00
Felix Werner
a4bec7e65d Fixed testing of new notebook name before saving. 2011-10-16 19:35:18 +02:00
Felix Werner
f5b52442aa Notify the user of errors when saving a notebook. 2011-10-16 18:24:12 +02:00
Felix Werner
a89d947322 Update document title and last_saved_name only after a successful save. 2011-10-16 18:18:32 +02:00
Fernando Perez
13377a2d23 Merge branch 'carreau-mathjax-warning'
Warn user if MathJax can't be fetched from notebook

Closes #744.
2011-10-15 01:28:08 -07:00
Fernando Perez
87462b4259 Minor fixes to text and formatting of error message. 2011-10-15 01:27:36 -07:00
Fernando Perez
df43150509 Merge pull request #850 from fperez/codemirror
Update codemirror to 2.15 and make the code internally more version-agnostic.

Added our own README file with information about what changes we carry to upstream CodeMirror and what version we currently use.
2011-10-14 13:30:55 -07:00
Matthias BUSSONNIER
85ea4222fb Hide warning message about matjax when page load
also fix Matjax->MathJax
2011-10-14 19:28:36 +02:00
Matthias BUSSONNIER
b05d2c21a9 Matjax Warning message improvement.
merge '<script>' balises.
	Improve message text and style.
	Remove instead of hide
2011-10-14 11:10:15 +02:00