Brian E. Granger
ba974a28f7
Adding style.less to each subdir - but still use global style.less
13 years ago
Brian E. Granger
baef1892b0
Updating fabfile and templates for global style.min.css.
13 years ago
Brian E. Granger
4da176975f
Fixing less variable names to use_the_right_convention.
13 years ago
Brian E. Granger
121ecb1913
Going back to a single style.less and style.min.css.
13 years ago
Brian E. Granger
ee89627da3
Adding files that I mised in the last commit.
13 years ago
Brian E. Granger
7140e3045e
Renaming main JS files.
13 years ago
Brian E. Granger
81d5049705
Putting custom.css/custom.js in static/user.
13 years ago
Brian E. Granger
57196dabdb
Wrok on static/tree
13 years ago
Brian E. Granger
a1751a5539
Cleaning up less/css.
13 years ago
Brian E. Granger
6d39d633b6
More work on the less setup.
13 years ago
Brian E. Granger
926e60c5ea
Moving js/less/css dirs up one level. Too much nesting.
13 years ago
Brian E. Granger
a35b7a7e81
More movign around of things in notebook and js/less.
13 years ago
Brian E. Granger
08fba69314
Moving js files into subdirs.
13 years ago
Brian E. Granger
32c9cf4aad
Moving files inside js folder.
13 years ago
Brian E. Granger
e8d285af3c
Working on cleaning up our less files.
13 years ago
Brian E. Granger
92542f1c1f
More renaming of less files.
13 years ago
Brian E. Granger
27e8947e79
Reorg of the js/less/css files.
13 years ago
Matthias Bussonnier
2112c51b7f
Merge pull request #3294 from Carreau/jsfix
...
fix callbacks as optional in js kernel.execute
13 years ago
Matthias Bussonnier
d9d300de39
Typo : optionnal -> optional
13 years ago
Brian E. Granger
a861725303
Merge pull request #3239 from eteq/easy-close-pager
...
Allow "x" icon and esc key to close pager in notebook
13 years ago
Matthias BUSSONNIER
40b760d836
fix callbacks as optional in js kernel.execute
...
plus some doc fixes.
Mainly to fix some backward compatibility with examples here and there.
13 years ago
Erik Tollerud
c2e199abb8
use alternate method to collapse pager from notebook.js as suggested by @Carreau
13 years ago
MinRK
4b5ba71307
protect highlight.js against unknown languages
...
falls back on autodetect if specified language fails (e.g. unrecognized language).
closes #3268
13 years ago
MinRK
7782dfcb4e
add missing return
...
closes #3260 (again)
13 years ago
Brian E. Granger
d3da03069d
Merge pull request #3101 from minrk/marked
...
use marked / highlight.js instead of pagedown and prettify
13 years ago
MinRK
796fb5d0a8
unify highlight.js / codemirror style
13 years ago
MinRK
6ac2bdf086
use highlight.js to highlight markdown code blocks
13 years ago
MinRK
b6c390db06
use marked for markdown
13 years ago
MinRK
70dd6e1612
fix set_last_checkpoint when no checkpoint
...
closes #3260
13 years ago
Brian E. Granger
4a654d1c29
Merge pull request #3240 from minrk/submodules
...
remove js components from the repo
13 years ago
MinRK
8b5e5a5e09
restore checkpoints in a sub-list
...
minor styling update to the restore dialog as well
13 years ago
MinRK
c1b19755fd
rename shouldn't create a checkpoint
13 years ago
MinRK
a3c99d94bb
add checkpoint status to notebook header
...
autosave is also there, but once the dirty flag is an event,
this should stop having the date, and just become 'autosaved / unsaved changes'
13 years ago
MinRK
1f82c03dd2
Save and Checkpoint
13 years ago
MinRK
a99a07f10b
only save on close if autosaving
13 years ago
MinRK
01bba482a9
*all* user-initiated saves create a checkpoint
13 years ago
MinRK
8ca57a1779
s/autosave_notebook/set_autosave_interval/
13 years ago
MinRK
80bba145d5
set default autosave interval to two minutes
13 years ago
MinRK
2fe8a9b2cd
only autosave when dirty
13 years ago
MinRK
dd77790a00
add autosave timer
...
autosave interval is tuned based on the duration of saves.
Autosave will never happen more frequently than every 30 seconds,
and if saves take more than 3 seconds, autosave will fire every 10x the duration of the save (i.e. if save takes 6 seconds, it will be every 60 seconds, etc.)
13 years ago
MinRK
6da01bf362
trigger autosave on tab/window close
...
instead of "please don't leave!"
13 years ago
MinRK
e119a6469b
add Revert to the menu bar
13 years ago
MinRK
5bc55ba984
add some checkpoint messages to the notification area
13 years ago
MinRK
db413fadbf
expose notebook checkpoints in html/js
...
- cmd-S does a plain save
- ^M-s does checkpoint
- add save checkpoint to File menu
- save button in bar does checkpoint
13 years ago
Min RK
6be220da56
Merge pull request #3235 from ellisonbg/removeprint
...
Remove the unused print notebook view
13 years ago
Brian E. Granger
56e4759813
Merge pull request #3238 from ellisonbg/tabstyle
...
Improve the design of the tab completion UI
13 years ago
Brian E. Granger
5cc0897dd6
Fixing styling of context type completions.
13 years ago
Erik Tollerud
180f465f16
Collapse -> Close in button description as suggested by @fperez
13 years ago
Erik Tollerud
13b2cadd8b
changed ESC to trigger collapsing of the pager in notebook
13 years ago
Erik Tollerud
aafec25d34
Added clickable icon to collapse pager
...
Closes #3196
13 years ago
MinRK
09adbd4e32
remove components
13 years ago
Brian E. Granger
d9668cdb78
Merge pull request #3190 from minrk/image_size
...
allow formatters to specify metadata
13 years ago
Brian E. Granger
e149319692
Removing print notebook from style.less.
13 years ago
Brian E. Granger
51a897d87c
Removing stale call to print view in JS.
13 years ago
Brian E. Granger
abaafd2363
Removing old autogrow JS code.
13 years ago
Brian E. Granger
93f5f67d37
Updating box-shadows to proper bootstrap less function.
13 years ago
Brian E. Granger
49faf2c939
Improving the tab completion UI/design
13 years ago
MinRK
034331c3fa
support display_pub metadata in js frontend
13 years ago
Brian E. Granger
8dbc143512
Fix CM related sizing issues for completer and tooltip.
13 years ago
Brian E. Granger
9d2da9e28f
Removing old codemirror assets - we now use the 1 in components.
13 years ago
Brian E. Granger
c83c0449d5
Fixing CM3 style related issues.
...
CM3 introduced a number of changes to how various paddings are set.
Because of how we change the line-height we had to set these back
to the CM2 values. What a pain!
13 years ago
Brian E. Granger
40617eb340
Give the .CodeMirror class no background so ours shows through.
13 years ago
Brian E. Granger
29a1296ef6
Changing mode name from python -> ipython.
13 years ago
Brian E. Granger
222a4f61df
Updating ipython CM mode.
13 years ago
Brian E. Granger
ea4eb9b351
Copying CodeMirror's python mode into place for our ipython mode.
13 years ago
Brian E. Granger
72d7b6ff39
Updating tooltip.less for CM3 behavior.
13 years ago
Brian E. Granger
6e08dc37fa
In CM3, the class that needs autogrow has changed.
13 years ago
Brian E. Granger
c666acbe5e
Updating tooltip.js to work with CM3.
13 years ago
Brian E. Granger
ed8d859d66
Updating path to codemirror.
13 years ago
Brian E. Granger
85908b1765
Moving cmtemp -> codemirror.
13 years ago
Brian E. Granger
154df41ac3
Moving CodeMirror -> cmtemp
13 years ago
Brian E. Granger
836f68e4ad
Adding our current components directory.
...
This commit adds the right versions of:
* Bootstrap
* Jquery
* less.js
* CodeMirror
We should always use bower to manage these packages in the
future. BUT, we are not yet using this version of jquery as
we still rely on an older crazy-branch version of jquery.ui.
13 years ago
Brian E. Granger
b5ad7db080
The HTML output type accidentally got removed from the OutputArea.
...
This commit adds it back at the approp. point in the
OutputArea.display_order.
13 years ago
Brian E. Granger
3a515880ae
Text in rename dialog was way too big - making it <p>.
13 years ago
Brian E. Granger
41ffe3d027
Merge pull request #3089 from minrk/stdin
...
add stdin to the notebook
13 years ago
MinRK
43eb765793
js comment about session id in first message
13 years ago
MinRK
938a5b5dbc
tweak raw_input style
...
more crowded, less jumpy
13 years ago
David Wyde
11b72681e2
Remove references to HTMLCell (dead code).
13 years ago
MinRK
ba79b60c35
fix color in raw_input
13 years ago
MinRK
31c8fb1fb6
tweak raw-input styling
...
should fix alignment of raw_input and prompt
13 years ago
MinRK
f09eaf7b5e
cleanup stdin event submission
...
follow example in rename notebook: remove form, bind keydown for enter,
avoiding shift-enter submitting the cell again.
13 years ago
MinRK
5b434b705f
use inline raw_input instead of a dialog
13 years ago
MinRK
f38f2b7ac4
add stdin to notebook
...
dumb / gross / ugly jQuery modal dialog for now,
but it works!
13 years ago
MinRK
74f8972505
specify socket identity from kernel.js
...
required for stdin routing
13 years ago
Brian E. Granger
646dcf77a4
Merge pull request #3201 from minrk/fastcolor
...
use much faster regexp for ansi coloring
13 years ago
Brian E. Granger
13032d01ba
Merge pull request #3011 from minrk/kernelclient
...
IPEP 12: add KernelClient
13 years ago
Min RK
2e5e595359
Merge pull request #3174 from Carreau/simple-class
...
Simple less classes
Simplify class handeling in js/css
Instead of setting several class (e.g: `cell vbox`) per dom element, use less to embed the definition of `vbox` into `cell`.
This should allow :
- more easy theming.
- responsive css on nbviewer
There are many other places where this can be done.
13 years ago
Min RK
6ce1901e83
Merge pull request #2979 from Carreau/cm-configurable
...
CM configurable Take 2
Change the way configurability works.
Config dict should be passed down to the parent class where it will be
merged with the default value and propagate to this only in the base
class.
This allow to both alter the configuration on a per instance basis, or
globaly by tempering with the class instance.
This also get rid of IPython global in some cases.
--
Still not **perfect** but I think this is the limit of my js knowledge, there is a minimal amount of code of 4 line to propagate the configuration :
```
var options = {foo:bar}; // default options can be class parameter
var overwrite_options ={boo:baz}; // came from args, or not
options = this.mergeopt(CodeCell, options, overwrite options);
IPython.Cell.apply(this,[options]);
```
13 years ago
MinRK
08cbf96075
don't restart channels on kernel restart
...
it wasn't actually necessary (proper fix in previous commit)
13 years ago
MinRK
e854617caf
restart channels on kernel restart
...
generally not necessary, but sometimes the kernel connection can be dirty.
We have only seen this by starting a qtconsole via %qtconsole,
then killing the kernel, at which point the original notebook's connection
(at the zmq level) is never restored to the new kernel at the same endpoint.
It's weird, and probably a zmq bug, but a simple reconnect seems to solve it.
13 years ago
MinRK
8204a6fb6d
handle new autorestart javascript-side
13 years ago
MinRK
bf69e92b57
use much faster regexp for ansi coloring
...
ansispan function adapted from mmalecki/ansispan
The easiest way to see how slow the old way was is to create a very large traceback (e.g. max recursion), which bring everything to a screeching halt (even future page loads, if the output is saved). Now a max recursion error draws in a second or two.
closes #3198
13 years ago
Juergen Hasch
dd68727ff0
Add COMMAND keycode
13 years ago
Juergen Hasch
99af7b8a58
set <select> width to auto
13 years ago
Juergen Hasch
eb646bbf72
Improve special key handling in completer
13 years ago
Juergen Hasch
18aa1bd914
Add new keycodes
13 years ago
Matthias BUSSONNIER
9a8301c9fd
merge box-flex1 class into .output-area css definition
13 years ago
Matthias BUSSONNIER
afdb9b8cea
include vbox into .cell css definition
13 years ago
Matthias BUSSONNIER
d5c744d74b
include hbox in outpuarea css
13 years ago
Matthias BUSSONNIER
947c32bfc4
use hbox mixin instead of class
...
this will allow dynamic css in nbviewer like vbox-ing for low res
without JS or change in html
13 years ago
Matthias BUSSONNIER
834b146cca
JS Configurablity Take 2
...
Change the way configurability works.
Config dict should be passed down to the parent class where it will be
merged with the default value and propagate to this only in the base
class.
This allow to both alter the configuration on a per instance basis, or
globaly by tempering with the class instance.
This also get rid of IPython global in some cases.
13 years ago
MinRK
2fc4821c2f
tweak heading-anchor css
...
avoids blue links after visiting
13 years ago
MinRK
4976c6fb16
minor heading-link tweaks
...
- use id instead of name
- replace spaces with `_`
for html compliance
13 years ago
Min RK
a4b1bea069
Merge pull request #3136 from jfeser/8b94eddb4d15ce6f0c98675116d4609bdaaf99d9
...
Strip useless ANSI escape codes in notebook
ANSI color escape codes get handled specially by the notebook, but other kinds of codes just get printed out. Strip these codes out of the notebook output.
closes #2385
13 years ago
Jack Feser
5f5ac70660
Strip non color related ANSI escape sequences from notebook output.
...
This fixes issue #2385 .
13 years ago
David Wyde
72c94c4f1c
Fix an incorrect comment.
13 years ago
David Wyde
904be21a9f
Prevent errors when up/down arrows are pressed in an empty notebook.
...
Notebook.get_selected_cell() returns `null` in an empty notebook.
13 years ago
Matthias Bussonnier
a8873230bf
Merge pull request #3102 from minrk/spellcheck
...
set `spellcheck=false` in CodeCell inputarea
13 years ago
Matthias Bussonnier
061d27e877
Merge pull request #3064 from minrk/header-anchors
...
add anchors to heading cells
13 years ago
MinRK
7a648670af
set `spellcheck=false` in CodeCell inputarea
...
prevents autocorrect from firing in Safari (weirdly, autocorrect does not have this effect).
Note: must be `false`, not `off`
closes #3087
13 years ago
Matthias Bussonnier
7bc51fd945
Merge pull request #3078 from minrk/link_re
...
fix regular expression for detecting links in stdout
13 years ago
Matthias Bussonnier
98aba52c58
Merge pull request #3054 from minrk/auto-cluster-size
...
restore default behavior for automatic cluster size
13 years ago
MinRK
4cd0d6e7bb
fix regular expression for detecting links in stdout
...
The previous expression was matching both the beginning and the end of the line,
which would end up swallowing the next match,
ultimately matching every other URL in the string.
This removes the end-of-line check, so it will match every URL.
The wrapURLs function to make URLs easier to identify does not seem to have been necessary,
and has thus been removed.
closes #2834
13 years ago
David Wyde
7a10342d6f
Add YUIDoc in notebook.js.
13 years ago
MinRK
b110a02e7a
s/heading-link/heading-anchor/
13 years ago
MinRK
ede5a66198
put the anchor inside the header tag
...
instead of the other way around.
This way, only clicking the text loads the hash link,
rather than the whole area.
13 years ago
MinRK
7e6b5d98c7
trigger hash on notebook load
...
enables direct links to anchors within notebooks
13 years ago
MinRK
ba4b1d6e1c
add anchor and link to heading cells
13 years ago
MinRK
276d8b68bb
restore default behavior for automatic cluster size
...
the up/down buttons still work, but it doesn't populate everything with 2,
which was wrong.
13 years ago
MinRK
7fcc683e6f
add width:100% to vbox for webkit / FF consistency
...
closes #3049
13 years ago
Olivier Verdier
a7a73c4285
fix time format to international time format
...
use the ISO 8601 standard
see http://en.wikipedia.org/wiki/ISO_8601#Times
13 years ago
Harry Moreno
21fc8cd23b
changed instances of 'outout' to 'output' in alt text's
13 years ago
Matthias BUSSONNIER
3b37cd80e4
fix css in .output_area pre
...
font: inherit conflict with monospace, wich in some cases
leads to non-monospace font (nbviewer for example)
13 years ago
Matthias BUSSONNIER
f84acbbaff
fix run-all (that-> this)
13 years ago
Brian E. Granger
66049a99f0
Merge pull request #2929 from Carreau/cleanup-cell-insertion
...
Cleanup cell insertion
13 years ago
Matthias BUSSONNIER
914dfb9f61
fix one more == to ===
13 years ago
Matthias BUSSONNIER
10e92b3034
fix i/index in move up/down and == -> ===
13 years ago
Matthias BUSSONNIER
0033b3e6c5
fix notebook deletion.
...
do not thrust what "that" is in a 3 level deep
callback
13 years ago
MinRK
acf3b2bf21
fix logic for append_javascript
...
PR #2911 results in appending javascript even if dynamic is false,
so in current master all javascript outputs are actually run at load.
13 years ago
Matthias BUSSONNIER
6ed926be7b
fix baseUrl
13 years ago
Bussonnier Matthias
9cd9e5db73
Merge pull request #2903 from Carreau/toggle-line-number
...
Specify toggle value on cell line number
13 years ago
Bussonnier Matthias
a1a32e82ff
Merge pull request #2911 from Carreau/output-order-conf
...
display order in output area configurable
13 years ago
Bussonnier Matthias
f99f0571d7
Merge pull request #2897 from Carreau/baseurl-meth
...
Dont rely on BaseProjectUrl data in body tag
13 years ago
Bussonnier Matthias
0a25fb8749
Merge pull request #2894 from Carreau/cm-configurable
...
Cm configurable
13 years ago
Matthias BUSSONNIER
f6298c6c7f
use show method in toggle method
13 years ago
Matthias BUSSONNIER
1f402a1dac
remove unused/not working function
13 years ago
Matthias BUSSONNIER
e965757a33
simplify logic
13 years ago
Bussonnier Matthias
1467f5b59f
abstract, cleanup and document
...
Separate the methods that actually insert dom element for easier
testing.
Cleanup, and order methods more logically
add "docstring"
13 years ago
Bussonnier Matthias
0c5c5b9c83
Merge pull request #2906 from Carreau/mkypatch-cm
...
Unpatch/Monkey patch CM
13 years ago
Matthias BUSSONNIER
44385d9c7f
jslint
13 years ago
Matthias BUSSONNIER
bd59389626
fix bad logic
13 years ago
MinRK
b7fe08c91c
add disabled state to undo-delete-cell when unavailable.
13 years ago
MinRK
7566379d14
add menu item for undo delete cell
...
closes #2920
13 years ago
Matthias BUSSONNIER
d9480a5643
refactor cellc
13 years ago
Matthias BUSSONNIER
2d07627cb1
factor valid cell index logic
13 years ago
Matthias BUSSONNIER
763e7a31ce
doc fixes
13 years ago
Matthias BUSSONNIER
70713da4d4
Method to show hide linenumber of cell
...
mostly convenience methods to wrap codemirror one,
plus doc and 1 doc fix (missing curly bracket)
13 years ago
Bussonnier Matthias
1445b189d4
Merge pull request #2885 from Carreau/monospace-pager
...
get monospace pager back
13 years ago
Matthias BUSSONNIER
fc2ee6289b
display order in output area configurable
13 years ago
Matthias BUSSONNIER
a05bb1cfe3
fix default empty option
13 years ago