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
Matthias BUSSONNIER
a280495173
remove less CSS
14 years ago
Brian Granger
0d6a698688
Major refactoring of the Notebook, Kernel and CodeCell JavaScript.
...
* Kernel doesn't depend on Notebook or CodeCell.
* CodeCell doesn't depend on Notebook, only Kernel.
* All of the kernel management logic has been moved out of the
Notebook into the Kernel.
* Public methods of the Kernel (execute, complete, etc) take
a callbacks object that registers the callbacks for that msg.
(rebased, cherrypicked, by Bussonnier Matthias <bussonniermatthias@gmail.com>)
(and tabs removed)
Conflicts:
IPython/frontend/html/notebook/static/js/codecell.js
IPython/frontend/html/notebook/static/js/completer.js
IPython/frontend/html/notebook/static/js/tooltip.js
14 years ago
Matthias BUSSONNIER
94d8683400
allow number in tokens
14 years ago
Matthias BUSSONNIER
068a60a8b7
fix print view
...
construct a completer only if the class exist
otherwise print view won't load.
14 years ago
Matthias BUSSONNIER
507a66235b
fix typo that->this
14 years ago
Matthias BUSSONNIER
b6fcb806d6
fix cancel_stick typo
14 years ago
Matthias BUSSONNIER
d7b42270ee
remove console.log
14 years ago
Matthias BUSSONNIER
73cc002110
clean and comment tooltip file
14 years ago
Matthias BUSSONNIER
5064568730
should fix click on close works when sticky
14 years ago
Matthias BUSSONNIER
d2f803bff2
multiple tooltip action
...
consecutives tab pressing with tooltip does :
- fisrt : show it
- second : expand it
- third : make it sticky for 10s (typing wont dismiss it)
- forth : send the content into the Pager
14 years ago
Matthias BUSSONNIER
72e3ea89ee
remove global
14 years ago
Matthias BUSSONNIER
5d8f0da694
almost all logic in tooltip.js, padding right button
14 years ago
Matthias BUSSONNIER
ca68062413
call tooltip after time
14 years ago
Matthias BUSSONNIER
0bfa18dd46
call tooltip by cell reference
14 years ago
Matthias BUSSONNIER
52d5f3beb2
move arow with tooltip positoin
14 years ago
Matthias BUSSONNIER
fa5aae3f43
shorten prearrow
14 years ago
Matthias BUSSONNIER
17a4f13a81
animation if already shown
14 years ago
Matthias Bussonnier
e0cf20b423
animate tooltip position
14 years ago
Matthias Bussonnier
b26b20e94f
fix scrolltop
14 years ago
Matthias Bussonnier
a84a7f03b0
play with tooltip growing css
...
don't forget to reenqble keyframe with a more
recent less compiler
14 years ago
Matthias Bussonnier
775c9e9317
comment a little
14 years ago
Matthias BUSSONNIER
22a44e79f8
change new tooltip appearence
...
temporarly (or maybe not) use less css to produce the css for the
tooltip.
14 years ago
Matthias BUSSONNIER
7b5b591425
improve new tooltip
14 years ago
Matthias BUSSONNIER
b463c64b32
new tooltip style
14 years ago
Matthias Bussonnier
85a09de995
tooltip to mac
14 years ago
Matthias Bussonnier
0247ac16f6
tooltip to mac
14 years ago
Matthias BUSSONNIER
7e7df86761
more cleaning
14 years ago
Matthias BUSSONNIER
cf19389cdd
clean code, remove duplicate unused lines
14 years ago
Matthias BUSSONNIER
6a658a6fa8
move more code into the completer itself
14 years ago
Matthias BUSSONNIER
e4784b984b
be smarter for context completion
...
Completion source based on context is smarter and use codemirror token
mecanisme to propose completions, instead of just plitting text at
whitespace and before dots.
14 years ago
Matthias BUSSONNIER
23ef964f06
add ctrlKey.which to utils
...
and modifies some file to use it
14 years ago
Matthias BUSSONNIER
3919267750
Removing some code that seem not to be usefull anymore
...
if having problem with Tab Completion try to revese this commit
14 years ago
Matthias BUSSONNIER
cfaa7ba427
import Utils keycodes into the completer
14 years ago
Matthias BUSSONNIER
fa6b8974ea
add a keycodes structure to utils
...
this structure (IPython.utils.keycodes)
add some common keycodes like tab...etc
and start modifying codecell.js to use it for better readability
14 years ago
Matthias BUSSONNIER
472fe4c19e
fix replace range bug
...
pylab.l<tab><tab> would be replace by .l because of a bug in common
start finding .l on the fifth position of pylab.start.
14 years ago
Matthias BUSSONNIER
839b8489c8
comment more
14 years ago
Matthias BUSSONNIER
0fa8b2236a
fix and retab javascript
14 years ago
Matthias BUSSONNIER
856c872ba7
use strict and clean a little.
...
adding 'use strict' in some place to be more agressive on the
delaration of the variables.
clean name and details here and there
14 years ago
Matthias BUSSONNIER
5076118509
implement the completer in a separate class
...
more feature like
-completion based on 2 sources :
* introspection in kernel
* context of current cell (complete with matching words)
* each source has its color in the completer
14 years ago
Matthias BUSSONNIER
a4dc3f1e3f
position upload form for firefox
14 years ago
Bussonnier Matthias
711c2ef6cc
Merge pull request #1739 from Carreau/dashboardImprovement
...
Dashboard improvement
see #1658 #1676
Allow to shutdown the kernels from the dashboard,
autorefresh dashboard,
add a native upload method, especially for https/chrome/linux that prevent drag and drop
14 years ago
Matthias BUSSONNIER
981738f9e3
change upload sentense
14 years ago
Bussonnier Matthias
242d3df5c2
Merge pull request #1705 from Carreau/draggablePager
...
[notebook] Make pager resizable, and remember size...
14 years ago
Matthias BUSSONNIER
1eeff0e5c8
Revert "esc collapse pager"
...
This reverts commit c8e47d45dbd7c17293de0d9218e8f52247b79d1d.
14 years ago
Matthias BUSSONNIER
73ff1c5cde
fix upload button selection by class
...
superseed #1676 #1658 (and correct bug in 1676 where one con't upload
notebook because of refresh)
14 years ago
Matthias BUSSONNIER
b2291b14dc
Drag target bigger for empty notebook dashboard
...
When no notebooks, show "Notebook list empty", which increase the size
of the drag target.
fixes #1492
14 years ago
Matthias BUSSONNIER
1eae6f060a
do not expose enable/disable autorefresh
14 years ago
Matthias BUSSONNIER
231e8f93f2
remove underscore in filename
14 years ago
Matthias BUSSONNIER
ee857f1bd9
remove extra console.log
14 years ago
Matthias BUSSONNIER
d549731d32
add 'Close and halt' in notebook filemenu
14 years ago
Matthias BUSSONNIER
13cf61912b
prevent autorefresh when pending upload
...
don't clear list if 'upload' button are present to avoid clearing the
list and the upload form
14 years ago
Matthias BUSSONNIER
a6f78c90b3
Check for null rather than undefined
...
set kernel id to None/null if not started
14 years ago
Matthias BUSSONNIER
2faee858af
rename kernel_status -> kernel_id
14 years ago
Matthias BUSSONNIER
34deb138c8
test kernel for undefined rather than off
14 years ago
Matthias BUSSONNIER
fc59441dda
dashboard autorefresh
...
refresh notebook list and cluster list when :
- page get focus
- every 60 sec when page is on focus
stop refreshing every 60 sec when page loose focus
14 years ago
Matthias BUSSONNIER
4af8cb6c9a
proof of concept
14 years ago
Matthias BUSSONNIER
ca089cc7cf
alternate notebook upload methods
...
fixes #1562
14 years ago
Matthias BUSSONNIER
6acefdacb2
pep 8 and js
...
space after comma, space around equal, space before if and curly bracket
14 years ago
Matthias BUSSONNIER
4cfd7e9df6
fix firefox compatibility
14 years ago
Matthias BUSSONNIER
785fbd9d9a
esc collapse pager
14 years ago
Matthias BUSSONNIER
976c433fe4
Make pager resizable, and remember size...
...
Resizing to small collapse the pager keeping the size to at least 20%
height
(trying to) resize a collapsed pager to more than 10% "expand" it.
Pager can remember it size when toggling by clicking.
14 years ago
Matthias BUSSONNIER
8462288405
fix tooltip on token with number
...
fixes #1696
allow number in matched token for tooltip, except first position
also prevent matching token starting wit a dot
14 years ago
MinRK
97151aa3b8
revert PR #1659
...
caused critical problems with subprocess output.
See `!ls` for an example.
14 years ago
Michael Droettboom
a5d7dd8d2b
Fix typo in comment
14 years ago
Michael Droettboom
e8be6bbe50
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
50fa35b1cc
Handle carriage return characters ("\r") in HTML notebook output.
14 years ago