Bussonnier Matthias
0226efa02d
make tab visible in codemirror and light red background
...
Shoudl fix #3935
2013-08-10 01:14:46 +02:00
Matthias BUSSONNIER
13ff842be5
"use strict" in most (if not all) our javascript
...
+ fix one variable leaking in global nameespace
2013-08-09 14:56:52 +02:00
Andrea Bedini
0fd65c4de3
Fix ansi color code for background yellow
2013-08-09 10:34:52 +10:00
Matthias BUSSONNIER
57c5d901dc
fix completion when shared start among completion item is null
2013-08-08 15:59:42 +02:00
Matthias BUSSONNIER
faa6d63176
complete on % for magic in notebook
...
fixes #3954
2013-08-08 11:19:13 +02:00
Bussonnier Matthias
9c02a3054b
recompile css
2013-08-08 08:04:22 +02:00
MinRK
3f3709526c
minor checkpoint cleanup
...
- remember list of checkpoints browser-side
- cleanup references in MenuBar restore list.
There was a closure issue, where multiple menu items would actually all restore the same checkpoint.
2013-08-07 12:31:16 -07:00
MinRK
c0ec02bdb4
swallow enter event in rename dialog
...
avoids adding newline in cell after dialog is closed.
closes #3926
2013-08-06 19:30:48 -07:00
Min RK
db01a67d5f
Merge pull request #3896 from ivanov/fix-3895
...
two column quickhelp dialog
fits on one page.
closes #3895
2013-08-05 15:06:04 -07:00
MinRK
a186b25626
explicitly load python mode before IPython mode
...
ensures IPython mode gets defined at startup,
which can sometimes fail because the Python mode was loaded dynamically.
closes #3636
2013-08-05 13:51:23 -07:00
Paul Ivanov
481a6a3070
two column quickhelp dialog, closes #3895
...
now that quickhelp is a modal dialog, it makes sense to have it be wider
and have the shortcuts take up two columns, instead of one. This change
makes that possible. See the results here:
![new quickhelp css](http://i.imgur.com/nvRTFJm.png )
2013-08-04 08:36:21 -07:00
Andrea Bedini
47b873295a
Fix documentation of Kernel.stop_channels
2013-08-04 13:07:50 +10:00
Min RK
ac88931fee
Merge pull request #3850 from minrk/store_history
...
add missing store_history key to Notebook execute_requests
2013-07-30 18:25:37 -07:00
Min RK
76b45c7bd3
Merge pull request #3844 from minrk/payload
...
update payload source
should be simple key, not Python- (or worse, IPython-) specific long key.
I could have sworn I did this long ago, but apparently the source key was only updated in display_data, not execute_reply.
2013-07-30 18:18:38 -07:00
Min RK
40b113fc4e
Merge pull request #3848 from minrk/empty-docstring
...
fix incorrect `empty-docstring`
2013-07-30 18:14:17 -07:00
MinRK
9845ba1416
add missing store_history key to Notebook execute_requests
2013-07-30 16:29:35 -07:00
MinRK
1f97024d2b
fix incorrect empty-docstring
...
in notebook tooltip.
The else condition wasn't quite right, and would set doctsring to 'empty doctsring'
even when there was a doctoring.
2013-07-30 15:56:46 -07:00
Jessica B. Hamrick
3001ef8535
Parse markdown correctly when mathjax is disabled
2013-07-30 23:30:08 +02:00
MinRK
6277c845c3
update payload source
...
should be simple key, not Python (or worse, IPython) specific long key.
I could have sworn I did this long ago,
but apparently the source key was only updated in display_data,
not execute_reply.
2013-07-30 13:04:27 -07:00
Min RK
a95cec67ea
Merge pull request #3824 from minrk/heading-link-local
...
don't set target on internal markdown links
simple in-page anchor navs shouldn't open a new tab.
2013-07-29 13:24:51 -07:00
MinRK
ef6b991881
don't set target on internal markdown links
...
simple in-page anchor-nav shouldn't open a new tab.
2013-07-29 12:10:42 -07:00
MinRK
698953e8b1
don't recommend ipython notebook --matplotlib
2013-07-29 11:27:51 -07:00
Matthias BUSSONNIER
8b71a49fc2
remove again a few other occurences
2013-07-29 00:31:54 +02:00
Jessica B. Hamrick
9973445f9a
Closes #3788
2013-07-25 18:40:25 -07:00
Matthias Bussonnier
11cffbe52e
Merge pull request #3781 from minrk/oinfo_request
...
comply with the message spec in the notebook
2013-07-25 17:48:32 -07:00
MinRK
d3540da8f5
add missing block key in complete_request
2013-07-25 13:19:07 -07:00
MinRK
defd49a8b9
comply with the message spec in object_info requests
...
missing detail_level key
2013-07-25 13:11:07 -07:00
MinRK
03883d82e4
remove bad if logged_in
preventing new-notebook without login
2013-07-25 12:07:40 -07:00
Matthias Bussonnier
e07ddebdf6
Merge pull request #3743 from minrk/noro
...
remove notebook read-only view
it is largely broken, and had problematic security issues.
2013-07-25 10:51:26 -07:00
Matthias Bussonnier
b78f0851a3
Merge pull request #3732 from minrk/slow-save-on-close
...
add delay to autosave in beforeunload
allows forceful 'discard changes' by reloading the page and dismissing the warning.
The timer doesn't start until after the dialog is dismissed, so if you decide to nav away without saving changes, the changes will actually not be saved.
2013-07-25 10:50:39 -07:00
Matthias Bussonnier
68cf7df38a
Merge pull request #3741 from minrk/badnbmsg
...
better message when notebook format is not supported
different messages for bad version and bad JSON.
closes #1592
2013-07-25 00:11:39 -07:00
Stefan Karpinski
f0cb45536c
handle empty metadata in pyout messages more gracefully.
2013-07-24 21:03:57 -07:00
MinRK
f9dd129e1c
remove notebook read-only view
...
it is largely broken, and had problematic security issues.
2013-07-23 13:22:05 -07:00
MinRK
2a09958bb6
better message when notebook format is not supported
...
Different messages for bad version and bad JSON.
closes #1592
2013-07-23 12:36:22 -07:00
MinRK
6970a79e6a
add delay to autosave in beforeunload
...
allows forceful 'discard changes' by reloading the page and dismissing the warning,
which @fperez really wanted today.
2013-07-22 18:07:12 -07:00
MinRK
6fbbd1dea3
remove any lingering raw_inputs on raw_input
...
There should never be more than one,
so ensure that is the case on creation.
closes #3710
2013-07-21 10:53:54 -07:00
MinRK
cea07fb351
bind kernel events in Kernel.bind_events
...
avoids multiple-register of send_input event
2013-07-21 10:40:09 -07:00
Min RK
73771392aa
Merge pull request #3685 from minrk/pager
...
fix Pager.detach
detaching the pager would result in the pager not working anymore.
2013-07-19 09:52:35 -07:00
Rick Lupton
7b474e5ce6
Fix rename notebook - show error with invalid name
...
Before the dialog was closing anyway so you couldn't see the error message.
2013-07-19 10:59:14 +01:00
MinRK
0f5de6f4f8
fix Pager.detach
...
detaching the pager would result in the pager not working anymore.
2013-07-18 14:43:10 -07:00
Min RK
a7cf16ce98
Merge pull request #3660 from minrk/focusclick
...
refocus active cell on dialog close
if there is one.
Otherwise the cursor is lost on kernel restart, etc. and the mouse must be used to get back to work.
2013-07-18 11:13:06 -07:00
Matthias BUSSONNIER
38fc90a1b0
add mising semicolon
2013-07-18 18:48:27 +02:00
Matthias BUSSONNIER
42fb90acac
patch header-cell and use-strict
2013-07-18 18:29:41 +02:00
Matthias BUSSONNIER
e166732257
linting and remove unused var
2013-07-18 18:24:25 +02:00
Matthias BUSSONNIER
7a452f10ca
statelessify matjaxutils
...
stateless-ification of function that was using module level
variable to share data.
Now varaible are passed around, and usage of replace math
require user to pass a return value of remove_math around
2013-07-18 18:24:24 +02:00
Matthias Bussonnier
ba24f709cb
Merge pull request #3673 from minrk/cm-comment
...
enable comment/uncomment selection in notebook
Bound to `(cmd|ctrl)-/`
2013-07-18 08:56:16 -07:00
MinRK
127a0669ff
enable comment/uncomment selection
...
with `(cmd|ctrl)-/`
closes #1540
2013-07-17 14:27:07 -07:00
Min RK
374579a65c
Merge pull request #3559 from minrk/create_delete_events
...
add create.Cell and delete.Cell js events
closes #3154
2013-07-17 14:08:48 -07:00
Min RK
5ac40d0746
Merge pull request #3651 from minrk/cleanup
...
remove a bunch of unused `default_config_file` assignments
These are never used, I don't know where they came from.
2013-07-16 15:00:52 -07:00
MinRK
79d9f0f039
refocus active cell on dialog close
...
if there is one
Otherwise, the cursor is lost on kernel restart, etc.
2013-07-16 14:51:06 -07:00
Min RK
117d99ad2a
Merge pull request #3630 from minrk/css
...
CSS adjustments
- remove boilerplate.css, as it is redundant with bootstrap's own reset.less
- add ipython.less / ipython.min.css for IPython-only CSS
- move font-awesome to outermost style.less, so it is not included in ipython.min.css,
where it is not desirable.
This doesn't do any of the naming / scoping cleanup that we should ultimately do, but it does create the file where that will have its desired effect.
2013-07-16 14:09:20 -07:00
Min RK
99a9782eb7
Merge pull request #3601 from minrk/headingmath2
...
Markdown in heading cells (take 2)
closes #3053
closes #3597
2013-07-16 13:00:32 -07:00
Min RK
f395271e95
Merge pull request #3621 from minrk/htmlerror
...
catch any exception appending output
HTML output can have javascript with errors, etc.
No output should ever raise, no matter what.
closes #3620
2013-07-15 17:10:30 -07:00
MinRK
af7564253d
remove a bunch of unused default_config_file
assignments
...
These are never used, I don't know where they came from
2013-07-15 17:01:43 -07:00
Min RK
51f4b08174
Merge pull request #3571 from damianavila/split_shortcut
...
Added `^M -` as shorcut to split cell.
2013-07-15 11:21:17 -07:00
Min RK
f3fa5cd181
Merge pull request #3624 from minrk/argunicode
...
fix some unicode in zmqhandlers
Prevented session identity from being set properly, which in turn prevented stdin from working in the notebook in Python 3.
closes #3494
2013-07-14 11:19:57 -07:00
MinRK
7ff586a134
move font-awesome to style.less from notebook-specific less
...
allows it to be excluded from ipython.min.css,
where it doesn't make much sense.
2013-07-13 17:57:10 -07:00
MinRK
68c314cb39
add IPython-only CSS
...
adds static/style/ipython.less and ipython.min.css
Which should contain minimal styling that conflicts with other CSS.
As we improve our CSS scoping and naming,
this file should eventually be enough to play nice with embedding IPython in other HTML contexts.
2013-07-13 17:56:12 -07:00
MinRK
409a1bb6e1
remove boilerplate.css
...
it is redundant with bootstrap reset
2013-07-13 14:44:55 -07:00
Paul Ivanov
03006024ba
passing cell to showInPager, closes #3625
2013-07-13 00:08:30 -07:00
MinRK
638c36a7f7
fix some unicode in zmqhandlers
...
prevented session identity from being set properly,
which in turn prevented stdin from working in the notebook in Python 3.
closes #3494
2013-07-12 18:47:56 -07:00
MinRK
38869a60e4
catch any exception appending output
...
HTML output can have javascript with errors, etc.
No output should ever raise, no matter what.
closes #3620
2013-07-12 14:26:43 -07:00
MinRK
c800ed9671
be pedantic about VT100 vs ANSI in comments
2013-07-12 11:56:59 -07:00
MinRK
13a89a74e3
add indexed-color in 256-color support
2013-07-12 11:47:59 -07:00
MinRK
49e6a36f7c
add ansi background colors
2013-07-12 11:47:48 -07:00
MinRK
1186d575a9
expand ANSI color support
...
adds support for 256 colors
does not yet add support for themed 16-color mapping ([01;38;5;[0-15])
closes #3617
2013-07-11 17:47:28 -07:00
MinRK
55192ef881
fix regular expression for ANSI escapes
...
wouldn't catch `\x1b[01;`, only `\x1b[0;` or `\x1b[1;`.
closes #3614
2013-07-11 12:19:03 -07:00
MinRK
47061360da
remove unnecessary heading-anchor
...
residue from when the heading text itself was a link
the id is on the header tag itself,
and the link is anchor-link
2013-07-10 15:14:02 -07:00
MinRK
185769d1b9
merge heading lines
...
markdown headings must be a single line
2013-07-10 14:41:03 -07:00
MinRK
b5f0be18de
truncate invalid multi-line headers
2013-07-10 14:36:12 -07:00
MinRK
45d0dd0a45
Markdown in heading cells (take 2)
...
small typo prevented the previous implementation from working.
This also moves the rendering to the 'render' method,
away from set_rendered.
closes #3053
(again)
2013-07-10 13:43:07 -07:00
Min RK
2e417e82f0
Merge pull request #3594 from Carreau/fixes-3563
...
Fix duplicate completion in notebook
comparaison between kernel completion and context-completin were
returning duplicate entry in some cases, due to trailing space.
sripping trailing space in comparaison prevent this.
closes #3563
2013-07-10 10:18:59 -07:00
Matthias Bussonnier
f373e850ae
Merge pull request #3595 from Carreau/rever-md-in-head
...
Revert "allow markdown in heading cells"
2013-07-10 07:06:36 -07:00
Matthias BUSSONNIER
1fbf5a6a2c
Revert "allow markdown in heading cells"
...
This reverts commit 8c83c3b958b3c9f65d9446f69b2704a0b263b07b.
2013-07-10 15:58:45 +02:00
Matthias BUSSONNIER
1e75582e48
Fix duplicate completion in notebook
...
comparaison between kernel completion and context-completin were
returning duplicate entry in some cases, due to trailing space.
sripping trailing space in comparaison prevent this.
fixes #3563
example
import bar
from foo im<tab>
used to propose `import` twice (actually `import` and `import[space]` as$
`import` was a token on the first line) now just complete directly to$
`import[space]`.
2013-07-10 14:16:35 +02:00
Matthias Bussonnier
9b08a557e5
Merge pull request #3538 from minrk/launch_ip
...
add IPython.start_ipython
A public API for starting a real (non-embedded) IPython instance.
should avoid API breakage in the future due to simple module renames, as has just happened with the removal of frontend.
For implementation purposes, I have added launch_new_instance as a classmethod on Application. I did this, because I wanted to add the ability to pass arguments to the instance, and didn't want to manually update every duplicate launch_new_instance.
closes #1537
2013-07-10 01:59:53 -07:00
damianavila
7aab2ec291
Added '-' as a shortcut for splitting cells.
2013-07-09 17:55:13 -03:00
Min RK
f0db998d4d
Merge pull request #3560 from minrk/longcell
...
Remove max_msg_size
The max_msg_size safety limit is just removed.
closes #3124
2013-07-09 11:50:53 -07:00
MinRK
39578beabc
remove max_msg_size altogether
...
It was a security feature without an application.
2013-07-09 09:37:36 -07:00
Matthias Bussonnier
b0922caa81
Merge pull request #3567 from Carreau/app-init-event
...
Trigger a single event on js app initilized.
2013-07-09 08:41:56 -07:00
Matthias Bussonnier
1f2c975c84
Merge pull request #3531 from minrk/headingmath
...
allow markdown in heading cells
2013-07-09 08:34:14 -07:00
Matthias BUSSONNIER
755b13a7c4
Simplify codemirror ipython-mode
...
make it a subset of python mode, only with configuration
2013-07-08 10:49:05 +02:00
Matthias BUSSONNIER
2272edf715
correct static path for CM modes autoload
...
this shoudl also allow to require CM python mode for ipython mode and
only pass a config options.
2013-07-07 18:56:07 +02:00
Matthias Bussonnier
e9c2ac802d
Merge pull request #3561 from minrk/double-c-c
...
mention double-control-C to stop notebook server in the initial log message.
2013-07-07 01:42:29 -07:00
damianavila
73e88b6677
Added shorcuts to split cell, merge cell above and merge cell below.
2013-07-06 18:59:54 -03:00
Matthias Bussonnier
fc5ea27155
Merge pull request #3566 from Carreau/fix-event-name
...
fix event names
2013-07-06 11:18:04 -07:00
MinRK
7fe1b00cdc
mention double-control-C to stop notebook server
...
in the initial log message.
closes #2971
2013-07-06 10:50:11 -07:00
Matthias BUSSONNIER
621c8c40a3
Trigger a single event on js app initilized
...
Usefull to bind to extension loading, to load only once
2013-07-06 19:49:24 +02:00
Matthias BUSSONNIER
41c84eb40e
fix event names
2013-07-06 19:43:23 +02:00
MinRK
4408ab6ca1
warn about messages dropped due to oversize
2013-07-05 22:17:40 -07:00
MinRK
563d9372bf
up default max_msg_size to 1MB
2013-07-05 22:17:39 -07:00
MinRK
5e20d457cd
add create.Cell and delete.Cell js events
...
The events fire after the cell has been created or deleted.
closes #3154
2013-07-05 22:05:53 -07:00
MinRK
0c6fe836ca
open markdown links in new tabs
...
restores earlier behavior lost when we switched to marked.
closes #3439
2013-07-05 20:56:51 -07:00
MinRK
ee6f7f4c3d
set overflow-x: hidden on Firefox only
...
workaround crazy Firefox-only behavior when selecting newlines
closes #3549
2013-07-05 12:31:48 -07:00
Brian E. Granger
7941da8fe2
Merge pull request #3498 from ellisonbg/nbname
...
When a notebook is written to file, name the metadata name u''.
2013-07-05 11:31:41 -07:00
Paul Ivanov
735ed2c67f
Merge pull request #3548 from takluyver/save-icon
...
Change to standard save icon in Notebook toolbar
What used to be a hard drive image is now the more traditional floppy image
2013-07-05 09:51:55 -07:00
Thomas Kluyver
e7bfd55357
Change to standard save icon in Notebook toolbar
...
Closes gh-3545
2013-07-05 17:00:16 +01:00
Matthias Bussonnier
cefbcbead1
Merge pull request #3526 from minrk/clusterlist
...
ensure 'default' is first in cluster profile list
when sorting, 'default' is transformed to ''.
2013-07-05 07:35:59 -07:00
Matthias Bussonnier
8e211a1290
Merge pull request #3525 from minrk/utc
...
Fix basic timezone info
minor tweaks to jsonutil, to include timezone info if available
add IPython.utils.tz, which just has basic info for making utcnow(), etc. include tzinfo in the datetime object
use this tzinfo in the last_modified keys in notebook managers, which fixes Firefox's timezone offset for checkpoints
2013-07-05 07:35:27 -07:00
Matthias Bussonnier
2052b1f1cf
Merge pull request #3513 from minrk/nocp
...
add 'No Checkpoints' to Revert menu
2013-07-05 05:03:43 -07:00