Brian E. Granger
bc7b51d1b0
Merge pull request #4374 from jdfreder/widget-msg
...
IPEP 23: Backbone.js Widgets
12 years ago
Jonathan Frederic
5ed3a0ebc5
Simplify get_msg_cell function of notebook.js
12 years ago
Matthias BUSSONNIER
149867e74c
some $.html( -> $.text(
...
Thoses that are obvious and easy to fix.
we shoudl have I think a travis test that grep for .html( and return
less than 20 lines :-)
12 years ago
Jonathan Frederic
6871c8f9e0
Cherry pick of @jasongrout 's 2bc2f96.
...
Only merged changes to notebook and kernel... (see original comment below).
Separate the widget registry from the widget managers;
attach widget managers to kernels.
Yet to do: take care of clean-up when a kernel is deleted
Conflicts:
IPython/html/static/notebook/js/widgetmanager.js
IPython/html/static/notebook/js/widgets/widget.js
12 years ago
Jonathan Frederic
bad85fb879
Remove O(N) cell by msg-id lookup
12 years ago
Jonathan Frederic
48eaebf683
Moved the logic to get a cell by message id into the notebook.js.
...
Also added more detail to the comments in the get output area function in widgets.js
12 years ago
Jonathan Frederic
8502b2c182
Remove init_widget_js, use require.js for everything
...
Updated examples
Fixed bug with message throttling
12 years ago
Jonathan Frederic
4c7357f4a4
Revert notebook.js to master
12 years ago
Jonathan Frederic
a576a0c8a1
Fixed widget.js and notebook.js so IPython.notebook.widget_manager is created.
12 years ago
Jonathan Frederic
5d9dcfc39e
Added widget.js
12 years ago
Brian E. Granger
506ffe5adf
Adding sorting and better layout to the KB shortcuts.
12 years ago
Brian E. Granger
c888f9d3e4
Cleaning up console log messages.
12 years ago
Brian E. Granger
418f3e46f2
Reordering conditional.
12 years ago
Brian E. Granger
201217d847
Renaming execute methods.
12 years ago
Brian E. Granger
11493ca042
Don't always call focus_cell in Cell.command_mode.
...
The focus_cell should only be called when a user enters
command mode by pressing ESC. Calling focus_cell was causing
jumps when command mode was entered through a mouse click.
12 years ago
Brian E. Granger
89c410d19d
Cell splitting merging works with RawCell now.
12 years ago
Brian E. Granger
6c7196a99e
Cleanup of cell splitting.
12 years ago
Brian E. Granger
b3322fc2d5
Ongoing work on cell splitting.
12 years ago
Brian E. Granger
142b9a4b95
shift-enter should doesn't create a new cell at the bottom.
12 years ago
Brian E. Granger
8a8a03a4d3
Fixing delete/undelete logic.
12 years ago
Brian E. Granger
b2f8d17940
Changing a heading cell level should enter edit mode and set dirty
12 years ago
Brian E. Granger
9a3783e2c4
Fixing select when inserting cell using menu.
12 years ago
Brian E. Granger
a2ffedb0ff
Carefully manage rendered state in merge cell.
12 years ago
Brian E. Granger
761109e4b7
Add + for merge cell below and carefully manage split cell state.
12 years ago
Brian E. Granger
740b7aa21b
Split cell keyboard shortcut wired up. Merge markdown adds 2nd \n.
12 years ago
Brian E. Granger
23b88a9a24
Moving a cell focuses it after the move.
...
This way if you move a cell a long way, the noteobook div will
scroll with you.
12 years ago
Brian E. Granger
c1166ea98a
Lots of updates and changes.
...
* Cleaning up the code mirror event handlers.
* Adding logic to prevent calling Notebook.command_mode on cell
focusout.
* Fixing bugs.
12 years ago
Brian E. Granger
caffba142e
Adding keyboard manager logic.
...
This is currently very broken.
12 years ago
Brian E. Granger
c775800714
Removing manual focusing of notebook div.
12 years ago
Brian E. Granger
a37443710b
Binding to notebook div not document.
12 years ago
Brian E. Granger
d137535431
Don't bind notebook keyboard events to $(document).
...
Keyboard events were previously bound to $(document), which
caused problems with our command mode not allowing other
focused elements (dialogs, etc.) to manage their own keyboard
events. We now bind to the notebook element.
12 years ago
Brian E. Granger
40977e545b
Semi working version of basic dual mode UX.
...
As of this point there are lots of things that don't work, but
most of the basic dual mode interactions do work fine.
12 years ago
Brian E. Granger
2a530ff30d
More work on the dual mode UX.
12 years ago
Brian E. Granger
54088a0105
Adding new logic to cells.
12 years ago
Min RK
8be6c4b617
Merge pull request #4575 from minrk/encode_paths
...
make sure to encode URL components for API requests
13 years ago
MinRK
da2f38c24e
uniformity in ajax error handler arguments
...
send arguments on failed events
13 years ago
MinRK
3ad0072c9e
make sure to encode URL components for API requests
...
notebook names can have spaces, hashes, other special characters.
13 years ago
MinRK
54ccc1dbe4
store cell toolbar preset in notebook metadata
...
allows resume on load
13 years ago
Matthias BUSSONNIER
73820fb038
remove opts not to conflict with brian
...
do not add the option not to select each cell in a row when buildogn the
notebook at load time.
13 years ago
Matthias BUSSONNIER
d6afb79da0
fix wrong default
13 years ago
Matthias BUSSONNIER
048ccde41b
get rid of most slowdown at notebook loading.
...
1) Do not setOption('mode',new_mode) on CM if new and old mode are the
same. It triggert **a lot** of calculation of bounding box in the
end.
2) Do **not** select cell when loading the notebook it triggers
**a lot** of CM even that check visible things and so on and so
forth. So add a option to add_cell_at_index not to select it
3) jQuery $.attr has some magics, but has a slight overhead on
real native ELEM.setAttribute DOM method. Seem slight improvement
when loads of PNGs on one page
13 years ago
Min RK
bc0dc279f1
Merge pull request #4303 from ipython/multidir
...
Add multidirectory support for the Notebook.
Major change to URL schemes in the notebook server,
documented in [IPEP 16](https://github.com/ipython/ipython/wiki/IPEP-16%3A-Notebook-multi-directory-dashboard-and-URL-mapping ).
13 years ago
Paul Ivanov
8b26933af5
Merge pull request #4378 from minrk/split-below
...
split adds new cell above, rather than below
13 years ago
MinRK
50665831bd
update copy API in js
13 years ago
MinRK
0558ec4ce0
Cells shouldn't know about Sessions
13 years ago
MinRK
d1a36fe4c0
use 'id' for checkpoint ID key
...
rather than redundant checkpoint.checkpoint_id
13 years ago
MinRK
e16a5807c7
fixup bad rebase
13 years ago
MinRK
a7f297f8f3
save before download-as
...
uses `async : false`
closes #852
download-as-py still unavailable.
13 years ago
MinRK
8b94ee2b47
use `async : false` to avoid pop-up blocker on New / Copy notebook
13 years ago
MinRK
b33ffa7068
update upload and copy
...
adds 'notebook.ipynb/copy' url handler
because we were putting too many things in a single POST handler.
13 years ago
MinRK
4e12521082
fix dashboard upload
13 years ago
MinRK
40f577b538
add utils.url_path_join
...
javascript equivalent of Python-side function.
13 years ago
Zachary Sailer
470595f9e7
handle path separators with os.sep and add tests
...
Added more tests to the notebook manager to check for the correct
path separators on different operating system. Fixed the get_path
method.
13 years ago
Zachary Sailer
1f04b48725
Renaming fixed
13 years ago
Zachary Sailer
f3af343f4f
Change new/copy URLS to POST requests
13 years ago
Zachary Sailer
a74b9a018b
removed '/new' URL and added POST notebook request
13 years ago
Zachary Sailer
8261ac2cb9
change standard money keys
13 years ago
Zachary Sailer
1b2e41eea4
path with spaces completely fixed
13 years ago
Zachary Sailer
eb1690255d
allow spaces in notebook path
13 years ago
Zachary Sailer
6114d4c338
drop file ext off notebook name in notebook
13 years ago
Zachary Sailer
bfff3d817d
Fixed bug when linking kernel to new code cells
13 years ago
Zachary Sailer
ece92127d3
Add 'patch' to session & notebook, rename working
13 years ago
Zachary Sailer
62ec52e276
fix restart/interrupt kernel buttons
13 years ago
Zachary Sailer
20324bafd0
fixing path redirects, cleaning path logic
13 years ago
Zachary Sailer
0f52ffa756
manual rebase static/notebook/js files
13 years ago
Paul Ivanov
7f5e7f4e6d
fix (CTRL-M -) shortcut for splitting cell in FF
...
fun-fact: Chromium uses a different keycode for hyphen/minus than does
Opera and Firefox.
13 years ago
Paul Ivanov
c165b57132
split focuses the top of the newly created cell
13 years ago
MinRK
7080a10362
split adds new cell above, rather than below
...
preserves the order of code and output across split event
rather than moving output into the middle of the split.
13 years ago
Matthias Bussonnier
598409c8f0
Merge pull request #4333 from minrk/notebook-metadata
...
Add Edit Notebook Metadata to Edit menu
13 years ago
MinRK
4a04553acd
add Edit Notebook Metadata to Edit menu
13 years ago
Jason Grout
54aa8a9f61
Make parameters for kernel start method more general
13 years ago
Jonathan Frederic
00f0c827e9
Removed ability to clear stdout and stderr individually.
13 years ago
MinRK
37a345bd93
add Cell.is_mergeable method
...
and check it in the Notebook merge methods
13 years ago
Matthias Bussonnier
a133236f56
Merge pull request #3969 from Carreau/usestrict
...
"use strict" in most (if not all) our javascript
plus fix one variable leaking in global namespace
13 years ago
Matthias BUSSONNIER
13ff842be5
"use strict" in most (if not all) our javascript
...
+ fix one variable leaking in global nameespace
13 years ago
MinRK
3f3709526c
minor checkpoint cleanup
...
- remember list of checkpoints browser-side
- cleanup references in MenuBar restore list.
There was a closure issue, where multiple menu items would actually all restore the same checkpoint.
13 years ago
Matthias Bussonnier
e07ddebdf6
Merge pull request #3743 from minrk/noro
...
remove notebook read-only view
it is largely broken, and had problematic security issues.
13 years ago
Matthias Bussonnier
b78f0851a3
Merge pull request #3732 from minrk/slow-save-on-close
...
add delay to autosave in beforeunload
allows forceful 'discard changes' by reloading the page and dismissing the warning.
The timer doesn't start until after the dialog is dismissed, so if you decide to nav away without saving changes, the changes will actually not be saved.
13 years ago
MinRK
f9dd129e1c
remove notebook read-only view
...
it is largely broken, and had problematic security issues.
13 years ago
MinRK
2a09958bb6
better message when notebook format is not supported
...
Different messages for bad version and bad JSON.
closes #1592
13 years ago
MinRK
6970a79e6a
add delay to autosave in beforeunload
...
allows forceful 'discard changes' by reloading the page and dismissing the warning,
which @fperez really wanted today.
13 years ago
Min RK
374579a65c
Merge pull request #3559 from minrk/create_delete_events
...
add create.Cell and delete.Cell js events
closes #3154
13 years ago
damianavila
7aab2ec291
Added '-' as a shortcut for splitting cells.
13 years ago
damianavila
73e88b6677
Added shorcuts to split cell, merge cell above and merge cell below.
13 years ago
Matthias BUSSONNIER
41c84eb40e
fix event names
13 years ago
MinRK
5e20d457cd
add create.Cell and delete.Cell js events
...
The events fire after the cell has been created or deleted.
closes #3154
13 years ago
MinRK
d12a9b19c9
use bootstrap `disabled` instead of `ui-state-disabled`
...
in menubar
13 years ago
MinRK
b9706f23f5
use `window.onbeforeunload=` for nav-away warning
...
Firefox 22 broke `$(window).on("beforeunload")` somehow, for some reason,
resulting in always showing a dialog, regardless of the function's return value.
The only fix I could find was resorting to the basic low-level API.
13 years ago
Brian E. Granger
202dec41e6
Merge pull request #3478 from minrk/rewarn
...
restore "unsaved changes" warning on unload
13 years ago
MinRK
1d64597ea8
move restart dialog to notebook.js
13 years ago
MinRK
a51f9e1a6e
update before unload message
...
mention pending autosave, if applicable
13 years ago
MinRK
09c7bba2b4
restore "unsaved changes" warning on unload
...
Autosave is triggered at this event, but it seems to fail sometimes (perhaps when it's too slow?).
closes #3475
13 years ago
MinRK
cf726d6a40
mv IPython.html.notebook -> IPython.html
13 years ago