Commit Graph

1609 Commits

Author SHA1 Message Date
Matthias BUSSONNIER
f55a0a05b8 rename metaui -> celltoolbar 2013-01-14 08:40:55 +01:00
Matthias BUSSONNIER
3cc81dbb8f convention, jQuery variable start with $
all this.xxxx = $(...) change to
    this.$xxxx

I'm thinking of potentially doing it also in parameters that are
expected to be jQuery enabled.
2013-01-14 08:40:55 +01:00
Matthias BUSSONNIER
1c97a7232f enable dropdown preset change 2013-01-14 08:40:55 +01:00
Matthias BUSSONNIER
040a27cacc add a small default metaui-toolbar
just a question mark which pop-up a small text
2013-01-14 08:40:55 +01:00
Matthias BUSSONNIER
d18d975a50 create metadata-dropdowm-menu generator 2013-01-14 08:40:54 +01:00
Matthias BUSSONNIER
70f8001b14 Split metadataui into multiple file
Add example metadata UI into multiple categorized files.
And document how to load it using custom.js.
2013-01-14 08:40:54 +01:00
Matthias BUSSONNIER
1ae472cf1c add utils and docs for metadata UI
add aconvenient utils to generate UI for checkboxes

and use it to generate 3 checkboxes for
new_section
new_subsection
new_fragment
2013-01-14 08:40:54 +01:00
Matthias BUSSONNIER
8022cff041 Add a per cell toolbar.
This add a per-cell globally toggleable toolbar
the main purpouse is to easily edit metadata.

this come with a few example like adding checkbox,
dropdown list, simple button, button with icon...

please see the js-doc of
IPython/frontend/html/notebook/static/js/MetaUI.js
for more info
2013-01-14 08:40:54 +01:00
Min RK
6aaa226322 Merge pull request #2774 from ellisonbg/kernelrestart
Removing unused code in the notebook MappingKernelManager.
2013-01-11 10:51:12 -08:00
Brian E. Granger
60d158af2a Removing unused code in the notebook MappingKernelManager.
This cleans up the API for restarts in the notebook's kernel
manager classes.
2013-01-11 10:39:21 -08:00
Bussonnier Matthias
730eff0a1e Merge pull request #2728 from Carreau/shifttab
also bind shift tab for tooltip + config

This does not change the curent behavior, only add the shift+tab shortcut.

Note that the shift tab shortcut has a slightly different behavior. You can select part of a line and pressing shift-tab will show you the tooltip only for the selection.

This is disabled for multiline selection to still allow to unindent block of code, Keep in mind that the real real shortcut for indent unindent is Ctrl+] or [ . Select/tab is not really supported by codemirror.

Finally the "tooltip_on_tab" behavior is globally configurable via IPython.config so that it could be easily switched to false.

It can be overridden via js console for test purpose.

IPython.config.tooltip_on_tab = true | false
Take effect immediately, only on current notebook.

or globally via custom.js

var user_conf = {tooltip_on_tab:false | true};
$.extend(IPython.config, user_conf)
2013-01-05 02:31:12 -08:00
Bussonnier Matthias
6c148e175a Merge pull request #2723 from Carreau/fixes-2720
diverse fixes for project url

- Force leading and trailing slashes in base_project/kernel_url
- Add support for the prefix in template for static files
- Fix some forgotten quotes
- remove old make_static_url which is now a jinja2 macro
2013-01-03 02:32:40 -08:00
Bussonnier Matthias
f62296df7b Merge pull request #2730 from mrshu/markdown_blockquote
added blockquote CSS
2012-12-31 10:02:10 -08:00
mr.Shu
5df5cc8035 added blockquote CSS 2012-12-31 11:45:29 +01:00
Bussonnier Matthias
5eb3850ae1 shift tqb for tooltip 2012-12-29 23:00:58 +01:00
Bussonnier Matthias
4e5b1eb41a diverse fixes for project url
* Force leading and trailing slashes in base_project/kernel_url
 * Add support for the prefix in template for static files
 * Fix some forgotten quotes
 * remove old make_static_url which is now a jinja2 macro

fixes-2720
2012-12-26 23:08:52 +01:00
Bussonnier Matthias
0d6ce063fd Merge pull request #2716 from Carreau/too-many-headings
remove unexisting headings level
2012-12-24 10:04:40 -08:00
Bussonnier Matthias
248eae08d6 remove unexisting headings level 2012-12-22 22:04:21 +01:00
Bussonnier Matthias
0904ff21fb Merge pull request #2699 from crbates/jinja2
fix jinja2 rendering for password protected notebooks
2012-12-19 10:34:53 -08:00
Bradley M. Froehle
df3a86e167 Merge pull request #2700 from bfroehle/iptest_no_jinja2
Skip notebookapp testing if jinja2 is not available.
2012-12-19 08:53:52 -08:00
Bradley M. Froehle
3493814467 Skip notebookapp testing if jinja2 is not available. 2012-12-18 13:13:02 -08:00
Cameron Bates
8d1d5fb37c Use the correct tornado import as suggested by @ivanov 2012-12-18 11:42:53 -08:00
Cameron Bates
cbe76aaf9b fix jinja2 rendering for password protected notebooks 2012-12-17 16:33:54 -08:00
Bussonnier Matthias
e4c7353f48 Merge pull request #2683 from yoavram/patch-1
For downloads links in menubar, replaced window.open with window.location.assign.
2012-12-15 03:15:01 -08:00
Yoav Ram
2518649d6c for downloads, replaced window.open with window.location.assign
This doesn't actually open a new windows, so it's a bit nicer. 
Not very important, though.
Source: [StackOverflow](http://stackoverflow.com/questions/1066452/easiest-way-to-open-a-download-window-without-navigating-away-from-the-page)
2012-12-14 23:55:26 +02:00
Bussonnier Matthias
51fb9a38ef Merge pull request #2659 from kmike/master
Fix small typos and errors in JS.
2012-12-14 12:39:17 -08:00
Bussonnier Matthias
f9f46750fe Merge pull request #2363 from crbates/jinja2
Refactor notebook templates to use Jinja2
2012-12-14 10:42:01 -08:00
Cameron Bates
6de923fb95 Rename "nb" variable to "template" for clarity 2012-12-10 21:41:17 -08:00
Cameron Bates
7493794594 Move environment setting from handler to the notebook application 2012-12-06 13:35:28 -08:00
Mikhail Korobov
4bca5a19ea Some bugs in js (mostly scoping bugs) are fixed 2012-12-06 22:14:59 +06:00
Brian E. Granger
edd27cf292 Merge pull request #2312 from adamgd/master
Add bracket matching to code cells in notebook
2012-12-04 14:31:58 -08:00
Bussonnier Matthias
459f816d54 Merge pull request #2571 from Carreau/jsdoc
Start to document Javascript

see IPython/frontend/html/notebook/static/js/readme on how to compile/see it.
2012-12-04 08:19:58 -08:00
Bradley M. Froehle
1549def846 Merge pull request #2641 from Carreau/thisthat
undefinied that -> this
2012-12-03 08:52:25 -08:00
Matthias BUSSONNIER
31b18e69ad undefinied that -> this 2012-12-03 10:12:28 +01:00
Thomas Kluyver
e344f37ebd Merge pull request #2301 from takluyver/ast-transfomers
Ast transfomers
2012-11-30 13:51:43 -08:00
Cameron Bates
3d08384741 Make template environment a property and fix notebook location 2012-11-24 09:11:03 -05:00
Cameron Bates
7b3c01c667 Merge upstream changes 2012-11-22 21:27:50 -05:00
Bussonnier Matthias
01a54bee69 Merge pull request #2572 from dwf/paste_above_as_default
Make 'Paste Below' the default paste behavior in notebook.
2012-11-22 11:12:39 -08:00
David Warde-Farley
e3255ce471 Merge pull request #1 from Carreau/pr2572
paste below by default
2012-11-22 10:22:04 -08:00
Matthias BUSSONNIER
a56ee187ff past below by default 2012-11-18 12:30:36 +01:00
Matthias BUSSONNIER
43fb0ef6af document base of toolbar 2012-11-17 21:30:02 +01:00
Matthias BUSSONNIER
f91c4f447d start docummenting kernel 2012-11-17 20:46:51 +01:00
Bussonnier Matthias
c0390645f2 Merge pull request #2574 from dkua/Fix#2244
Reformatted the warning message of notebook server starting.

Public IP without SSL should prompt a warning.
Public IP in read-write mode and no password, also a warning.

Fix #2244
2012-11-17 09:02:02 -08:00
Matthias BUSSONNIER
a2306cff89 Fix layout and add note about custom.css 2012-11-16 19:01:56 +01:00
Matthias BUSSONNIER
9c33de9102 document custom.js 2012-11-16 18:59:32 +01:00
Matthias BUSSONNIER
c83cd14d28 more docs, organize in namespace 2012-11-16 18:46:00 +01:00
dkua
5993c3bf9f Made changes as per discussion in PR thread. 2012-11-13 18:06:15 -05:00
dkua
da8c05414e Made some changes to message and logic as advised by Fernando. 2012-11-13 17:11:03 -05:00
dkua
c8d3dbcc98 Refactored warning printout as per Issue #2244 2012-11-13 17:11:03 -05:00
David Warde-Farley
a9910aa408 "Paste Cell Replace" -> "Paste Cell & Replace" 2012-11-12 17:47:43 -05:00