Brian E. Granger
4b22230896
Merge pull request #6305 from minrk/switch-kernel-close-ws
...
JS: close WebSockets when killing kernels
12 years ago
MinRK
0909694b50
avoid race condition when deleting/starting sessions
...
javascript doesn't guarantee the order of AJAX requests,
so we give `Session.delete` and `Kernel.kill` a callback signature.
Changing the kernel type calls `Notebook.start_kernel`,
which terminates the previous session, if defined,
before starting the new one.
A flag is stored, to prevent multiple simultaneous attempts to start sessions, raising a SessionAlreadyStarting Error,
preventing the spec_changed event from firing.
12 years ago
MinRK
6d542013a4
add utils.ajax_error_msg for extracting the JSON error message.
12 years ago
MinRK
cb3da26e61
display JSON error message on failed notebook load
...
if there is one (escaped for safety).
12 years ago
MinRK
8c4069cc00
add support and tests for uploading and saving regular files
12 years ago
MinRK
6cce477e07
rename notebooks service to contents service
...
minimal functional changes, committing because tests are passing.
12 years ago
Min RK
a2a70b40e2
Merge pull request #6145 from Carreau/style-cleanup
...
JS/CSS Style cleanup
12 years ago
Matthias BUSSONNIER
2899c766a1
remove var
12 years ago
Min RK
254d372522
Merge pull request #6227 from Carreau/cellt-g-event
...
Use global event for celltoolbar
12 years ago
Thomas Kluyver
274cfb3af2
Merge pull request #6225 from ivanov/split-merge-heading-cells
...
allow splitting and merging of heading cells
12 years ago
Matthias BUSSONNIER
2c4f2f98a6
Use global event for celltoolbar
12 years ago
Matthias BUSSONNIER
b63cb1f34f
remove unused dependecy and css class
12 years ago
Matthias BUSSONNIER
04088c9559
remove empty style function
12 years ago
Matthias BUSSONNIER
c468caeb19
add extra var for local variable
12 years ago
Matthias BUSSONNIER
09e866a750
remove js styling, already done in css + deprecate warning
12 years ago
Paul Ivanov
e52f3ac85b
allow splitting and merging of heading cells
...
I consider it a bug that you couldn't merge with heading cells, and that
you couldn't split them, either. (So much so that I thought it was a bug
in ipython-vimception when I ran into it).
This change removes that limitation, so heading cells are on par with
the other cells in terms of the kinds of manipulations one can carry out
with them.
12 years ago
Thomas Kluyver
316ecf3e54
Address review comments
12 years ago
Thomas Kluyver
72e2c2c6d7
Remove last use of global kernelselector
12 years ago
Thomas Kluyver
2785e87b4b
Fix JS iteration
...
Well, work around it.
12 years ago
Thomas Kluyver
c432af1af5
Use JS events for switching kernelspecs
12 years ago
Thomas Kluyver
e51f26275a
Set codemirror mode from kernelspecs
12 years ago
Thomas Kluyver
ba69cd972e
Add method to change codemirror mode of all code cells
12 years ago
Thomas Kluyver
54c6cb62c0
Start kernel according to loaded notebook metadata
12 years ago
Thomas Kluyver
b644ddbe36
Store kernelspec in notebook metadata on change
12 years ago
Thomas Kluyver
41626420e2
Allow switching kernel from the notebook UI
12 years ago
Matthias Bussonnier
16d21d3267
Merge pull request #6188 from jasongrout/highlightjs-require-shim
...
Add a requirejs shim for highlight.js
12 years ago
Jason Grout
3fc4442053
Move shim to the standard location
12 years ago
MinRK
137f98014a
pass ws_url to kernel constructor
...
via session constructor via notebook constructor…
12 years ago
Jason Grout
ab9e4b600e
Add a requirejs shim for highlight.js
...
Before this, highlighting code in markdown cells was broken since hljs wasn't available.
A better solution might be to build the highlight.js amd module (i.e., build the highlight.js module with `--target=amd`) so that we don't need the shim.
12 years ago
Thomas Kluyver
5afc070910
Add default_kernel_name class level variable
12 years ago
Thomas Kluyver
c37acf2ae7
Fix JS syntax
12 years ago
Thomas Kluyver
6efbe46b73
Update JS for kernels and sessions APIs
12 years ago
Jonathan Frederic
a226bd2d6e
Fixed cell toolbars
12 years ago
Jonathan Frederic
b15633a89e
Fix all the tests
12 years ago
Jonathan Frederic
2478fac032
More requirejs fixes
12 years ago
Jonathan Frederic
ee76005bc2
More review changes
12 years ago
Jonathan Frederic
669db572f2
Fix some dialog keyboard_manager problems
12 years ago
Jonathan Frederic
2d7a4a7879
Some JS test fixes
12 years ago
jon
70ffd96eb9
Added some nice comments,
...
so devs can easily figure out what options to pass
into the objects they want to construct.
12 years ago
jon
d9ab2d203a
In person review with @ellisonbg
12 years ago
jon
1e098560b8
Revert "Google hangout review comments."
...
This reverts commit 4e120e76014b2630f957c01d17ba3926d4848872.
12 years ago
Jonathan Frederic
eb2b1ab4a4
Google hangout review comments.
12 years ago
Jonathan Frederic
188072d190
@carreau review changes
12 years ago
Jonathan Frederic
2ba8945cab
Fix all the bugs!
12 years ago
Jonathan Frederic
c7961ae2db
Fix imports of "modules",
...
required after converting everything into dictionary returns.
12 years ago
Jonathan Frederic
0edfdbc703
Return dicts instead of classes,
...
this makes require.js more Python import like.
12 years ago
Jonathan Frederic
0e9e1dd5a3
MWE,
...
Fixed LOTS of bugs
12 years ago
Jonathan Frederic
516958ac07
Almost done!
...
Still need to check IPython uses in the widgets.
12 years ago
Jonathan Frederic
ca2014ad06
Pager
12 years ago
Jonathan Frederic
152e23dc76
Progress...
12 years ago
Jonathan Frederic
e6b7cc9ff9
Fixed events
12 years ago
Jonathan Frederic
8d511b2ff5
Finished moving code into final(?) resting modules
12 years ago
Jonathan Frederic
fb32b6561f
Start of work to make notebook.html requirejs friendly.
12 years ago
Jonathan Frederic
19d12e3025
Remember cursor position on cell type change
12 years ago
Min RK
9794017dee
Merge pull request #5882 from ivanov/preserve-cell-type
...
inserting new cells preserves cell type
12 years ago
Paul Ivanov
7778aed8a8
inserting new cells preserves type closes #4917
12 years ago
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
12 years ago
Min RK
a540078d8d
Merge pull request #5605 from AlbertHilb/CellToolbar
...
Two cell toolbar fixes.
12 years ago
Raffaele De Feo
ba7a3ec6bc
Make sure that celltoolbars are hidden
...
when a notebook without "celltoolbar" entry in metadata is loaded.
12 years ago
MinRK
da525f1541
fix delete_checkpoint errback name
12 years ago
MinRK
82964a09c2
log all failed ajax API requests
12 years ago
MinRK
78bc36ec38
update link
...
The page is in the sphinx docs, not on the main website.
12 years ago
Paul Ivanov
f41750ca6b
address PR feedback
12 years ago
Paul Ivanov
c28096f0c5
prevent saving of partially loaded notebooks
...
closes #5363
12 years ago
Jonathan Frederic
da334e782e
focus next cell on shift+enter
12 years ago
Brian E. Granger
1407b4347e
Merge pull request #5268 from ellisonbg/cmd-mode
...
Refactoring Notebook.command_mode
12 years ago
MinRK
54e1558c16
make trust notebook dialog a single paragraph
12 years ago
MinRK
8cd744db85
mention that Trust triggers reload
12 years ago
Brian E. Granger
4e0a2ee476
Make sure we are in command mode before we select a new cell.
12 years ago
MinRK
d5b0026cf1
trust via mark cells and save, rather than trust API request
12 years ago
MinRK
b5c8a51331
disable trust notebook menu item on trusted notebooks
12 years ago
MinRK
1ae689f30c
Add Trust Notebook to File menu
12 years ago
Brian E. Granger
6f4263dc74
Removing conditionals that are not needed.
12 years ago
Brian E. Granger
e374ca5ebb
Refactoring Notebook.command_mode.
12 years ago
Brian E. Granger
af7dd15181
Removing old keyboard handling from IPython.utils.
12 years ago
Jonathan Frederic
39d39d0ea6
s/trigger_edit_mode/edit_mode
12 years ago
Jonathan Frederic
4fdc99e111
Remove notebook load log succes
12 years ago
Jonathan Frederic
a6f883d7f2
Couple of whiteboard logic implementation misses
12 years ago
Jonathan Frederic
9451589e38
implemented whiteboard logic
12 years ago
Jonathan Frederic
c5fb037e41
Reorg index and focus_editor params on edit_mode func
12 years ago
Jonathan Frederic
048ca30b0c
Remove fixes that are implemented correct in new CM
12 years ago
Jonathan Frederic
b976804051
Moved edit_mode canceling logic back into cell.
12 years ago
Jonathan Frederic
ff37fb7a36
Standardized comments and removed last logs
12 years ago
Jonathan Frederic
64ae25508d
Removed change that is no longer needed
12 years ago
Jonathan Frederic
70086d352f
s/unfocus/blur
12 years ago
Jonathan Frederic
c7860d8bc8
Post in person review
...
Removed logic for reverse ordered events
Removed almost all of the log statements
Removed list for should unfocus callbacks
Removed all the logic in focus_editor
Only call focus_editor if the keyboard was used to enter edit mode
12 years ago
Jonathan Frederic
10d79a9102
Added cell unfocus event canceller API
12 years ago
Jonathan Frederic
6f7c502157
Fixed lots of bugs
...
Half overhaul of notebook focus events...
12 years ago
Jonathan Frederic
206d35a89e
DEBUG
...
Added lots of log calls and a couple small 'fixes' (attempts)
12 years ago
MinRK
e1e0b19a6a
s/base_project_url/base_url/
...
deprecate NotebookApp.base_project_url
12 years ago
MinRK
24703985e9
only add .ipynb if extension is not included
...
prevents .ipynb.ipynb double extension
12 years ago
MinRK
61b06a39e2
holy crap, semicolons
12 years ago
MinRK
13fc9022d9
various unicode fixes
...
- remove notebookPath, notebookName, and baseProjectUrl methods everywhere
- use base_project_url *attributes* instead
- we should never use escaped URLs except when making an actual request
Should fix issues with double-escaping
12 years ago
Brian E. Granger
af884b797f
Add edit/command mode indicator.
12 years ago
Brian E. Granger
2c5db865d4
Merge pull request #4974 from ivanov/better-paste
...
make paste focus the pasted cell
12 years ago
Min RK
003c5e8eda
Merge pull request #4971 from ellisonbg/testjs-fd
...
Fixing issues with js tests
12 years ago
Brian E. Granger
82a4538759
Notebook.delete should take no args.
12 years ago
Paul Ivanov
836fd887dc
make paste focuses the pasted cell
...
This is to make paste behave in the same manner that insert cell above
and below currently work (inserting a new item causes that item to
receive focus).
This solves a problem where, if a user pastes below a cell whose bottom
edge is below the current viewing area, they have no indication that any
action has occurred. The same applies for paste above a cell whose top
edge is occluded.
12 years ago
Brian E. Granger
aa71651468
Fixing issues with js tests.
...
* Closing old pages to prevent fd leaks.
* Making sure kernels are killed to prevent fd leaks.
* Moving towards deleting old notebooks (this is not done, but
this should be merged as is).
12 years ago
Brian E. Granger
bcd4209375
alt+enter should always insert below
12 years ago
Brian E. Granger
4c7ce61011
Don't enter edit mode when changing cell type and preserve renderd.
12 years ago
Brian E. Granger
7c65e96941
Simplified Cell menu items related to output.
12 years ago
Brian E. Granger
9538fb7d8f
Converting loops in *_all_output to $.map().
12 years ago
Brian E. Granger
54666e2e98
Cleaning up output management in code and menus.
12 years ago
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
12 years ago
MinRK
da2f38c24e
uniformity in ajax error handler arguments
...
send arguments on failed events
12 years ago
MinRK
3ad0072c9e
make sure to encode URL components for API requests
...
notebook names can have spaces, hashes, other special characters.
12 years ago
MinRK
54ccc1dbe4
store cell toolbar preset in notebook metadata
...
allows resume on load
12 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.
12 years ago
Matthias BUSSONNIER
d6afb79da0
fix wrong default
12 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
12 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 ).
12 years ago
Paul Ivanov
8b26933af5
Merge pull request #4378 from minrk/split-below
...
split adds new cell above, rather than below
12 years ago
MinRK
50665831bd
update copy API in js
12 years ago
MinRK
0558ec4ce0
Cells shouldn't know about Sessions
12 years ago
MinRK
d1a36fe4c0
use 'id' for checkpoint ID key
...
rather than redundant checkpoint.checkpoint_id
12 years ago
MinRK
e16a5807c7
fixup bad rebase
12 years ago
MinRK
a7f297f8f3
save before download-as
...
uses `async : false`
closes #852
download-as-py still unavailable.
12 years ago
MinRK
8b94ee2b47
use `async : false` to avoid pop-up blocker on New / Copy notebook
12 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.
12 years ago
MinRK
4e12521082
fix dashboard upload
12 years ago
MinRK
40f577b538
add utils.url_path_join
...
javascript equivalent of Python-side function.
12 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.
12 years ago
Zachary Sailer
1f04b48725
Renaming fixed
12 years ago
Zachary Sailer
f3af343f4f
Change new/copy URLS to POST requests
12 years ago
Zachary Sailer
a74b9a018b
removed '/new' URL and added POST notebook request
12 years ago
Zachary Sailer
8261ac2cb9
change standard money keys
12 years ago
Zachary Sailer
1b2e41eea4
path with spaces completely fixed
12 years ago
Zachary Sailer
eb1690255d
allow spaces in notebook path
12 years ago
Zachary Sailer
6114d4c338
drop file ext off notebook name in notebook
12 years ago
Zachary Sailer
bfff3d817d
Fixed bug when linking kernel to new code cells
12 years ago
Zachary Sailer
ece92127d3
Add 'patch' to session & notebook, rename working
12 years ago
Zachary Sailer
62ec52e276
fix restart/interrupt kernel buttons
12 years ago
Zachary Sailer
20324bafd0
fixing path redirects, cleaning path logic
12 years ago
Zachary Sailer
0f52ffa756
manual rebase static/notebook/js files
12 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.
12 years ago
Paul Ivanov
c165b57132
split focuses the top of the newly created cell
12 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.
12 years ago
Matthias Bussonnier
598409c8f0
Merge pull request #4333 from minrk/notebook-metadata
...
Add Edit Notebook Metadata to Edit menu
12 years ago
MinRK
4a04553acd
add Edit Notebook Metadata to Edit menu
12 years ago
Jason Grout
54aa8a9f61
Make parameters for kernel start method more general
12 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