Matthias BUSSONNIER
bcc9081444
remove update_url occurences
14 years ago
Bradley M. Froehle
2b079345cb
notebook: up/down arrow keys move to begin/end of line at top/bottom of cell
...
The behavior is the following:
* If you press UP while on the first row, you go to the beginning of the line.
* If you press UP again (or were already at the beginning of the line), you
go to the previous cell.
* If you press DOWN while on the last row, you go to the end of the line.
* If you press DOWN again (or were already at the end of the line), you go
to the next cell.
This applies to `CodeCell`s and `RawCell`s.
14 years ago
Matthias BUSSONNIER
3160d67763
css typo
14 years ago
Matthias BUSSONNIER
71a1675c8f
tweek notebook notification behavior
14 years ago
Matthias BUSSONNIER
33edba2c9a
warn on error when user display javascript
14 years ago
Bussonnier Matthias
5c394dab71
Merge pull request #2212 from minrk/protectjs
...
catch errors in markdown javascript
14 years ago
MinRK
4a3e1f3185
make markdown error handling js-specific
14 years ago
Matthias BUSSONNIER
a5bc24d8b2
select correct behavior for backspace in codecell
14 years ago
Matthias BUSSONNIER
2f6117bd46
Force tabs to space in CM
14 years ago
Matthias BUSSONNIER
308c4994d3
patch SingleOperator in CodeMirror2
14 years ago
Matthias BUSSONNIER
370943fff0
update CodeMirror2 to 2.32
14 years ago
MinRK
7e7c2fe9e5
catch js errors when rendering markdown cells
14 years ago
Matthias BUSSONNIER
9564a899ed
DeCamelCasify method names
14 years ago
Matthias BUSSONNIER
a0bc644153
call init method
14 years ago
Bussonnier Matthias
9a52bdc18b
Merge pull request #2175 from minrk/staticfile
...
add FileFindHandler for Notebook static files
* The static file handler now uses a search path, instead of a single dir.
This allows easier customization of available js/css,
and provides a place for extra files to go for extending the notebook.
* An empty custom.js / custom.css are added to the templates for trivial
custom user styling/scripting.
The search only happens once, and the result is cached after the first.
* A few methods are pulled from tornado 2.2-dev verbatim to have tornado 2.1 compatibility.
* mathjax is now installed by default in profile.
14 years ago
Matthias BUSSONNIER
8d6a9e0a67
separate kernel notification from save/load notification
14 years ago
Matthias BUSSONNIER
a40b2d6b61
prototype sticky notification
14 years ago
Matthias BUSSONNIER
aedb1a809b
use jquery-ui classes
14 years ago
Matthias BUSSONNIER
e5ede75fdb
trap undefined timout
14 years ago
Matthias BUSSONNIER
d6ebf4d2b1
beginning notification area
14 years ago
Min RK
8373a99eb8
Merge pull request #2183 from jasongrout/trigger-kernel
...
Include the kernel object in the event object passed to kernel events
14 years ago
Jason Grout
e9324378e8
Include the kernel object in the event object passed to kernel events
14 years ago
MinRK
d77e9a4eba
handle undefined param in notebooklist
...
PR #2159 introduced a bug preventing the notebook list from drawing
14 years ago
Min RK
8b34dfc405
Merge pull request #2051 from jasongrout/stream-metadata
...
Add a metadata attribute to messages
subheader is removed in favor of the new metadata dict,
reducing degeneracy.
14 years ago
MinRK
25aa3003ac
add metadata to javascript msg spec implementation
14 years ago
Jason Grout
7095b9eb87
Make top-level metadata dictionary not optional.
14 years ago
Jason Grout
4ad79b41f6
Set default metadata for javascript callback
14 years ago
Jason Grout
9436f33035
Add an optional metadata attribute to all messages and add a session-level default metadata attribute.
14 years ago
Jason Grout
009e5583cf
Pass the header of output and clear_output messages to javascript callbacks
14 years ago
Bussonnier Matthias
260a107d80
Merge pull request #2159 from Carreau/dashbord_refresh_on_error
...
show message on notebook list if server is unreachable
14 years ago
Matthias BUSSONNIER
cf2cfa45e1
pep8
14 years ago
Bussonnier Matthias
70ffbd609b
Merge pull request #2090 from v923z/master
...
Notebook, Alt-enter : execute cell, append codecell below.
14 years ago
MinRK
2891a0a8ca
add empty custom.js/css
...
With FileFindHandler, these will be useful for small user overrides of css/js.
14 years ago
v923z
eaf53eeb9a
Replaced .toJSON().input by .get_text()
14 years ago
v923z
0e4dbb2880
Added checking for emptiness of cell below.
14 years ago
v923z
eb47f0eb8d
Added some comments to the Alt-Enter code part, and also added checking whether a new code cell is really needed.
14 years ago
Matthias BUSSONNIER
23cf94023d
show message on notebook list if server is unreachable
...
usefull when :
server goes down, you don't notice it on dashboard
restart on https, cookies is unvalid, autoreload don't work
14 years ago
Bussonnier Matthias
f38cf983c5
Merge pull request #2128 from Carreau/fixes-2120
...
open notebook copy in different tabs
14 years ago
Matthias BUSSONNIER
ca65de9fa2
open notebook copy in different tabs
...
returning false to allow modifier+click,
otherwise open 2 tabs at once.
14 years ago
Matthias BUSSONNIER
cc663005e4
dont use string as dict key, better redability
14 years ago
Matthias BUSSONNIER
53d2a34336
correcty inherign the main toolbar
14 years ago
Matthias BUSSONNIER
04d7e96aa8
add maintoolbar file
14 years ago
Matthias BUSSONNIER
2f28e4c4a1
Allow toolbar construction in js
...
Base of allowing a full toolbar construction in js without altering the
html template, and use it to construct our toolbar as example.
still need some work to be totally decoupled.
14 years ago
Zoltán Vörös
a2665ef341
Added new short key for cell execution
14 years ago
Matthias BUSSONNIER
3c743846a7
use full base_url in html and js
14 years ago
Matthias BUSSONNIER
51d715d00a
allows password and prefix for notebook
...
fixes #1997
14 years ago
Min RK
360e40feca
Merge pull request #2047 from minrk/badFirefox
...
disable auto-scroll on mozilla
14 years ago
MinRK
422965cb3d
disable auto-scroll on mozilla
...
see #2041 for details
14 years ago
MinRK
fae43d51d4
double auto-scroll threshold to 100 lines
...
it is more important that we not be surprising or annoying than we hide moderately long output.
14 years ago
MinRK
da17f26fbe
ignore shift keydown
...
prevented case-sensitive shortcuts if shift was pressed after control key
14 years ago
Fernando Perez
6226f830a0
Merge pull request #2012 from mcelrath/mono_cursor_offset
...
Fix spurious appearance of the #fontarea when fonts don't have any problem; also remove loud dialog when problematic font is detected and simply adjust baseline. Users will have a slightly offset baseline for bold/italic highlights, but without any functional problems.
Fixes #2005 .
14 years ago
mcelrath
591a8eac23
Fix spurious appearance of #fontarea at end of document.
14 years ago
mcelrath
5a070dcd1a
Merge remote-tracking branch 'upstream/master' into mono_cursor_offset
14 years ago
Bussonnier Matthias
f200bd0392
Merge pull request #1974 from Carreau/notebook-path-completion
...
Allow path completion on notebook.
add slash (/) for unix, backslash (\) and colon (:) for windows
as authorized characters in completions.
14 years ago
Min RK
e97f84acd8
Merge pull request #1970 from minrk/resize
...
dblclick to restore resized images
14 years ago
Min RK
137f4cb441
Merge pull request #1825 from minrk/elide2
...
second attempt at scrolled long output
Some amount of CSS tweaking will probably want to be done before 0.13 final,
but this is good enough for beta.
closes #1553
14 years ago
Fernando Perez
f52a1f689c
Merge pull request #1934 from minrk/cellmd
...
Cell/Worksheet metadata
* metadata dicts are attached to cells and worksheets
* restores collapsed flag to the nbformat - this change happened in the refactor, and was undocumented, and possibly accidental. But we should either document it or fix it, and this includes a fix.
* adds a new field, `nbformat_minor`, used to denote minor bumps of the notebook format that expose new capabilities but don't prevent loading by older clients.
* Add a warning in Javascript if loading a multiworksheet notebook (which will exist in the future) as current JS code will only save the first.
closes #1915
14 years ago
MinRK
18bb591723
add future-warning about multiple notebooks
14 years ago
Matthias BUSSONNIER
0161c55594
Allow path completion on notebook.
...
add -(dash) /(slash) \(antislash for windows) : (colon) ~(tilde)
as part of words symbol for notebook completer to help for path
completion
Fixes #1969
14 years ago
MinRK
9963980f37
use chained delay for setting resizable images
14 years ago
MinRK
e04fd13086
dblclick to restore size of images
14 years ago
Min RK
643837dff3
Merge pull request #1965 from ivanov/fix-1678
...
fix for #1678 , undo no longer clears cells
With these changes, Ctrl-Z inside of codemirror cells will only undo up to the text that was in the cell when it was loaded from JSON.
closes #1678
14 years ago
Min RK
5a57dc5a1a
Merge pull request #1952 from minrk/wsclose
...
avoid duplicate "Websockets closed" dialog on ws close
14 years ago
Paul Ivanov
ad07d0cf44
fix for #1678 , undo no longer clears cells
...
I found another bug where switching the cell type causes the loss of all
undo history for that cell. With this commit, switching the cell type
simply resets the history
14 years ago
MinRK
c20b2e1056
slightly more subtle prompt overlay
14 years ago
MinRK
fa55ba2b43
fix margin typo on output prompt
14 years ago
MinRK
654fed95be
avoid double websocket-close message
14 years ago
MinRK
224f024257
add dialog when loading newer minor-version notebooks
14 years ago
Fernando Perez
00ea424ed9
Merge pull request #1940 from Carreau/completer-css-patch
...
Fix completer css on some Chrome versions (was causing completer to be drawn at the wrong size).
Fixes #1833
14 years ago
Matthias BUSSONNIER
623bb06c43
fix completer css on some Chrome versions
...
Fixes #1833
14 years ago
MinRK
ace8c72c9c
increase duration of save messages
...
and write permanent 'failed' message to the save status area on failed save.
14 years ago
MinRK
ec50e94524
restore collapsed state for cells
...
js refactor removed this, but did not document the change. This restores it, but it would be fine to revert this and update the docs instead.
14 years ago
MinRK
362feaa295
add empty metadata field on cells/worksheets
...
These are unused for now, but will allow adding data to the notebook without a full version bump.
14 years ago
mcelrath
160fbcdcbc
Alternative solution: silently apply some CSS instead of a dialog box.
14 years ago
MinRK
15689fb664
add toggle output scroll to quickhelp
14 years ago
MinRK
ed4ee44a21
add ^M-O for toggling output scroll
14 years ago
MinRK
5f0b08145e
dblclick/double click for humans
14 years ago
Fernando Perez
3fde837087
Merge pull request #1867 from mcelrath/menu_borders
...
Fix 1px margin bouncing of selected menu item.
This fixes the margin of the active menu item to zero, so now the text doesn't shift around, even if you use larger fonts.
To reproduce the original error, zoom your notebook (ctrl-mousewheel, or ctrl-+ in most browsers) and try the menu.
14 years ago
Fernando Perez
b683e0fadc
Merge pull request #1889 from invisibleroads/patch-3
...
Reconnect when the websocket connection closes unexpectedly.
Closes #1577 .
14 years ago
Fernando Perez
1c905f74af
Merge pull request #1883 from mcelrath/mono_cursor_offset
...
Fix vertical offset due to bold/italics, and bad browser fonts.
Adds a dialog warning users when a problematic monospaced font is detected, so they can change their configuration.
14 years ago
mcelrath
5b2b7ed604
Add bad font detection, and a dialog informing the user.
14 years ago
MinRK
dd3e610882
third attempt at scrolled long output
...
click/double-click on prompt area for toggling scroll/collapse
14 years ago
Roy Hyunjin Han
ec3babe3ff
Reconnect when the websocket connection closes unexpectedly
14 years ago
Brian E. Granger
cdfc81c542
Merge pull request #1829 from Carreau/notebook_cellmagic_completion
...
[notebook] don't care about leading prct in completion
14 years ago
Min RK
d4727ba7cf
fix missing comma
14 years ago
Brian Granger
d27a86ef77
Removing resizable SVGs from output.
14 years ago
Brian Granger
41dbc82478
SVG images are now resizable in Chrome+FF.
14 years ago
Brian Granger
fc040f5da2
Resolving conflict in utils.js.
14 years ago
Brian Granger
4b1eec0eaf
Make svg, jpeg and png images resizable in notebook.
14 years ago
Min RK
ebd26651ab
Merge pull request #1674 from mdboom/notebook-carriage-return
...
HTML Notebook handles carriage-return special character
14 years ago
Michael Droettboom
8c053ac40c
Fix rebase.
14 years ago
Matthias BUSSONNIER
d4e9858fef
pep8
14 years ago
Matthias BUSSONNIER
cc62fc63f9
don't care about lleading prct in completion
...
mainly to avoid weird shared start with cell magics
14 years ago
mcelrath
a1604deeee
Fix vertical offset due to bold/italics, and bad browser fonts.
14 years ago
Fernando Perez
9ebbfe3f22
Merge pull request #1841 from Carreau/deduplicate_completion
...
[notebook] deduplicate completion results
remove context completions that are duplicates from introspection
completion
fixes #1840
14 years ago
Michael Droettboom
b471db22e0
Fix the "test for nothing was streamed" so it doesn't add empty elements -- but only when there wasn't already something there.
14 years ago
Michael Droettboom
a9453360a9
Handle carriage return characters ("\r") in HTML notebook output.
...
Conflicts:
IPython/frontend/html/notebook/static/js/utils.js
14 years ago
Michael Droettboom
f058068f53
Fix carriage-return handling regular expression so it doesn't treat "\r\n" as "\r".
14 years ago
Min RK
f75497d930
Merge pull request #1815 from ellisonbg/nbsavebug
...
Make : invalid in filenames in the Notebook JS code.
This only prevents : in the filenames on the JavaScript side of things. Handling this on the server side will be a separate issue that is related to other open issue. I will update those to reflect this.
closes #1781
14 years ago
mcelrath
5612d07fea
Fix 1px margin bouncing of selected menu item.
14 years ago
Matthias BUSSONNIER
567b6bbcd2
don't need to check for leading dot
14 years ago
mcelrath
faa214178e
Fix 1px jumping of cells and menus in Notebook.
14 years ago
Matthias BUSSONNIER
795cb7bb21
bracket on same line
14 years ago
Matthias BUSSONNIER
9cfdea0d1c
take care of token starting by '.' (dot)
14 years ago
Matthias BUSSONNIER
d74a58b3c8
[notebook] deduplicate completion results
...
remove context completion that are duplicates from introspection
completion
fixes #1840
14 years ago
Brian Granger
fc096c7232
Using IPython.utils.keycodes in the nb rename dialog.
14 years ago
Brian Granger
010c35b130
Making the input text area watch for `ENTER` in nb renames.
14 years ago
Brian Granger
4dc94e29c8
ENTER submits the rename notebook dialog.
14 years ago
Brian Granger
4c2e42e9db
Make : invalid in filenames in the Notebook JS code.
14 years ago
Brian Granger
4c31453ea7
Making Notebook.set_dirty an event so CodeCell can set it.
...
This allows code outside notebook.js to set the dirty flag, but
doesn't require that code depend on notebook.js.
14 years ago
Brian Granger
9826a17ae2
Removing cell from execute callbacks in kernel.js.
14 years ago
Brian Granger
e817bfdaeb
Update directview.ipynb & allowing no-callbacks in kernel.execute.
14 years ago
Brian Granger
9c94c996ae
Removing extra call to Kernel.stop_channels.
14 years ago
Takafumi Arakaki
0df931d69a
Reduce repeated code regarding restarting events
14 years ago
Takafumi Arakaki
db5393c618
Clear window title when kernel is restarted
...
When kernel is died and restarted, or restarted while it is in the
busy state, message "(Busy)" on the window title is not updated. This
problem is fixed by updating document title when restarting.
14 years ago
Matthias BUSSONNIER
9f319f6da9
click on close cancell stick
14 years ago
Matthias BUSSONNIER
366cba5916
retab tab to space
14 years ago
Matthias BUSSONNIER
523ae0c377
fix tooltip keep focus on wrong cell
...
check that the cell the tooltip is giving focus back is the currently
selected cell
14 years ago
Matthias BUSSONNIER
a083ce93c1
remove less.css
14 years ago
Matthias BUSSONNIER
c06f5b1718
rename show/hide methods to avoid jQuery conflict.
...
it seem that show and hide methods fron tooltip where collinding with
jquery, sometime blocking the notebook.
Move from css fadeIn/Out to jQuery fade In/Out, and replace
addRemoveClass by fadeIn/fadeOut
14 years ago
Matthias BUSSONNIER
3dc363e1e8
Revert "remove less file"
...
This reverts commit 8af188d9be201f0dfaea86746705f5ff8b13ab50.
14 years ago
Brian Granger
8bd7e041cf
Misc fixes to the code cell and output area.
14 years ago
Brian Granger
32343c5973
Fixed order of notebook loading and kernel starting.
...
For security reasons, the kernel should not be started until
after the notebook content is completely loaded and on the page.
This prevents people from creating notebooks that run nasty code
on the users machine at load time.
In order to implement this, we had to create a CodeCell.set_kernel
method that allows the kernel attribute of a CodeCell to be set
at a later time. This also fixes some error messages we were
seeing related to the kernel's channels not being setup properly
when a send was attempted.
14 years ago
Matthias BUSSONNIER
186c995041
rename context-hint to contexthint
14 years ago
Matthias BUSSONNIER
88befeb497
space after function keyword in context-hint
14 years ago
Matthias BUSSONNIER
b1e5e99bcd
beautify context-hint.js
14 years ago
Matthias BUSSONNIER
129f114868
Uppercase constant keycode in utils.js
14 years ago
Matthias BUSSONNIER
f3ff31b75a
remove CamelCasse methods from completer.js
14 years ago
Matthias BUSSONNIER
b2a04396d8
space before function keyword in js
14 years ago
Matthias BUSSONNIER
ea325c095b
beautify completer.js
14 years ago
Matthias BUSSONNIER
0f34ca4346
beautify tooltip.js
14 years ago
Matthias BUSSONNIER
27be46264a
remove less file
14 years ago
Matthias BUSSONNIER
8d5d2d2446
shrink less and css, typo in css
14 years ago
Matthias BUSSONNIER
d823325be4
make sticky time configurable
14 years ago
Matthias BUSSONNIER
7d069cd792
Notification + tooltip demo
...
Use notification to quicky remind use of the tooltip
Use javascript in notebook to make a live demo in
01_notebook_introduction
tooltip docstring is remplaceid for the first use by a live tutorial
14 years ago
Matthias BUSSONNIER
c804c036ec
tooltip, pager bring pager
...
execute xxxx? on behalf of the cell to bring the pager.
14 years ago
Matthias BUSSONNIER
b1a9677cc0
fix less css
14 years ago
Matthias BUSSONNIER
370b723cb6
Revert "remove less CSS"
...
This reverts commit 185c4ee21a4b658b55d313d1813a5bfeccaa20ef.
14 years ago
Brian Granger
644b1f85ed
Fixing bug in prompt_area handling of OutputArea.
14 years ago
Brian Granger
6268e0a4b1
Removing stale code in CodeCell.
14 years ago
Brian Granger
fd4ecebc9d
Adding missing var statements in notebook.js.
14 years ago
Brian Granger
b274a86b8c
Adding back kernel dead choice for user.
...
I had removed the choice for the user to not restart a dead kernel
but we are using that elsewhere. Eventually we may not give them
a choice, but for now we will use that model.
14 years ago
Brian Granger
ae2bea23fa
Refactored CodeCell to use new OutputArea object for output.
...
This allows us to have a reusable object for formatting output.
Javascript widgets can now use this to format output as well.
14 years ago
Brian Granger
f306423c7e
Adding options to Kernel.execute with a default of silent=true.
14 years ago
Matthias BUSSONNIER
2976d8ea10
fix multiple busy in title bar due to completer
14 years ago
Matthias BUSSONNIER
7301213124
simplify completer logic as we don't exec on behalf of cell
...
also skip making kernel completion request if kernel is busy
14 years ago
Matthias BUSSONNIER
e8632ff7ee
clean code, show clock if tooltip is 'sticky'
...
- make code more concise
- remove trailing space
- add some animation
- put some function/variable private with leading underscore
14 years ago
Matthias BUSSONNIER
8f33caf0dc
make tooltip tabs fonction configurable
14 years ago
Matthias BUSSONNIER
bf5cf0dd3a
move some tooltip logic away from codecell.js
14 years ago
Matthias BUSSONNIER
98303f5f7d
Clean code, retab and minor fix
...
remove unused code, convert some tab to space, and correct some
semicolon according to jslint
jlint fixes
14 years ago