Commit Graph

860 Commits

Author SHA1 Message Date
Brian Granger
e4489da763 Initial work to add Wijmo based menu. 2012-01-17 18:27:45 -08:00
Paul Ivanov
9e475c3dc5 set auto_create flag for notebook apps 2012-01-10 16:52:07 -08:00
Matthias BUSSONNIER
096ba3fcc4 fix weird magic completion
should fix #1243

handle magic as a special case, but the completer should be moved in it's
own clase for 0.13
2012-01-08 16:39:11 +01:00
Min RK
e4beaf0a73 Merge pull request #1211 from minrk/localfiles
Files in notebook-dir are served by the nbserver as `files/<relativepath>`.
2012-01-06 02:00:14 -08:00
Min RK
7be995118d Merge pull request #1224 from minrk/dblclick
* edit text cells on double-click instead of single-click
* render text cells on unselect instead of focusout.
  Only renders when selecting another cell, and prevents rendering when 
  switching applications/windows/tabs.
2012-01-06 01:59:02 -08:00
Fernando Perez
a2bb278c3a Merge pull request #1187 from minrk/nbshutdown
Notebook cleanups and fixes: connection file cleanup, first heartbeat, startup flush.

Kernels would not linger, but the KernelManagers are not garbage-collected on shutdown.  This means that connection files for kernels still running at notebook shutdown would not be removed.

Now, kernels are explicitly killed at server shutdown, allowing the KernelManagers to cleanup files.

Small changes along the way:

* disables the unnecessary (and actively detrimental) SIGINT handler inherited from the original copy/paste from the qt app.
* put webapp initialization in `init_webapp` out of `initialize`, to preserve convention of there being no unique code in `initialize()`.
* don't warn about http on all interfaces if running in 100% read-only mode, because no login or execution is possible.

Closes #1232.
2012-01-05 22:00:51 -08:00
MinRK
87877e9a7f explicit for-loop in cleanup_kernels
makes single-iteration clearer than while loop, as reviewed by @fperez.
2012-01-05 21:53:34 -08:00
MinRK
1385ef8ebb log heartbeat failure in notebook 2012-01-05 21:12:58 -08:00
MinRK
655bf1bacc prevent delayed heartbeat from starting on closed sessions 2012-01-05 20:05:32 -08:00
MinRK
2c8106bf42 trigger textcell render on unselect instead of focusout 2012-01-05 19:20:17 -08:00
MinRK
5cce816d2a edit text cells on double-click instead of single-click
Single-click to edit gets in the way of using interactive elements (e.g. non-flash videos),
and select/copy of the rendered HTML.  Switching to double-click makes the edit action more intentional.
2012-01-05 19:12:44 -08:00
Fernando Perez
289b3808f7 Merge pull request #1129 from takluyver/unified-setup
Unify the setup.py file for Python 2 and Python 3.
2012-01-04 18:28:07 -08:00
Thomas Kluyver
75ec655663 Remove separate setup.py file for Python 3. 2012-01-04 21:51:54 +00:00
Thomas Kluyver
914d61f1bd Make single setup script work on Python 2 and Python 3. 2012-01-04 21:51:24 +00:00
MinRK
1d65883212 serve local files as files/foo 2012-01-03 11:40:15 -08:00
MinRK
ba5e2538b5 use absolute URLs for static files 2012-01-03 11:37:15 -08:00
MinRK
d67865c73c authenticate local file access
adds AuthenticatedFileHandler, which extends StaticFileHandler with
a simple authentication check before providing access to files local
to the notebook dir.
2012-01-03 11:30:00 -08:00
MinRK
831fb175f8 serve files in notebook-dir as local/foo 2012-01-03 11:30:00 -08:00
MinRK
7691f4f9fc store nonexistent prompt number as null 2011-12-24 10:59:17 -08:00
MinRK
220a5f0664 don't preserve fixConsole output in json 2011-12-24 10:45:47 -08:00
MinRK
15ca2aaa20 add first_beat delay to notebook heartbeats
Heartbeats start immediately, causing false heart failures on slow systems that can take a while to start kernel subprocesses.

Also adds a 'flush' to the heartbeat callback (just like in IPython.parallel), to protect against server load being detected as heart failures.
2011-12-22 22:45:44 -08:00
MinRK
13fc7e5c41 cleanup connection files on notebook shutdown
Kernels would not linger, but the KernelManagers are not garbage-collected on shutdown.
This means that connection files for kernels still running at notebook shutdown would not be removed.

Also disable the unnecessary (and actively unhelpful) SIGINT handler inherited from the original
copy/paste from the qt app.
2011-12-20 12:32:08 -08:00
Fernando Perez
495aa29603 Merge branch 'notebook-examples'.
Clean up notebook examples directory and add introductory notebooks
for new users to learn the system.
2011-12-18 23:23:19 -08:00
Fernando Perez
d5ee46181c Add embedded video example by Chris Kees. 2011-12-18 23:20:13 -08:00
Fernando Perez
572e1eb56f Add message about how to stop the notebook. 2011-12-18 21:55:05 -08:00
Fernando Perez
46d4fc1cbc Add introductory 'tour' illustrative notebook. 2011-12-18 19:58:56 -08:00
MinRK
602d2ec18a fix IOPub parent checking in notebook
prevented 'dead kernel' messages from arriving.
2011-12-18 18:21:47 -08:00
Fernando Perez
31ecae535b Merge pull request #1096 from bfroehle/1094
Show constructor docstrings in notebook tooltip.

Closes #1094.
2011-12-18 15:24:34 -08:00
Bradley M. Froehle
930ba99b19 Show class init and call tooltips in notebook.
Closes #1094.
2011-12-18 12:36:38 -08:00
Fernando Perez
e98c8f7fd0 Merge pull request #1168 from fperez/nbscript
Add --script/--no-script flags as shorthands for the NotebookManager.save_script option.
2011-12-17 18:27:03 -08:00
Fernando Perez
7c7a48e2ce Define flags in application that's going to use them. 2011-12-17 18:12:41 -08:00
Fernando Perez
b3d5732690 Fix typo in help string 2011-12-17 14:31:33 -08:00
Fernando Perez
fd485e23fc Add --script flag as shorthand for the script autosave notebook option. 2011-12-17 13:38:52 -08:00
Fernando Perez
93399b6b83 Merge pull request #1079 from stefanv/htmlnotebook_login_button
Login/out button cleanups:

- Display a login button when viewing the notebook in read-only mode.
- On the login page, focus on the password field by default.
- Correctly style login / logout buttons.
- In read-only mode, redirect to "/" after logout, not "/login".
2011-12-13 18:23:56 -08:00
Stefan van der Walt
6a8a66fa8b Correctly set read_only meta name for use in javascript. Note that this has a different meaning than in the Python code: not whether the read-only flag was specified upon launch, but whether the notebook is in read-only mode and input should be disabled. 2011-12-13 18:02:17 -08:00
Stefan van der Walt
4476c69984 Hide top login/logout buttons on login/logout pages. 2011-12-13 17:44:29 -08:00
Stefan van der Walt
52a2f081fe Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates. 2011-12-13 17:22:13 -08:00
Stefan van der Walt
3bf57a7f5d Improve three-state read-only logic. 2011-12-13 16:15:20 -08:00
Stefan van der Walt
23ff0c2f88 On the login page, focus on the password field. 2011-12-13 16:13:34 -08:00
Stefan van der Walt
06d34fea72 Redirect to front page upon read-only logout. 2011-12-13 16:13:34 -08:00
Stefan van der Walt
ec89b7c98b Display login button in read-only mode. 2011-12-13 16:13:34 -08:00
Fernando Perez
b98a86f818 Merge pull request #1146 from minrk/savescript
Allow saving notebook.py next to notebook.ipynb.  This allows notebooks to be imported or %run via their .py companion file.
2011-12-12 22:38:45 -08:00
MinRK
dca65fa91d include error in 'Unexpected error' message. 2011-12-12 21:09:42 -08:00
MinRK
6947e47822 Merge PR #1132
Improve read-only style

closes #1132
2011-12-12 15:19:04 -08:00
MinRK
218a88a47b move drag_info show/hide to page.ready, to avoid flouc 2011-12-12 15:17:20 -08:00
MinRK
103f76563d Merge PR #1125
Adds IP[y]: Notebook header image and link, instead of plain text.

closes #1125
2011-12-12 15:05:39 -08:00
Matthias BUSSONNIER
c6457428c8 notebook : update logo
Change Notebook logo to IP[y]:Notebook
    Make it clickable to return to the dashboard
    Thanks to @MinRK for the css.

    closes #607

    png logo is 48px high (2x display), for balance of
    browser display / zoomed appearance.
2011-12-12 15:03:38 -08:00
MinRK
a8425e5c62 Merge PR 1135
settings for tornado web application can now be specified via the
NotebookApp.webapp_settings configurable.  This principally allows
users/admins to serve custom templates, css, and javascript, without
having to modify IPython's shipped sources.

closes #1135
2011-12-12 14:17:07 -08:00
MinRK
88340d682c update iptest exclusions with recent changes 2011-12-12 11:47:51 -08:00
Matthias BUSSONNIER
16946ef7bb unhide on not read-only instead of inverse 2011-12-11 13:02:13 +01:00