MinRK
2a063c6f5b
process escapes in mathjax
...
allows to enter dollar signs in markdown.
13 years ago
MinRK
9c755781ce
tweak quick-help
...
- increase maximum height of dialogs
- toggle display of the help dialog, only create it once.
13 years ago
MinRK
427a4806cb
specify end-space height in less
13 years ago
MinRK
236bbc8325
remove extra console.log
13 years ago
MinRK
df2b86d39c
don't color delete buton
13 years ago
MinRK
1afda874eb
fix cell toolbar
13 years ago
MinRK
41ff201dca
fix raw_input
...
double-focus, size, and use `val()` instead of `attr("value")`
13 years ago
MinRK
a3dbdfeb52
bootstrapify notification widget
13 years ago
MinRK
76062a3940
use named tabs in tree
13 years ago
MinRK
a01f5590f8
fix tab hash / url behavior
...
clicking tabs sets hash, loading hash url implies tabs
13 years ago
MinRK
a453f8219b
don't remove nav-tab border
13 years ago
MinRK
8a4e398b75
fix Invalid Password message location
13 years ago
MinRK
5ac293bb97
fix select alignment on FF
13 years ago
MinRK
f2b045b14d
remove console.log
13 years ago
MinRK
167a734964
bootstrapify quickhelp
13 years ago
MinRK
b2d9b9beb8
bootstrapify delete dialog
13 years ago
MinRK
d1416665dc
use row-fluid for cluster list
13 years ago
MinRK
7f3995eded
use row-fluid for tree_list
13 years ago
MinRK
e5891be78c
pager styling
...
fixes occasional hiding of top 16px of the header
13 years ago
MinRK
c4ad524cef
inherit bootstrap properly
...
need *both* bootstrap and responsive in style.less, neither in page.html.
13 years ago
MinRK
638b30ff90
shrink navbars a little
13 years ago
MinRK
864ef914ae
fight with bootstrap a little less in tree view
13 years ago
MinRK
0beb0a7828
add missing cell_type = "code";
13 years ago
MinRK
265a8e7edb
only put the notebook in a container
...
allows pager to be full-width
13 years ago
MinRK
116a461bce
fix bad `$(body)`
13 years ago
MinRK
b67fff1d39
tweak header styling
...
use nabbers, so they are internally consistent
13 years ago
MinRK
0d94351fd5
disabile bootstrap's capitalized nav-header
13 years ago
MinRK
3d233ff22f
fix wrong arrow direction
13 years ago
MinRK
9f2e3975b3
add missing dialog.js
13 years ago
MinRK
78199220da
hide save status as it shrinks
13 years ago
MinRK
87a4a3827c
tweak header
13 years ago
MinRK
251a94969b
use responsive bootstrap
13 years ago
MinRK
d0b9e325b3
center login
13 years ago
MinRK
fa9b8b86bd
ipython-main-app should be a bootstrap container
13 years ago
MinRK
b145150b52
bootstrap button output area
13 years ago
MinRK
970fab8dff
tree style tweaks
13 years ago
MinRK
d79c0e7471
bootstrap dialogs
13 years ago
MinRK
aec9331c83
use components jquery-ui
13 years ago
MinRK
26528b108d
don't use $(document).append (it's wrong and broken)
13 years ago
MinRK
24abe87de1
bootstrap tree
13 years ago
MinRK
4296134a41
shrink login button
13 years ago
MinRK
64f669dc69
bootstrap toolbar
13 years ago
MinRK
9da648b4d0
bootstrap menubar
13 years ago
MinRK
7de8d3debb
jquery-ui.custom has been renamed
13 years ago
MinRK
b8bf0831f2
overriding baseLineHeight is not a good idea
13 years ago
MinRK
1ee1ce3b3c
bootstrap base, auth
13 years ago
MinRK
bebc1a0460
start using bootstrap
13 years ago
Matthias Bussonnier
6938e76ccc
Merge pull request #3364 from Carreau/requirejs
...
Inject requirejs in notebook and start using it.
Mainly because the behavior of Marked change when require is injected.
So only apply the modification needed for marked to behave.
13 years ago
Matthias Bussonnier
4469559b19
Merge pull request #3401 from minrk/rollbackcmcss
...
rollback #3358
#3358 was a workaround for a CodeMirror (actually Chrome seems to be the one at fault) bug drawing scrollbars over text, when there isn't anything to scroll. The workaround was a compromise, always drawing the space for the scrollbars to prevent the overlay, but reducing the margin so it isn't quite so annoying in the ~99% of the time that there are no scrollbars. It turns out (#3397 , #3399 ) that the margins are not reliable, so the margin adjustment could cause the very same problem.
closes #3391 , #3397 , #3399
For users who need to hide the scrollbars while zooming text while we wait for a CodeMirror release, you can add the following to your custom.css:
.CodeMirror-scroll, .CodeMirror-wrap .CodeMirror-scroll {
overflow: scroll;
}
.CodeMirror-vscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-hscrollbar {
visibility: hidden;
}
or just put CodeMirror master in your profile's static/components directory.
13 years ago
Matthias Bussonnier
e066135a7c
Merge pull request #3373 from minrk/cookiesecret
...
make cookie_secret configurable
Allows config to specify logins that survive across server instances (default behavior unchanged).
Add warning about not sharing config files with cookie secret.
13 years ago
MinRK
1f841c64e5
add note about sharing config files with cookie_secret
13 years ago
Matthias BUSSONNIER
9f229a8e1c
Use {{static_url}} as require search root
13 years ago
MinRK
977b96ef1f
rollback #3358
...
closes #3391
For users who need to hide the scrollbars while zooming text in the meantime, you can add the following to your custom.css:
```css
.CodeMirror-scroll, .CodeMirror-wrap .CodeMirror-scroll {
overflow: scroll;
}
.CodeMirror-vscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-hscrollbar {
visibility: hidden;
}
```
13 years ago
Matthias BUSSONNIER
66ff7dde48
de-require-config
13 years ago
Matthias Bussonnier
32ac1e9421
Merge pull request #3307 from minrk/wsproto
...
switch default ws_url logic to js side
In some cases (proxies, #3305 ), the request object doesn't have the right information about the originating information. This changes the default behavior, so that ws_url is generally empty by default, which the javascript takes to mean 'the same as http'. This is simpler and should be more resilient than trying a guess on server-side.
also replaces unused websocket_host with websocket_url
Rather than specifying only the hostname, it makes much more sense to specify the whole protocol,host,port in a single go.
13 years ago
Matthias BUSSONNIER
b52aa7e66d
restore anchore on h2-h6 links
13 years ago
Matthias Bussonnier
ceef803109
Merge pull request #3369 from Carreau/auto-scroll
...
Use different treshold for (auto)scroll in output
Use different treshold for (auto)scroll in output
Allow, in particular to switch to scolling for longer input (or disable
it) by still keeping the possibility to manually toggle the output to
scroll.
cf jsdoc,
OutputArea.auto_scroll_threshold
and
OutputArea.minimum_scroll_threshold
OutputArea.auto_scroll_threshold < 0 will prevent auto_scroll from ever happening.
13 years ago
Matthias Bussonnier
fea07e81ce
Merge pull request #3370 from minrk/nonasciicp
...
used in comparison check for notebook name change.
Unless the filenames are normalized, unchanged names may result in false positives for a name change (e.g. OS X uses NFD on the filesystem, so u'\xfc' roundtripped to the filesystem will be u'u\u0308'), which can result in the first save of a notebook after open performing the following actions:
save the recently opened notebook
old_name != new_name, so name change detected
delete old_name (which is actually new_name), which ultimately deletes the just-saved notebook
In master, this has a symptom of the first checkpoint failing because the first save actually deleted the file, and you can't checkpoint a notebook that doesn't exist.
closes #3360
13 years ago
Matthias Bussonnier
874ee503cd
Merge pull request #3372 from minrk/cookiename
...
base default cookie name on request host+port
13 years ago
Matthias Bussonnier
c7a13d15b8
Merge pull request #3378 from minrk/dragDropSafari
...
disable CodeMirror drag/drop on Safari
13 years ago
Matthias Bussonnier
a063c9a094
Merge pull request #3358 from minrk/cm-scroll
...
workaround spurious CodeMirror scrollbars
13 years ago
Matthias Bussonnier
3d57f9b0a0
Merge pull request #3371 from minrk/dirty-event
...
make setting the notebook dirty flag an event
13 years ago
MinRK
711edfaed9
use dirty event to set autosaved/unsaved changes
...
instead of last-saved timestamp
13 years ago
Matthias Bussonnier
665a7b9acc
Merge pull request #3357 from minrk/heading-links
...
move anchor-link off of heading text
13 years ago
MinRK
d48409cdf6
use .text() instead of .html()
13 years ago
MinRK
7fb4e218dc
toggle heading-link visibility with CSS alone
13 years ago
Matthias Bussonnier
17e4486de2
set autoscroll default back to 100
13 years ago
MinRK
438216ce5e
replace unused websocket_host with websocket_url
...
Rather than specifying only the hostname, it makes much more sense
to specify the whole protocol,host,port in a single go.
13 years ago
MinRK
2b45d245a4
switch default ws_url logic to js side
...
In some cases (proxies, #3305 ), the request object doesn't have the right information about the originating information. This changes the default behavior, so that `ws_url` is generally empty by default, which the javascript takes to mean 'the same as http'. This is simpler and should be more resilient than trying a guess on server-side.
13 years ago
Matthias BUSSONNIER
0c6c87b446
document undefined behavior for 0 parameter
13 years ago
MinRK
f2138c0167
disable CodeMirror drag/drop on Safari
...
workaround for marijnh/CodeMirror#332
closes #3375
13 years ago
MinRK
f3a2d5fa27
remove unused is_typing js util
13 years ago
MinRK
4d8bbeb356
trigger dirty on CM change
13 years ago
MinRK
b0d0ed0505
make cookie_secret configurable
...
allows config to specify logins that survive across server instances (default behavior unchanged).
Depends on PR #3372
13 years ago
MinRK
78d5827c47
base default cookie name on request host+port
...
instead of random.
The random cookie name meant that every time you restarted the notebook it would get a new key in the cookie for the same host, resulting in an ever-growing cookie full of obsolete data.
13 years ago
Matthias BUSSONNIER
0c2dd44f8d
rename scroll_threshold, add minimum_ prefix
13 years ago
MinRK
04726d2563
setting the notebook dirty flag is now an event
...
set_dirty.Notebook
13 years ago
MinRK
91c82dcfae
add is_typing utility
...
simple, liberal check for whether a keypress is probably typing or not.
13 years ago
Matthias BUSSONNIER
84d9694a59
improve js documentation
13 years ago
MinRK
718bf61bd3
normalize unicode notebook filenames
...
used in comparison check for notebook name change.
Unless the filenames are normalized,
unchanged names may result in false positives for a name change
(e.g. OS X uses NFD on the filesystem,
so u'\xfc' roundtripped to the filesystem will be u'u\u0308'),
which can result in the first save of a notebook after open performing the following actions:
1. save the recently opened notebook
2. `old_name != new_name`, so name change detected
3. delete old_name (which is actually new_name), which ultimately deletes the just-saved notebook
In master, this has a symptom of the first checkpoint failing because the first save actually deleted the file, and you can't checkpoint a notebook that doesn't exist.
closes #3360
13 years ago
Matthias BUSSONNIER
ed22684ef2
Use different threshold for (auto)scroll in output
...
Allow, in particular to switch to scolling for longer input (or disable
it) by still keeping the possibility to manually toggle the output to
scroll.
13 years ago
Samuel Ainsworth
9bdeaee734
Reenable bracket matching
13 years ago
Matthias BUSSONNIER
fafb84e83c
Inject requirejs in notebook and start using it.
13 years ago
MinRK
0cff42ffff
move anchor-link off of heading text
...
avoids confusion about where to click, matching Sphinx-style output.
Moves the relevant style to textcell.less
13 years ago
MinRK
21a6e1f892
workaround spurious CodeMirror scrollbars
...
always draw scrollbar margin, so that inappropriate scrollbars never overlap the last line.
To compensate for the extra space, the margin between the scrollbar and the last line is shrunk significantly.
13 years ago
Fernando Perez
695d7af2a5
Merge pull request #3325 from ellisonbg/jsreorg
...
Organize the JS and less files by component, in the `static` directory of the notebook.
This PR does the client side re-org that parallels the server side work in #3321 . There are now subdirectories in `static/` for each part of the client; roughly speaking there is one subdir for each page, web service or component.
13 years ago
MinRK
bb4228d4e5
remove outline from heading-anchor links
13 years ago
MinRK
bf97e27c22
don't hardcode output_area pre background
...
set it to transparent, thus inheriting from the parent div.
13 years ago
MinRK
87b6761601
only round CM-gutter corners on outer (left) edge
13 years ago
MinRK
70a43227f3
fix login page override css
...
just centers form, rather than allowing it to wrap weirdly
13 years ago
Brian E. Granger
a216b0a2bd
Fixing path to custom.css in comment.
13 years ago
Brian E. Granger
8097590f35
Fixing code/pre styles in rendered HTML/
13 years ago
Brian E. Granger
5db6f60336
Removing one level uf subdirs in static/custom.
13 years ago
Brian E. Granger
747dd7ab2b
Creating services directory under static for kernels and friends.
13 years ago
Brian E. Granger
5c0a8bb381
Fixing CM3 line numbers for cells.
13 years ago
Brian E. Granger
36335a3d78
Splitting notebook.less into separate files.
13 years ago
Brian E. Granger
7227074946
Fixing monospace style vars.
13 years ago
Brian E. Granger
4036f7d24f
Turing style of tooltip.
13 years ago
Brian E. Granger
ea1a7accd8
Fixing global less vars to use bootstrap.
13 years ago
Brian E. Granger
47fb1b7c25
Fixing pager style.çy
13 years ago
Brian E. Granger
380f37ce34
Updating notebook.less to use baseLineHeight from variables.
13 years ago
Brian E. Granger
9d3187bb6d
Fixing styles by overriding bootstrap.
13 years ago
Brian E. Granger
7e0bd8f960
Creating override.css for each page.
...
This css file should only have temporary hack until we fix
out global styles. Don't add anything new to these files.
13 years ago
Brian E. Granger
6b8c543fae
Renaming notebooks->notebook in less and templates.
13 years ago
Brian E. Granger
f079104b8a
Renaming notebooks->notebook on client side.
13 years ago
Brian E. Granger
9136300198
Playing with the order of less imports.
13 years ago
Brian E. Granger
1a74c2c0a6
Moving static/user to static/custom to prevent future conflicts.
13 years ago
Brian E. Granger
ba974a28f7
Adding style.less to each subdir - but still use global style.less
13 years ago
Brian E. Granger
50b8059093
Finishing conversion of templates to use single style.*.
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
222f8b1848
Adding link to new location of favicon.ico.
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
267be96a2e
Changes to templates.
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
MinRK
6b58918a63
fix default cluster count
13 years ago
Matthias Bussonnier
60b35be373
Merge pull request #3333 from t-8ch/patch-1
...
notebookapp: add missing whitespace to warnings
13 years ago
Brian E. Granger
5f9e6f02f1
Updating more imports.
13 years ago
Brian E. Granger
c9d167e78c
Updating imports.
13 years ago
Brian E. Granger
d2100bdc06
Fixing imports for frontend tests.
13 years ago
Brian E. Granger
abeed98476
Moving web services into a subdir.
13 years ago
Brian E. Granger
105553e7b1
Fixing minor import error.
13 years ago
Brian E. Granger
8d8c2f6e5b
Updating tests for refactor.
13 years ago
Brian E. Granger
55243f1c1b
Refactor notebookapp __init__ method.
13 years ago
Brian E. Granger
d3a3adf668
Removing dup import.
13 years ago
Brian E. Granger
a1d2d864a0
Moving base ZMQ handlers to base/zmqhandlers.py.
13 years ago
Brian E. Granger
e1c3f81349
Renaming templates to match other names.
13 years ago
Brian E. Granger
428b727b1a
Renaming api handlers and moving FileFindHandler into base handlr.
13 years ago
Brian E. Granger
f17c77eba0
Updating import statements after moving notebook files around.
13 years ago
Brian E. Granger
6b7fd467ee
Reorganizaing the server side of the notebook.
13 years ago
Brian E. Granger
5359f7c99b
More work on the handlers
13 years ago
Brian E. Granger
f0fb443fd4
Removing debug message.
13 years ago
Brian E. Granger
a809db93b1
Fixing url join problems.
13 years ago
Brian E. Granger
0b28fde1b8
Adding __init__.py
13 years ago
Brian E. Granger
6f891eeb6e
Splitting handlers into different files.
...
I have also created a top-level utils.py for notebook related stuff
13 years ago
Brian E. Granger
3155653f6d
Adding new files.
13 years ago
Brian E. Granger
d9e629d87a
Moving handlers to subdir
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
fa872236a2
Merge pull request #3275 from minrk/submodule-hooks
...
improve submodule messages / git hooks
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
Thomas Weißschuh
44f5fd3d87
notebookapp: add missing whitespace to warnings
13 years ago
MinRK
9b22138a9b
use highlevel in notebook log format
...
datefmt no longer necessary
13 years ago
MinRK
19c6442a7d
check submodules when starting the notebook server
...
shows a warning (not an error) if components are out of date.
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
8df01f22aa
finish removing 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
MinRK
e1f4d0a85f
fix a few URLs from previous PR
...
some of the URLs in the submodules PR were not updated
13 years ago
Brian E. Granger
4a654d1c29
Merge pull request #3240 from minrk/submodules
...
remove js components from the repo
13 years ago
MinRK
2cf93510f8
use less from components
13 years ago
MinRK
317debce06
remove unused components
...
remove command from fabfile
components live in a submodule
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
46093157d7
deleting a notebook deletes its checkpoints
...
also cleanup a few log messages
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
030c547e58
fix Location headers
13 years ago
MinRK
1f82c03dd2
Save and Checkpoint
13 years ago
MinRK
53ac962d1a
sync with previous handler changes
...
use IPythonHandler, avoid self.application
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
MinRK
985289e113
checkpoint info is a dict
...
two keys: checkpoint_id and last_modified
13 years ago
MinRK
dd234bbc93
add ModifyCheckpoints handler
...
separates requests that change specified checkpoint IDs from those that do not.
13 years ago
MinRK
62d61cbbc0
add notebook checkpoint handler
13 years ago
MinRK
c4ac8eee36
add checkpoint API to FileNBManager
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
MinRK
1390270968
use components from external submodule
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