Commit Graph

913 Commits

Author SHA1 Message Date
Bussonnier Matthias
0b44186d76 Merge pull request #2100 from Carreau/2to3fixes
python 2 and 3 compatibility without 2to3

apply some fixes :
- apply (deactivated in setup.py now)
- repr  (deactivated in setup.py now)
- print (only in modules with print >>)
- raise (partially) 

don't touch deathrow and quarantine.
2012-07-13 01:07:56 -07:00
Bussonnier Matthias
f38cf983c5 Merge pull request #2128 from Carreau/fixes-2120
open notebook copy in different tabs
2012-07-12 11:31:37 -07:00
Bussonnier Matthias
22e757f91d Merge pull request #2073 from Carreau/fixes-1997
Allows both password and prefix for notebook at the same time.
2012-07-12 11:28:33 -07:00
Matthias BUSSONNIER
ca65de9fa2 open notebook copy in different tabs
returning false to allow modifier+click,
otherwise open 2 tabs at once.
2012-07-12 18:19:13 +02:00
Bussonnier Matthias
4ec828c3db Merge pull request #1993 from Carreau/printview
Update print-view css, and link the print css when trying to print a notebook without going through the print view.
2012-07-12 06:18:25 -07:00
Matthias BUSSONNIER
011403a14f use print function in module with print >> 2012-07-05 14:32:56 +02:00
Thomas Kluyver
b43f24da5f Merge pull request #2064 from Carreau/pep-3110
Use new style "except Exception as e" syntax.
2012-07-04 13:50:45 -07:00
Fernando Perez
22071dfede Skip notebook 'static' dir in test suite.
There's nothing there we should be running python tests on, and
occasionally python files may appear there that cause problems to nose
(e.g. mathjax ships a non-py3 valid conf.py that breaks py3 testing).
2012-07-01 13:14:47 -07:00
Matthias BUSSONNIER
3c743846a7 use full base_url in html and js 2012-07-01 21:59:09 +02:00
Matthias BUSSONNIER
51d715d00a allows password and prefix for notebook
fixes #1997
2012-07-01 12:04:10 +02:00
Matthias BUSSONNIER
d85f075ad7 conform to pep 3110
brutally replace all `exeption <type>, <name>:` by
`exception <type> as <name> :`

`exception <type>, <type> :` should not be present anywhere in the code
anymore, or should be present with explicit tuple as
`exception (<type>, <type>)`
2012-06-30 18:34:56 +02:00
Matthias BUSSONNIER
df4192ae2a Allow direct print of the notebook.
this improve the current css of the print page and add css to the
classical notebook with print as target to get a better print view ant
the ability to directly print a notebook without going through the print
view
2012-06-30 13:39:02 +02:00
MinRK
ae177a38cb remove empty IPython.scripts test group 2012-06-30 01:00:56 -07:00
MinRK
722e90d50a only add quotes around xunit-file on Windows 2012-06-28 11:23:13 -07:00
Min RK
360e40feca Merge pull request #2047 from minrk/badFirefox
disable auto-scroll on mozilla
2012-06-27 19:57:41 -07:00
MinRK
422965cb3d disable auto-scroll on mozilla
see #2041 for details
2012-06-27 15:07:07 -07:00
Jörgen Stenarson
9919f31095 2012-06-27 22:04:54 +02:00
Jörgen Stenarson
13b30ed3c4 2012-06-27 22:03:54 +02:00
MinRK
fae43d51d4 double auto-scroll threshold to 100 lines
it is more important that we not be surprising or annoying than we hide moderately long output.
2012-06-26 14:41:32 -07:00
MinRK
da17f26fbe ignore shift keydown
prevented case-sensitive shortcuts if shift was pressed after control key
2012-06-26 11:41:53 -07:00
MinRK
ab2de249ed disable ^C^C confirmation on Windows 2012-06-24 16:06:12 -07:00
Jonathan March
3edd709ab6 BUG: test runner fails in Windows if filenames contain spaces. 2012-06-23 19:55:07 -05:00
MinRK
603b7d9598 relax profile regex in notebook
Almost any text is a valid profile name, and the previous code
only included ascii alphanumeric strings.

closes #2011
2012-06-23 12:34:16 -07:00
Fernando Perez
6226f830a0 Merge pull request #2012 from mcelrath/mono_cursor_offset
Fix spurious appearance of the #fontarea when fonts don't have any problem; also remove loud dialog when problematic font is detected and simply adjust baseline.  Users will have a slightly offset baseline for bold/italic highlights, but without any functional problems.

Fixes #2005.
2012-06-22 22:54:35 -07:00
mcelrath
591a8eac23 Fix spurious appearance of #fontarea at end of document. 2012-06-22 21:22:59 -07:00
mcelrath
5a070dcd1a Merge remote-tracking branch 'upstream/master' into mono_cursor_offset 2012-06-22 21:22:43 -07:00
Bradley M. Froehle
7ae0c9482f notebook: Print a warning (but do not abort) if no webbrowser can be found.
Closes gh-2006.
2012-06-22 17:39:15 -07:00
Min RK
e306daad47 Merge pull request #1981 from tkf/kill-bg-processes
Clean BG processes created by %%script on kernel exit

* uses less forceful shutdown of kernels in the notebook, allowing atexit machinery to fire
* enables daemon BackgroundJobs
* cleanup %%script --bg subprocesses at shutdown
2012-06-20 13:35:56 -07:00
Min RK
87f3762e64 Merge pull request #1951 from minrk/nbdir
minor notebook startup/notebook-dir adjustments

* change inaccurate / distressing "Overwriting profile..." log message
* `ipython notebook path` results in setting notebook-dir if it's a dir,
  rather than unconditionally setting file-to-run
* file-to-run overrides no-browser
* kernels start in the notebook dir, rather than the Server's cwd
* notebook dir is validated, and created if it doesn't exist (only if parent exists, like ~all other such things)

closes #1985
closes #1980
2012-06-20 13:06:30 -07:00
Bussonnier Matthias
f200bd0392 Merge pull request #1974 from Carreau/notebook-path-completion
Allow path completion on notebook.
add slash (/) for unix,  backslash (\) and colon (:) for windows
as authorized characters in completions.
2012-06-19 23:42:32 -07:00
MinRK
d72d3f7e30 add tests for notebook_dir validation 2012-06-19 20:55:25 -07:00
MinRK
61bbd632ef use shutdown_kernel instead of hard kill in notebook 2012-06-18 18:08:37 -07:00
MinRK
20f5c1b0cf enable graceful restart of kernels in notebook 2012-06-18 17:52:37 -07:00
MinRK
0fba6618cd create notebook-dir if it doesn't exist
closes #1980
2012-06-18 15:37:44 -07:00
Min RK
e97f84acd8 Merge pull request #1970 from minrk/resize
dblclick to restore resized images
2012-06-18 14:34:19 -07:00
Min RK
c797237e59 Merge pull request #1978 from kinverarity1/dot_truncation
Notebook names were truncating at the first period
2012-06-17 22:13:06 -07:00
Kent Inverarity
25ffbd89e0 change to minrk's suggestion from mailing list 2012-06-18 14:32:45 +09:30
Min RK
137f4cb441 Merge pull request #1825 from minrk/elide2
second attempt at scrolled long output

Some amount of CSS tweaking will probably want to be done before 0.13 final,
but this is good enough for beta.

closes #1553
2012-06-17 20:36:16 -07:00
Kent Inverarity
ef162c6d5c Fix nb name truncating at first period in filename 2012-06-18 10:35:16 +09:30
Fernando Perez
f52a1f689c Merge pull request #1934 from minrk/cellmd
Cell/Worksheet metadata

* metadata dicts are attached to cells and worksheets
* restores collapsed flag to the nbformat - this change happened in the refactor, and was undocumented, and possibly accidental.  But we should either document it or fix it, and this includes a fix.
* adds a new field, `nbformat_minor`, used to denote minor bumps of the notebook format that expose new capabilities but don't prevent loading by older clients.
* Add a warning in Javascript if loading a multiworksheet notebook (which will exist in the future) as current JS code will only save the first.


closes #1915
2012-06-17 17:21:35 -07:00
MinRK
18bb591723 add future-warning about multiple notebooks 2012-06-17 16:26:10 -07:00
Matthias BUSSONNIER
0161c55594 Allow path completion on notebook.
add -(dash) /(slash) \(antislash for windows) : (colon) ~(tilde)
as part of words symbol for notebook completer to help for path
completion

Fixes #1969
2012-06-17 13:37:55 +02:00
MinRK
9963980f37 use chained delay for setting resizable images 2012-06-16 21:20:04 -07:00
MinRK
e04fd13086 dblclick to restore size of images 2012-06-15 14:51:08 -07:00
Min RK
643837dff3 Merge pull request #1965 from ivanov/fix-1678
fix for #1678, undo no longer clears cells

With these changes, Ctrl-Z inside of codemirror cells will only undo up to the text that was in the cell when it was loaded from JSON.

closes #1678
2012-06-15 13:44:15 -07:00
Min RK
5a57dc5a1a Merge pull request #1952 from minrk/wsclose
avoid duplicate "Websockets closed" dialog on ws close
2012-06-15 01:54:04 -07:00
Paul Ivanov
ad07d0cf44 fix for #1678, undo no longer clears cells
I found another bug where switching the cell type causes the loss of all
undo history for that cell. With this commit, switching the cell type
simply resets the history
2012-06-14 17:36:34 -07:00
MinRK
c20b2e1056 slightly more subtle prompt overlay 2012-06-14 11:46:35 -07:00
MinRK
fa55ba2b43 fix margin typo on output prompt 2012-06-14 11:45:01 -07:00
MinRK
654fed95be avoid double websocket-close message 2012-06-13 14:52:39 -07:00