Commit Graph

1504 Commits

Author SHA1 Message Date
Jonathan Frederic
dba9a04f27 Removed block commented tour step (never worked anyways) 2014-06-10 10:50:34 -07:00
Jonathan Frederic
e31fa6cf2c Fix bootstrap tour 2014-06-10 10:14:14 -07:00
Jonathan Frederic
99b1747c60 Bootstrap Tour related fixes 2014-06-09 17:46:20 -07:00
Jonathan Frederic
bccb7ddaea Fab CSS 2014-06-09 16:14:07 -07:00
Jonathan Frederic
ea29056e7c Review #2 2014-06-09 16:13:59 -07:00
Jonathan Frederic
63350a4d54 Fab CSS 2014-06-09 12:13:31 -07:00
Jonathan Frederic
1224af6028 Fixed cell toolbar select font size 2014-06-09 12:13:21 -07:00
Jonathan Frederic
cd289b6bdf Fab CSS 2014-06-09 12:06:29 -07:00
Jonathan Frederic
83eee97e95 Review comments 2014-06-09 12:05:40 -07:00
Jonathan Frederic
3bb8c472cd Modal fixes for BS3 2014-06-09 12:05:40 -07:00
Jonathan Frederic
4917aba5e4 Fab CSS 2014-06-09 12:05:40 -07:00
Jonathan Frederic
2d8afab3d4 Fix widget widths for Bootstrap3 2014-06-09 12:05:40 -07:00
Jonathan Frederic
33f7f4457f Widget bootstrap3 fixes 2014-06-09 12:05:39 -07:00
Jonathan Frederic
29de556b94 Fab CSS 2014-06-09 12:05:39 -07:00
Jonathan Frederic
8fd3515794 Post discussion with @ellisonbg 2014-06-09 12:05:39 -07:00
Jonathan Frederic
ceff3db0a2 Fab CSS 2014-06-09 12:05:39 -07:00
Jonathan Frederic
616bdcee81 Make maintoolbar select dropdowns look nice 2014-06-09 12:05:39 -07:00
Jonathan Frederic
32c7aea922 Fab CSS 2014-06-09 12:05:39 -07:00
Jonathan Frederic
73f68f9b93 Revert 2em notebook header space 2014-06-09 12:05:39 -07:00
Jonathan Frederic
5584eb06a9 Fab CSS 2014-06-09 12:05:39 -07:00
Jonathan Frederic
45ebf12371 Left align "File" instead of menu edge. 2014-06-09 12:05:39 -07:00
Jonathan Frederic
6834cb95bc Rebase cleanup, comments and nesting 2014-06-09 12:05:39 -07:00
Jonathan Frederic
dec962194f Update components to point to right branch 2014-06-09 12:05:39 -07:00
Jonathan Frederic
ff2e317fff Fab CSS 2014-06-09 12:05:38 -07:00
Jonathan Frederic
22c94ab404 Lots of small alignment tweaks to get Bootstrap3 looking better 2014-06-09 12:05:38 -07:00
jon
0b5a42fca6 Fab CSS 2014-06-09 12:05:38 -07:00
jon
ef19b962b5 Fix cell toolbar 2014-06-09 12:05:38 -07:00
jon
8dbf3afa7d Fixed cell toolbar dropdown 2014-06-09 12:05:38 -07:00
jon
0cc924e5e3 Fixed IPython dialog 2014-06-09 12:05:38 -07:00
jon
68cfaeb7c9 Fixed status indicator region 2014-06-09 12:05:38 -07:00
jon
9bce946f2e Added function to create Bootstrap specific drop down. 2014-06-09 12:05:38 -07:00
Jonathan Frederic
ade308803e Added dropdown submenu CSS 2014-06-09 12:05:38 -07:00
Jonathan Frederic
e30ff19ca8 Move header padding removal to base page style 2014-06-09 12:05:38 -07:00
Jonathan Frederic
778db574ed Removed static height from selects in toolbar 2014-06-09 12:05:37 -07:00
Jonathan Frederic
96b19ae598 Removed low margin from header. 2014-06-09 12:05:37 -07:00
Jonathan Frederic
697cc58655 Change the nav bar to nav-pills 2014-06-09 12:05:37 -07:00
Jonathan Frederic
0689830c4b Fixes to make spinners in cluster list display correctly. 2014-06-09 12:05:37 -07:00
Jonathan Frederic
0483bb2ed8 Fixed cluster list. 2014-06-09 12:05:37 -07:00
Jonathan Frederic
3635272119 Removed margin from row element 2014-06-09 12:05:37 -07:00
Jonathan Frederic
88a129eab3 Fab CSS 2014-06-09 12:05:37 -07:00
Jonathan Frederic
204130d292 Re-enabled nav bar height 2014-06-09 12:05:37 -07:00
Jonathan Frederic
242318be9b Fab CSS 2014-06-09 12:05:37 -07:00
Jonathan Frederic
365aafdaa2 Automated pass on LESS variables 2014-06-09 12:05:37 -07:00
Jonathan Frederic
329a387f4f Fix automation errors. 2014-06-09 12:05:37 -07:00
Jonathan Frederic
d88daf1bb7 Ran jdfreder/bootstrap2to3 2014-06-09 12:05:37 -07:00
Jonathan Frederic
5c47651786 Get notebook running with Bootstrap3 2014-06-09 12:05:36 -07:00
Min RK
2c8a53aca1 Merge pull request #5944 from jdfreder/i5943
Markdown rendering bug fix.
2014-06-04 15:54:06 -07:00
Brian E. Granger
c9f9f5bbd2 Merge pull request #5937 from jdfreder/i5709
Add latex support in widget labels,
2014-06-04 14:21:34 -07:00
Brian E. Granger
648bb51758 Merge pull request #5479 from jdfreder/i5135
Mixed gfm/latex parsing in codemirror
2014-06-04 13:37:54 -07:00
Min RK
724109454b Merge pull request #5941 from jdfreder/i5688
Remember cursor position on cell type change
2014-06-04 12:22:16 -07:00
Min RK
3badefd651 Merge pull request #5936 from jdfreder/i5821
Change widget css dict to a list,
2014-06-04 12:21:43 -07:00
Min RK
4a84a809a0 Merge pull request #5896 from ellisonbg/widget-fixes
Widget fixes
2014-06-04 12:12:10 -07:00
Jonathan Frederic
d84c8fa863 Fixed mardown rendering bug.
The wrong signature of `$()` was being used
wrong: http://api.jquery.com/jQuery/#jQuery1
right: http://api.jquery.com/jQuery/#jQuery2

Instead of implictly calling parseHTML, call it explicitly.
closes #5943
2014-06-03 14:04:56 -07:00
Jonathan Frederic
19d12e3025 Remember cursor position on cell type change 2014-06-03 10:34:43 -07:00
Jonathan Frederic
33a0a3cc87 Add latex support in widget labels,
This PR even adds support to use latex in PopupWidget titles.
2014-06-02 16:06:01 -07:00
Jonathan Frederic
74483d77da Change css dict to a list,
even though this introduces O(N) complexity, it fixes a bug
where path dependent css traits could be executed out of order,
making it impossible to actually set the traits from the back-end.
2014-06-02 15:00:33 -07:00
Ramiro Gómez
2215ddefca Change z-index of ipython_tooltip
I experienced the problem stated in #5755. Giving the ipython_tooltip class a higher z-index indeed solves the problem. I intentionally set it to a high value so it likelier remains on top when styles are changed in the future.
2014-05-28 23:45:44 +02:00
MinRK
88be381b00 forcefully hide CodeMirror scrollbars
workaround for CodeMirror issue 2562

less drastic but more gross alternative to #5889
2014-05-22 12:32:51 -07:00
Jonathan Frederic
802f74e190 Create ipythongfm mode 2014-05-21 11:00:47 -07:00
Min RK
9794017dee Merge pull request #5882 from ivanov/preserve-cell-type
inserting new cells preserves cell type
2014-05-20 21:04:55 -07:00
Paul Ivanov
7778aed8a8 inserting new cells preserves type closes #4917 2014-05-20 15:40:32 -07:00
Paul Ivanov
f2f1726cad use current cell's type when inserting
this preserve all previous behavior, but simply adds the ability to
insert cells without specifying a cell type, in which case the cell type
is inferred from the currently selected cell
2014-05-20 15:40:26 -07:00
Min RK
a540078d8d Merge pull request #5605 from AlbertHilb/CellToolbar
Two cell toolbar fixes.
2014-05-16 09:56:46 -07:00
watercrossing
fe37c14bdf add page-up and page-down functionality to the autocomplete dropdown 2014-05-15 14:35:59 +01:00
MinRK
970863331b remove Firefox-specific CSS workaround
The bug being worked around appears to be fixed either in CodeMirror or Firefox (tested with FF 29).

Importantly, the workaround appears to *introduce* incorrect behavior

closes #5192
closes #5364
2014-05-12 14:17:01 -07:00
MinRK
336f47c126 update message spec adapter per review
- docs and comments
- adapt complete_reply with `end=null`, `start=-len(matched_text)`
- remove some incorrect `status` fields
- add `handle_reply_status_error` for handling `status=error` replies (no-op, currently)
2014-05-09 12:04:08 -07:00
Thomas Kluyver
2cc7b1ca30 Merge pull request #4536 from minrk/msgspec5
Updating the message spec (finish IPEP 13, 24)
2014-05-09 12:00:58 -07:00
MinRK
b7c1f1d8f6 allow notebook tour instantiation to fail
can fail with SecurityError,
depending on browser privacy settings

disable UI Tour menu entry if tour instantiation fails

ref: sorich87/bootstrap-tour#262
2014-05-08 15:14:23 -07:00
MinRK
42ae83da16 add shim for double-serialized JSON
msgspec gives unserialized JSON,
nbformat v3 wants JSON strings.
2014-05-08 14:05:03 -07:00
MinRK
58aca05486 add version key to js message headers 2014-05-08 14:05:03 -07:00
MinRK
97fdfea52a updates per review
- two-part protocol version (5.0)
- default value for cursor_pos is end of code
- docs, comment, and docstring touchups
2014-05-08 14:05:02 -07:00
Jonathan Frederic
a65b6f3c1e Removed log statement 2014-05-08 13:50:00 -05:00
Jonathan Frederic
c83a1cbb63 Fixed bugs in displayed event triggering for containers 2014-05-08 13:46:48 -05:00
Brian E. Granger
a0c1d37224 Remove model from WidgetManager._model on comm:close. 2014-05-08 12:06:20 -05:00
Brian E. Granger
6c03b508a5 Pop child view from child_model.view in delete_child_view 2014-05-08 11:59:20 -05:00
Brian E. Granger
2ffd153e5d Removing double call to model.views.push(view) in WidgetManager. 2014-05-08 11:44:49 -05:00
MinRK
fb72c3d863 remove an inappropriate !
the logic was backwards.
2014-05-07 10:32:26 -07:00
Matthias BUSSONNIER
c9f0d14c09 unify visual line handling 2014-05-07 17:59:37 +02:00
MinRK
de0b7f140c move pyout/execute_result and pyerr/error transforms to to/fromJSON
like the mime-type maps
2014-05-06 22:41:24 -07:00
MinRK
33d2176bc5 complete_reply has cursor_start and cursor_end, not matched_text 2014-05-06 22:41:24 -07:00
MinRK
b78c5b1554 s/object_info_request/inspect_request 2014-05-06 22:41:23 -07:00
MinRK
4f6565bd2a pager payload is a mime-bundle 2014-05-06 22:41:23 -07:00
MinRK
a74c79ceab update completion_ and objection_info_request
both requests take:

- code (up to full cell)
- cursor_pos (cursor offset in unicode characters)

and object_info_replies return a mime-bundle, instead of structured data
2014-05-06 22:41:19 -07:00
MinRK
98c408cbd1 support password in input_request 2014-05-06 22:39:44 -07:00
MinRK
5e8ce3b7e1 remove user_variables
leave only user_expressions
2014-05-06 22:39:43 -07:00
MinRK
5fb9837f5a pyerr -> error 2014-05-06 22:39:41 -07:00
MinRK
38c76aa913 pyout -> execute_result
nbformat and nbconvert are not affected
2014-05-06 22:39:01 -07:00
Min RK
6b7d3fddec Merge pull request #5668 from minrk/async-output
allow async output on the most recent request
2014-05-06 10:42:02 -07:00
Min RK
d87045744c Merge pull request #5768 from ivanov/cm-uuddlrlrba
fix cursor keys in long lines wrapped in markdown
2014-05-05 17:02:14 -07:00
Raffaele De Feo
ba7a3ec6bc Make sure that celltoolbars are hidden
when a notebook without "celltoolbar" entry in metadata is loaded.
2014-05-02 18:39:05 +02:00
Raffaele De Feo
61bdcb477b When a preset is activated fire "preset_activated" event.
On "preset_activated" event, update the value of the maintoolbar select element that lists celltoolbar presets.
When a preset is registered after notebook is loaded, active it if needed.
2014-05-02 18:33:29 +02:00
Thomas Kluyver
b357c55fef Merge pull request #5715 from minrk/log-all-ajax-failures
log all failed ajax API requests
2014-05-01 17:21:29 -07:00
Paul Ivanov
fe7193e5af fix cursor keys in long lines wrapped in markdown 2014-05-01 10:31:34 -07:00
MinRK
da525f1541 fix delete_checkpoint errback name 2014-04-28 11:30:50 -07:00
MinRK
0a143e716e dialog on New Notebook failure 2014-04-23 13:22:36 -07:00
MinRK
82964a09c2 log all failed ajax API requests 2014-04-23 13:17:50 -07:00
Raffaele De Feo
4adb8b5ffc Adjusted "rawcell" toolbar preset to make us of the new "register_callback"
optional parameter.
2014-04-23 15:57:17 +02:00
Min RK
748b2c64d5 Merge pull request #5627 from AlbertHilb/ConditionalCallbacks
Some improvements to cell toolbars
2014-04-22 16:36:58 -07:00
Min RK
673c644a4f Merge pull request #5534 from minrk/pre-css
cleanup some `pre` css inheritance
2014-04-22 15:19:20 -07:00
Thomas Kluyver
0dc02c176a Merge pull request #5586 from minrk/pdf-exporter
add PDFExporter
2014-04-22 13:15:22 -07:00
Min RK
86cd81014f Merge pull request #5648 from andrewjesaitis/ticket4756
Adds markdown formatting to output cells
2014-04-22 11:37:47 -07:00
Jonathan Frederic
035562d95b Merge pull request #5602 from jasongrout/kernel-js-post
Change $.post to this.post in the kernel js file
2014-04-21 19:46:23 -07:00
Min RK
048a36e4fd Merge pull request #5523 from jdfreder/i5521
Make SVGs resizable in the NB
2014-04-21 15:57:40 -07:00
Andrew Jesaitis
889b711fd7 Adds markdown formatting to output cells 2014-04-18 19:16:41 -06:00
MinRK
66ee7dcea4 allow async output on the most recent request
Keeps track of the most recent request, so async output is still allowed
2014-04-18 13:26:14 -07:00
Jonathan Frederic
561f670423 Merge pull request #5652 from jhamrick/placeholder
Add placeholder attribute to text widgets
2014-04-17 17:09:08 -07:00
Paul Ivanov
ae8c7c8c6e Merge pull request #5584 from ivanov/more-semantic-icons
more semantic icons
2014-04-17 13:44:02 -07:00
Paul Ivanov
0c3e4acb75 use folder-close-alt without highlighting
discussion of this happened in #5584
2014-04-17 12:15:10 -07:00
Jessica B. Hamrick
95fc7167dd Add placeholder to textarea as well as text 2014-04-17 11:06:11 -04:00
Jessica B. Hamrick
1f8253898c Make sure to update the placeholder on render as well 2014-04-17 11:06:00 -04:00
Jessica B. Hamrick
e436850582 Add placeholder attribute to text widgets 2014-04-17 10:56:30 -04:00
Raffaele De Feo
59dbab6121 Removed "cell_types" parameter from "select_ui_generator".
If you don't want to show the UI element in a cell use the
"register_callback" optional parameter.
2014-04-17 00:26:29 +02:00
Raffaele De Feo
5b6b8e2bbf Why overriding a method if the new one is exactly the same of the one
in the base class?
2014-04-15 19:34:26 +02:00
Raffaele De Feo
dcf77aa2a0 Hide toolbar of rendered text cells. 2014-04-15 19:34:26 +02:00
Raffaele De Feo
5a53a034f4 Hide the cell toolbar if there are no ui controls in it. 2014-04-15 19:34:26 +02:00
Raffaele De Feo
9f959342fa Added an optional parameter to "CellToolbar.register_callback".
It lists the cell types the UI element must inserted in.
2014-04-15 19:34:26 +02:00
Nile Geisinger
0a702ff718 Fixing bug #5607
Changed the method from extends to merge which merges the two arrays as
desired - With Freyert
2014-04-14 12:01:55 -04:00
Jason Grout
ea66ebe316 Change $.post to this.post in the kernel js file
This makes it easy to override the post function for custom communication requirements.  Any replacement function, of course, needs to have the same semantics as $.post.
2014-04-12 06:31:32 -05:00
MinRK
f7c1a15896 support pdf export in the notebook UI 2014-04-10 21:13:41 -07:00
Paul Ivanov
0a4473a2fa book icon for notebooks, color folders differently
This allows us to use the generic file icon for text files, etc, down
the line.
2014-04-10 15:04:55 -07:00
Paul Ivanov
3e6492dafd use fixed-width icons, closes #5555 2014-04-10 14:19:36 -07:00
Paul Ivanov
9ccf8e39fe remove auth and tree from ipython.less
@minrk said it's the right thing to do
2014-04-10 14:02:12 -07:00
Paul Ivanov
39c1346805 more semantic icons 2014-04-10 13:00:48 -07:00
Min RK
ae61228994 Merge pull request #5527 from jdfreder/i5518
Don't remove upload items from nav tree unless explicitly requested.
2014-04-09 16:01:40 -07:00
MinRK
78ee21e533 master is 3.0.0-dev 2014-04-09 13:42:45 -07:00
Paul Ivanov
9bb9652348 one more place 2014-04-08 20:38:18 -07:00
MinRK
4bc14c1154 never use for (var i in array)
because javascript is terrible
2014-04-08 20:38:16 -07:00
Thomas Kluyver
9a037d02e9 Merge pull request #5459 from jdfreder/ff_animhop
Fix interact animation page jump FF
2014-04-08 14:23:28 -07:00
Jonathan Frederic
6ed0bf975b Don't remove upload items unless explicitly requested. 2014-04-07 10:53:41 -07:00
MinRK
6d2774f0af cleanup some pre css inheritance
We had various overrides of the bootstrap defaults for font-size and line-height every time we made a pre tag,
and then some overrides of our overrides when we wanted something slightly different.

This moves the most basic overrides to apply to all pre tags,
reducing the number of downstream changes we need.
2014-04-05 13:27:29 -07:00
Jonathan Frederic
1cac0e3fca Make SVGs resizable in the NB 2014-04-04 12:00:55 -07:00
jon
2c1f9790db Don't send \r characters in zmqshell clear_ourput 2014-04-03 16:38:00 -07:00
Jonathan Frederic
d4d4b2ac73 Cleanup 2014-04-03 12:19:17 -07:00
Jonathan Frederic
ccdb1b2d25 Make sure to not call old load events 2014-04-03 12:19:16 -07:00
Jonathan Frederic
7cc8211c6d A couple of fixes,
- Fix missing `type` from png/jpeg check
- Don't resize on weird chr(13) stand alone stream msgs
2014-04-03 12:19:16 -07:00
jon
955c419f24 Try removing the callbacks 2014-04-03 12:19:15 -07:00
jon
eebae30bd1 Use .load() to resize 2014-04-03 12:19:15 -07:00
jon
45d69b5f25 Move append_output animation height lock release into timeout. 2014-04-03 12:19:15 -07:00
Thomas Kluyver
a90ee73a80 Update tooltips to refer to shift-tab
Closes gh-5510
2014-04-03 09:39:20 -07:00
MinRK
17bbc2b360 back to dev 2014-04-01 23:03:38 -07:00
MinRK
d482fb15b6 release 2.0.0 2014-04-01 22:19:46 -07:00
MinRK
c02562e40f remove weird unicode space in the new copyright header
The bytes were actually:

    #\xe2\x80\x82Copyright...
2014-04-01 21:26:27 -07:00
Min RK
3f3f3c136e Merge pull request #5436 from ivanov/cm-shorcuts-quickhelp
CodeMirror shortcuts in QuickHelp
2014-03-31 14:36:50 -07:00
Min RK
19ff0c03e1 Merge pull request #5444 from jdfreder/numparse
Fix numeric verification for Int and Float text widgets.
2014-03-31 14:35:00 -07:00
Min RK
e37bf2257d Merge pull request #5449 from minrk/quickhelp-stretch
Stretch keyboard shortcut dialog
2014-03-31 14:34:18 -07:00
Paul Ivanov
7880ad88b1 ok, removed last few unnecessary shortcuts 2014-03-28 17:20:22 -07:00
Paul Ivanov
7d4aed19e8 remove cm_keyboard.rst and OS-level shortcuts 2014-03-28 17:01:32 -07:00
MinRK
78bc36ec38 update link
The page is in the sphinx docs, not on the main website.
2014-03-28 14:41:10 -07:00
Paul Ivanov
c37e10feb2 move hyphen to cmd_ctrl 2014-03-28 12:58:25 -07:00
Paul Ivanov
c24ca22955 lower-cased single letter keys in shortcuts 2014-03-27 17:20:06 -07:00
Paul Ivanov
354ff54aa5 remove no-op placeholder edit mode "shortcuts" 2014-03-27 17:05:09 -07:00
Paul Ivanov
40ca1218c7 completed both sets of platform-specific shortcuts 2014-03-27 16:48:01 -07:00
Paul Ivanov
1102095830 Hi, I'm a Mac. And I'm a PC. 2014-03-27 15:24:43 -07:00
Thomas Kluyver
982aab67ba Merge pull request #5290 from jdfreder/dual_tests
Add dual mode JS tests
2014-03-27 15:03:14 -07:00
MinRK
bfb3d8ec30 check that a handler is actually registered in ShortcutManager.handles
there are a few shortcuts that do not specify handlers
(just for quick help contents),
and this was preventing the actual events from ever firing.
2014-03-27 14:31:07 -07:00
MinRK
8a44e91c0c use modal_stretch on keyboard shortcut dialog 2014-03-27 13:32:42 -07:00
MinRK
b3b200abcb add modal_stretch class
for stretching a dialog to fill the screen
2014-03-27 13:32:18 -07:00
MinRK
4d955e9641 remove unneeded width: 100% firefox workaround
this is no longer needed with `display: flex`
2014-03-27 13:31:02 -07:00
jon
79f6ea9b1f Allow '.', '+.', '+', '-.', and '-' even though without numbers, they cannot be parsed. 2014-03-27 10:29:02 -07:00
MinRK
9552688a71 back to dev 2014-03-25 22:46:06 -07:00
MinRK
2adfb5254c 2.0.0-rc1 2014-03-25 20:16:54 -07:00
Paul Ivanov
f1573bd266 CodeMirror shortcuts in QuickHelp
Our users shouldn't need an internet connection to look at the code
mirror shortcuts. This PR places the CM keyboard shortcuts that are
currently documented on our website's rendered docs, and places them
inside the keyboard shortcuts quickhelp.
2014-03-25 18:19:06 -07:00
Paul Ivanov
0240b20127 Merge pull request #5419 from minrk/responsive-prompts
move prompts from margin to main column on small screens
2014-03-25 16:47:26 -07:00
Min RK
a594a691c6 Merge pull request #5430 from jdfreder/elementappend
Make sure `element` is correct in the context of displayed JS
2014-03-25 16:44:34 -07:00
Min RK
34571232bb Merge pull request #5396 from ivanov/fix-5363
prevent saving of partially loaded notebooks
2014-03-25 16:40:24 -07:00
Paul Ivanov
f41750ca6b address PR feedback 2014-03-25 16:31:29 -07:00
Jonathan Frederic
1235c2f638 Make sure element is correct in the context of displayed JS
closes #5293
2014-03-25 15:54:20 -07:00
Jonathan Frederic
b4099518f8 Fix tooltip pager feature
Updates to tooltip.js for msg spec changes.
2014-03-25 15:12:38 -07:00
Min RK
b294bf7059 Merge pull request #5404 from jdfreder/accordion
Fix broken accordion widget
2014-03-24 18:08:17 -07:00
Jonathan Frederic
e1daedf95b Fixed keyboard.js indent break 2014-03-24 15:43:10 -07:00
Paul Ivanov
997a9735f0 Merge pull request #5320 from jdfreder/focusbug_tt
Fix for Tooltip & completer click focus bug.
2014-03-24 15:18:45 -07:00
Paul Ivanov
c5054883e9 small fixes for #5320 2014-03-24 15:02:04 -07:00
MinRK
f5ad1cc398 move prompts from margin to main column on small screens
This is mainly for nbviewer, but the relevant CSS lives in IPython.
2014-03-24 11:30:12 -07:00
Jonathan Frederic
aed8b7ba3c Remove commented out lines (for tab evt) 2014-03-21 14:39:43 -07:00
Jonathan Frederic
cbab393e44 Shrink cleanup lines 2014-03-21 13:20:46 -07:00
Jonathan Frederic
b90358888b Fab CSS 2014-03-21 13:20:10 -07:00
Jonathan Frederic
ee7f5b8235 Move width auto into less 2014-03-21 13:19:45 -07:00
Jonathan Frederic
bca3fdc4b0 Remove commented line 2014-03-21 13:17:00 -07:00
Jonathan Frederic
bf65d5837f Finish implementing codemirror events 2014-03-21 13:15:30 -07:00
Jonathan Frederic
1f002cd456 Add displayed property.
and remove logs, commments, etc...
2014-03-21 12:05:02 -07:00
Jonathan Frederic
607b96b19a Actually remove the trigger keydown method 2014-03-20 18:45:06 -07:00
Jonathan Frederic
a2071db309 More progress... 2014-03-20 18:41:15 -07:00
Jonathan Frederic
b2ec594c76 Getting a lot closer... 2014-03-20 18:01:58 -07:00
Jonathan Frederic
23494f4ddd Set tabindex -1, use codemirror's events 2014-03-20 17:37:53 -07:00
Jonathan Frederic
f2c8de99ae Fix broken accordion widget,
Also clean-up the code some while visiting this file.
2014-03-20 16:52:56 -07:00
Jonathan Frederic
ae2b0800cf Partial fix of problems b/c keydown move 2014-03-20 16:11:01 -07:00
Jonathan Frederic
1b46a777fb Removed trigger keydown from keyboard.js,
also added a bunch of missing semicolons (jshint)
2014-03-20 16:11:01 -07:00
Jonathan Frederic
dc6355ffb7 Prevent tab key from bubbling when the completer is open 2014-03-20 15:57:26 -07:00
Min RK
0493027d7e Merge pull request #5403 from minrk/alt-shortcut-bad
remove alt-- shortcut
2014-03-20 15:00:41 -07:00
Brian E. Granger
e51030ea5f Merge pull request #5368 from jdfreder/specifity
Flexbox classes specificity fixes
2014-03-20 14:34:17 -07:00
MinRK
2041dc6563 widen modal dialogs on wide displays
needed for quick help layout with multiple meta keys
2014-03-20 14:12:09 -07:00
MinRK
840364ff71 use box-flex to layout quickhelp 2014-03-20 14:11:05 -07:00
MinRK
19c64f4b59 remove alt-- shortcut
replace with ctrl-shift--

alt is not safe for defaults
2014-03-20 14:10:44 -07:00
Brian E. Granger
9f1b26d860 Merge pull request #5331 from minrk/raw-input-css
fix raw_input CSS
2014-03-20 13:47:14 -07:00
Min RK
0ae0216b12 Merge pull request #5049 from ivanov/quickhelp-update
update quickhelp on adding and removing shortcuts
2014-03-20 12:39:42 -07:00
Paul Ivanov
35c861f583 fix MacOS specific shortcuts, thanks @minrk 2014-03-20 12:38:25 -07:00
Brian E. Granger
bfdbdd456c Merge pull request #5391 from jdfreder/netscape-keyboard
Fix Gecko (Netscape) keyboard handling
2014-03-20 12:35:52 -07:00
Paul Ivanov
c28096f0c5 prevent saving of partially loaded notebooks
closes #5363
2014-03-20 02:21:38 -07:00
Paul Ivanov
54d9eb4358 really fix the '-' key shortcuts now 2014-03-19 22:29:31 -07:00
Paul Ivanov
77bf4a72dd better handling of minus 2014-03-19 19:24:05 -07:00
Jonathan Frederic
a08fbff5d9 Fix Gecko (Netscape) keyboard handling 2014-03-19 16:36:11 -07:00
Paul Ivanov
21ebaf2e32 handle keyboard shortcuts ending with '-' 2014-03-19 16:24:53 -07:00
Paul Ivanov
4cf1717980 use - for shortcut separators 2014-03-19 15:58:59 -07:00
Paul Ivanov
083f631cde wider style for keyboard shortcuts 2014-03-19 12:44:12 -07:00
Min RK
d88b2ccc4a Merge pull request #5310 from ivanov/fix-5238
remove raw cell placeholder on focus, closes #5238
2014-03-19 12:21:03 -07:00
Min RK
5c5139b65d Merge pull request #5332 from ivanov/semantic-icons
semantic names for indicator icons
2014-03-19 12:20:07 -07:00
Paul Ivanov
c54ced12e5 Merge pull request #5360 from minrk/monospace
remove some redundant font-family: monospace
2014-03-19 11:25:12 -07:00
Paul Ivanov
2e4036fd4f raw cell placeholder text as one line 2014-03-19 10:42:11 -07:00
Paul Ivanov
37852baa6d render on focus out, always pad raw cells 2014-03-19 10:37:59 -07:00
Paul Ivanov
8a623dbcc4 fab css 2014-03-18 12:06:06 -07:00
Paul Ivanov
955d239d07 rename css class names to be consistent with current style 2014-03-18 12:03:43 -07:00
Paul Ivanov
a0a17fa04a capitalize keyboard shortcuts in the tour 2014-03-18 11:19:44 -07:00
Paul Ivanov
00603a11f6 remove stale modal dialog from the DOM 2014-03-18 11:16:56 -07:00
Fernando Perez
5f086fded2 Merge pull request #5372 from minrk/no-close-strings
Don't autoclose strings, because CodeMirror's behavior makes it confusing and awkward to type triple-quoted strings (and these are very common in Python).

An issue about this was filed in CodeMirror itself: https://github.com/marijnh/CodeMirror/issues/2385
2014-03-18 11:14:24 -07:00
MinRK
3c1fe84f52 Don't autoclose strings
CodeMirror doesn't do the right thing with triple-quoted strings,
so don't let it try.
2014-03-18 11:11:28 -07:00
Paul Ivanov
597a5cb741 don't color code in crimson
do alliterate, aforementioned color alternative alias is amaranth
2014-03-18 11:03:09 -07:00
Paul Ivanov
b9ef37ac26 semicolon fixes buttress half of my js commits 2014-03-18 10:31:51 -07:00
Min RK
e64c2cb5d8 Merge pull request #5296 from ivanov/more-shortcuts
unify keyboard shortcut and codemirror interaction
2014-03-18 09:46:07 -07:00
Paul Ivanov
0c366861c5 brief key event desription 2014-03-17 21:09:51 -07:00
Paul Ivanov
6d6e0fb007 fix up and down arrows in the top and bottom cells 2014-03-17 20:11:33 -07:00
Paul Ivanov
09866e0ee1 go to the beginning of the line when entering cell 2014-03-17 17:41:44 -07:00
Paul Ivanov
96848748de restore master behavior
up arrow at the top line first goes to char 0, and only goes to the cell
above if already on char 0. Same with down arrow on the bottom line:
transition cursor to the end of the line, and only go down a cell if
already at the end of the last line.

this makes for an unhappy experience in code-mirror's vim mode  for j
and k keys, but we'll fix that in the next commit
2014-03-17 16:21:23 -07:00
Paul Ivanov
8f17444c27 go to appropriate line when coming from another cell
Sets the cursor on the last line of the cell when moved up from the top
of the cell below, and sets the cursors to the first line when moving
down from the bottom of a last line.

Here, we retain the character that the cursor was on, so that users
wishing to have up-down functionality like one document can still use
this shortcut handler and simple adjust the at_top and at_bottom methods
2014-03-17 15:48:36 -07:00
Jonathan Frederic
2dd8757da7 Fab CSS 2014-03-17 10:44:29 -07:00
Jonathan Frederic
77904a044c Re-added already existing base for less backwards compatability. 2014-03-17 10:43:53 -07:00
Jonathan Frederic
0020b9f896 Fix specifity of flex modifier classes 2014-03-17 10:40:28 -07:00
MinRK
8e5937e993 remove some redundant font-family: monospace
`pre`, `code` tags already set the font-family in these contexts.
Setting it again in the surrounding context is redundant,
and causes inconsistency when embedding notebooks in HTML
(e.g. nbviewer).
2014-03-14 11:43:11 -07:00
Jonathan Frederic
d37ffe91b7 Fix status ind. icon bug 2014-03-14 11:40:54 -07:00
MinRK
89faa5f340 simplify raw_input css
for once, vertical-align: baseline is the right choice
2014-03-13 20:47:34 -07:00
MinRK
065a6eaa34 fix ambiguous raw_input classes 2014-03-13 20:45:54 -07:00
Paul Ivanov
61b47695e4 renamed 'use_shortcut' method to 'handles' 2014-03-13 16:44:19 -07:00
Paul Ivanov
d8287466d0 another doc fix 2014-03-13 16:40:37 -07:00
Paul Ivanov
f68dcc3e57 it's only half true that I'm anal about semicolons 2014-03-13 16:30:58 -07:00
Paul Ivanov
67fd905421 minor fixes to docs to address PR feedback 2014-03-13 16:29:28 -07:00
Paul Ivanov
469c70fd10 more semicolons 2014-03-13 16:23:27 -07:00
Jonathan Frederic
443083c1fd Added some comments 2014-03-13 14:34:17 -07:00
Paul Ivanov
1dc113a9cb closes #5336 2014-03-13 14:30:32 -07:00
Paul Ivanov
4142911ac7 better fix for starting with Command Mode icon 2014-03-11 18:58:46 -07:00
Paul Ivanov
12139b4d6e ensure ipython-command-mode icon displayed on load 2014-03-11 18:48:21 -07:00
Paul Ivanov
f0ae836f5f semantic names for kernel status indicator 2014-03-11 18:37:35 -07:00
Paul Ivanov
f5a02a02dd semantic names for indicator icons
For all of the discussion that we had about what kind of icons should
and should not be used to indicate what mode the notebook is in, we
never went through to make it possible to override it.

With this change, it is now possible to override what icons are
displayed for Command and Edit Modes.

For example, @minrk liked the fighter-jet icon for Command Mode, so he
can put this in his custom.css

.ipython-command-mode:before {
     content: "\f0fb";
}
2014-03-11 18:22:03 -07:00
MinRK
084aba793f fix raw_input CSS
I had to express padding in px, not em for consistent appearance.
I'm not sure why.
2014-03-11 14:45:37 -07:00
Paul Ivanov
4dd009f198 DRY: style in one place, removed code duplication 2014-03-11 00:53:15 -07:00
Jonathan Frederic
7762cb0ab3 Fixed a small bug/typo 2014-03-10 15:29:10 -07:00
Jonathan Frederic
e61b6aef47 Add logic to close tt when cell is unselected 2014-03-10 15:26:04 -07:00
Brian E. Granger
3eb654bd86 Merge pull request #5295 from minrk/no-append-prototype
OutputArea.append_type functions are not prototype methods
2014-03-10 14:13:14 -07:00
Paul Ivanov
b08665563d fix capitalization of mode-switching keys 2014-03-10 11:48:13 -07:00
MinRK
a24595d16b call append_text from append_map 2014-03-10 11:44:00 -07:00
Paul Ivanov
01c9be84d0 prettify combo keyboard shortcuts 2014-03-10 11:30:50 -07:00
Paul Ivanov
1c213bc615 first pass at capitalizing keyboard shortcuts 2014-03-10 11:13:18 -07:00
Jonathan Frederic
95492b0f42 Add illusion that cell is in edit mode when complete is up,
even though it is not in focus so it is not in edit mode.
2014-03-10 10:10:06 -07:00
Jonathan Frederic
65732920eb Remove all should cancel blur logic. 2014-03-10 09:46:59 -07:00
Jonathan Frederic
989ae4e1b3 Workaround for Tooltip & completer click focus bug. 2014-03-10 09:28:19 -07:00
MinRK
abe2dce926 back to dev 2014-03-09 21:58:09 -07:00
Paul Ivanov
1c23dee141 remove recreation of QuickHelp 2014-03-09 14:21:14 -07:00
Paul Ivanov
8bf4ffa2ca rebuild.QuickHelp event sets the dirty bit
QuickHelp is rebuilt on show if the dirty bit was set.
2014-03-09 14:15:47 -07:00
Paul Ivanov
cdb7967cc2 removing keyboard shortcuts should also update help 2014-03-09 12:26:34 -07:00
Paul Ivanov
4a287569fc update notebook quickhelp on new shortcuts 2014-03-09 12:24:32 -07:00
Paul Ivanov
cd38181438 remove raw cell placeholder on focus, closes #5238 2014-03-09 11:41:25 -07:00
MinRK
4d1f9b21c4 append functions are not prototype methods 2014-03-07 17:57:37 -08:00
Paul Ivanov
54409a196d dem semicolons 2014-03-07 17:48:34 -08:00
Paul Ivanov
19c7189b15 no need to special-case Escape anymore 2014-03-07 17:48:34 -08:00
Paul Ivanov
6a2c4121f9 up and down keys no longer need special casing 2014-03-07 17:48:34 -08:00
Paul Ivanov
2c9ff376a2 added new use_shortcut method to shortcuts
this way, you can ask if a particular event will be handled by the
shortcuts system. This takes away the need to special-case many
different possible keys which should be ignored by codemirror by
ignoring them en masse.
2014-03-07 17:48:34 -08:00
Paul Ivanov
b9e448b160 DRY: refactor common keyboard handling to Cell
Our edit mode keyboard shortcuts don't distinguish between being in a
code cell or in a text cell, so it makes sense to handle both in one
place. This is a first step in that direction.
2014-03-07 17:48:34 -08:00
Paul Ivanov
15f4345ba3 typo, use keycodes object instead of magic numbers 2014-03-07 17:48:34 -08:00
Paul Ivanov
bf3ecdb35f DRY: factor out common handle_keyevent method
This method was identical in both CodeCell and TextCell
2014-03-07 17:48:34 -08:00
Paul Ivanov
71d4c427c9 refactor to improve cell switching in edit mode
This code was repeated in both CodeCell and TextCell, both of which are
extensions of Cell, so this just unifies the logic in Cell.

TextCell had logic here to check if the cell was rendered or not, but I
don't believe it is possible to end up triggering such a code path.
(Should that be required, I can always just add back these methods to
TextCell, performing the .rendered==True check, and calling the Cell

prior to this, code mirror at_top would only return true on if the
cursor was at the first character of the top line. Now, pressing up
arrow on any character on the top line will take you to the cell above.

The same applies for the bottom line. Pressing down arrow would only go
to the next cell if the cursor was at a location *after* the last
character (something that is only possible to achieve in vim mode if the
last line is empty, for example). Now, down arrow on any character of
the last line will go to the next cell.
2014-03-07 17:48:34 -08:00
Paul Ivanov
8889a7581c start better keyboard handling 2014-03-07 17:48:34 -08:00
MinRK
3face719e8 setup jsversion 2014-03-07 15:54:55 -08:00
Brian E. Granger
30c500bfa9 Merge pull request #5292 from jdfreder/shift-enter-scroll
focus next cell on shift+enter
2014-03-07 14:55:48 -08:00
Jonathan Frederic
da334e782e focus next cell on shift+enter 2014-03-07 14:48:09 -08:00
Min RK
0a37d7bfc5 Merge pull request #5232 from jdfreder/nbc_incono
Make nbconvert html full output like notebook's html.
2014-03-07 14:14:43 -08:00
Brian E. Granger
05e6fbade4 Merge pull request #5288 from minrk/start-idle
Correct initial state of kernel status indicator
2014-03-07 14:07:42 -08:00
Thomas Kluyver
80af3b4cfb Merge pull request #4802 from ivanov/ui-docs
Tour of the notebook UI (was UI elements inline with highlighting)
2014-03-07 12:09:32 -08:00
MinRK
e901c9be33 Correct initial state of kernel status indicator
- start as busy, since we don't know
- send a kernel_info request once connections are established
- set idle on reply to the to the kernel_info request
2014-03-07 11:51:54 -08:00
Brian E. Granger
f62ce75a62 Lots of CSS tweaks to get nbconvert output looking right. 2014-03-06 16:36:39 -08:00
Jonathan Frederic
9c5bca99e2 addClass instead of adding extra_class arg everywhere 2014-03-06 14:22:36 -08:00
Jonathan Frederic
6169acfc6d Fixed rebase issues 2014-03-06 14:10:37 -08:00
Jonathan Frederic
8b3c356c8d Add extra_class arg to the rest of the append methods,
use new extra_arg to add output_pyout class
2014-03-06 13:29:09 -08:00
Jonathan Frederic
b92ede2800 Added output_pyerr to python error output 2014-03-06 13:26:44 -08:00
Brian E. Granger
1407b4347e Merge pull request #5268 from ellisonbg/cmd-mode
Refactoring Notebook.command_mode
2014-03-06 12:09:43 -08:00
Paul Ivanov
610e66615e added a note to what's new 2014-03-05 22:18:16 -08:00
Paul Ivanov
7974e32150 oops, <tt> went the way of the dodo, using <code> 2014-03-05 21:27:14 -08:00
Paul Ivanov
06e5858ee2 lower case names for keys 2014-03-05 21:08:24 -08:00
MinRK
7d87978a66 fix a typo introduced by a rebased PR
caused heading cells to appear in both rendered and unrendered state
2014-03-05 14:30:34 -08:00
Jonathan Frederic
de9b5b907e Fab CSS 2014-03-05 12:25:26 -08:00
juhasch
72864cc83c append Firefox overflow-x fix 2014-03-05 12:25:11 -08:00
Paul Ivanov
fdca0762a4 tidy up capitalization 2014-03-04 19:05:56 -08:00
Paul Ivanov
e10afab397 rewording according to feedback in #4802 2014-03-04 18:14:51 -08:00
Paul Ivanov
490e4d1e42 horizontally center menubar popup 2014-03-04 18:10:45 -08:00
Paul Ivanov
4371ebf625 fix vertical position of command mode tooltip 2014-03-04 18:02:21 -08:00
MinRK
54e1558c16 make trust notebook dialog a single paragraph 2014-03-04 17:35:38 -08:00
MinRK
8cd744db85 mention that Trust triggers reload 2014-03-04 15:58:09 -08:00
MinRK
9396619f9d security.js docstrings 2014-03-04 15:38:11 -08:00
Brian E. Granger
4e0a2ee476 Make sure we are in command mode before we select a new cell. 2014-03-04 15:09:49 -08:00
MinRK
d5b0026cf1 trust via mark cells and save, rather than trust API request 2014-03-03 16:10:21 -08:00
MinRK
e7f3c05d28 remove unused get_attr_names 2014-03-03 16:10:21 -08:00
MinRK
6792d38215 log excluded untrusted output 2014-03-03 16:10:21 -08:00
MinRK
aaefc5f296 remove warning for stripped output 2014-03-03 16:10:21 -08:00