Commit Graph

1993 Commits

Author SHA1 Message Date
Matthias BUSSONNIER
0c2dd44f8d rename scroll_threshold, add minimum_ prefix 2013-05-28 21:51:46 +02:00
MinRK
04726d2563 setting the notebook dirty flag is now an event
set_dirty.Notebook
2013-05-28 12:44:08 -07:00
MinRK
91c82dcfae add is_typing utility
simple, liberal check for whether a keypress is probably typing or not.
2013-05-28 12:43:03 -07:00
Matthias Bussonnier
70ca4f47e5 Merge pull request #3368 from samuela/master
Reenable bracket matching in CodeMirror. 

Upstream code was moved in a add-on, just load this add-on, configuration was still in the right place.
2013-05-28 12:35:49 -07:00
Matthias BUSSONNIER
84d9694a59 improve js documentation 2013-05-28 21:25:21 +02:00
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
2013-05-28 11:47:05 -07:00
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.
2013-05-28 20:26:04 +02:00
Samuel Ainsworth
9bdeaee734 Reenable bracket matching 2013-05-28 10:48:27 -04:00
Matthias BUSSONNIER
fafb84e83c Inject requirejs in notebook and start using it. 2013-05-26 21:38:25 +02:00
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
2013-05-24 16:55:32 -07:00
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.
2013-05-24 16:54:56 -07:00
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.
2013-05-24 15:19:34 -07:00
Brian E. Granger
f3dc5a858a Merge pull request #8 from minrk/jsreorg
CSS tweaks
2013-05-24 11:45:56 -07:00
MinRK
bb4228d4e5 remove outline from heading-anchor links 2013-05-24 11:27:21 -07:00
MinRK
bf97e27c22 don't hardcode output_area pre background
set it to transparent, thus inheriting from the parent div.
2013-05-24 11:27:21 -07:00
MinRK
87b6761601 only round CM-gutter corners on outer (left) edge 2013-05-24 11:27:18 -07:00
MinRK
70a43227f3 fix login page override css
just centers form, rather than allowing it to wrap weirdly
2013-05-24 10:45:03 -07:00
Brian E. Granger
a216b0a2bd Fixing path to custom.css in comment. 2013-05-24 09:04:55 -07:00
Brian E. Granger
8097590f35 Fixing code/pre styles in rendered HTML/ 2013-05-23 21:45:44 -07:00
Brian E. Granger
5db6f60336 Removing one level uf subdirs in static/custom. 2013-05-23 21:36:47 -07:00
Brian E. Granger
747dd7ab2b Creating services directory under static for kernels and friends. 2013-05-22 22:37:54 -07:00
Brian E. Granger
5c0a8bb381 Fixing CM3 line numbers for cells. 2013-05-22 22:34:02 -07:00
Min RK
0e94b7edac Merge pull request #3341 from minrk/clusterdefault
fix default cluster count in notebook panel

fixes cluster start from notebook panel when no engine count is specified (should be ncpus).
2013-05-22 12:02:28 -07:00
Brian E. Granger
36335a3d78 Splitting notebook.less into separate files. 2013-05-21 21:11:18 -07:00
Brian E. Granger
7227074946 Fixing monospace style vars. 2013-05-21 19:45:47 -07:00
Brian E. Granger
4036f7d24f Turing style of tooltip. 2013-05-21 19:37:49 -07:00
Brian E. Granger
ea1a7accd8 Fixing global less vars to use bootstrap. 2013-05-21 16:50:59 -07:00
Brian E. Granger
47fb1b7c25 Fixing pager style.çy 2013-05-21 16:40:22 -07:00
Brian E. Granger
380f37ce34 Updating notebook.less to use baseLineHeight from variables. 2013-05-21 16:18:42 -07:00
Brian E. Granger
9d3187bb6d Fixing styles by overriding bootstrap. 2013-05-21 16:07:14 -07:00
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.
2013-05-21 15:35:22 -07:00
Brian E. Granger
6b8c543fae Renaming notebooks->notebook in less and templates. 2013-05-21 15:35:22 -07:00
Brian E. Granger
f079104b8a Renaming notebooks->notebook on client side. 2013-05-21 15:35:21 -07:00
Brian E. Granger
9136300198 Playing with the order of less imports. 2013-05-21 15:35:21 -07:00
Brian E. Granger
1a74c2c0a6 Moving static/user to static/custom to prevent future conflicts. 2013-05-21 15:35:21 -07:00
Brian E. Granger
ba974a28f7 Adding style.less to each subdir - but still use global style.less 2013-05-21 15:35:21 -07:00
Brian E. Granger
50b8059093 Finishing conversion of templates to use single style.*. 2013-05-21 15:35:21 -07:00
Brian E. Granger
baef1892b0 Updating fabfile and templates for global style.min.css. 2013-05-21 15:35:20 -07:00
Brian E. Granger
4da176975f Fixing less variable names to use_the_right_convention. 2013-05-21 15:35:20 -07:00
Brian E. Granger
121ecb1913 Going back to a single style.less and style.min.css. 2013-05-21 15:35:20 -07:00
Brian E. Granger
ee89627da3 Adding files that I mised in the last commit. 2013-05-21 15:35:20 -07:00
Brian E. Granger
7140e3045e Renaming main JS files. 2013-05-21 15:35:20 -07:00
Brian E. Granger
81d5049705 Putting custom.css/custom.js in static/user. 2013-05-21 15:35:20 -07:00
Brian E. Granger
222f8b1848 Adding link to new location of favicon.ico. 2013-05-21 15:35:20 -07:00
Brian E. Granger
57196dabdb Wrok on static/tree 2013-05-21 15:35:19 -07:00
Brian E. Granger
a1751a5539 Cleaning up less/css. 2013-05-21 15:35:19 -07:00
Brian E. Granger
6d39d633b6 More work on the less setup. 2013-05-21 15:35:19 -07:00
Brian E. Granger
926e60c5ea Moving js/less/css dirs up one level. Too much nesting. 2013-05-21 15:35:19 -07:00
Brian E. Granger
267be96a2e Changes to templates. 2013-05-21 15:35:18 -07:00
Brian E. Granger
a35b7a7e81 More movign around of things in notebook and js/less. 2013-05-21 15:35:18 -07:00