Commit Graph

1137 Commits

Author SHA1 Message Date
Min RK
40fb853bc7 Merge pull request #2775 from ellisonbg/kernelid
General cleanup of kernel manager code.

This does some general cleanup of MultiKernelManager to better reflect how it is actually being used.

Sometimes there is a need to create kernel_id's elsewhere in code.  This minor change allows a kernel_id to be created outside of the MultiKernelManager and passed in as a kwarg.  An exception is raised if the id is already used.

Tasks:

- [x] Fix cleanup of ipc files.
- [x] Allow kernel_id to be passed to MultiKernelManager.start_kernel.
- [x] Add ipc support to MultiKernelManager.
- [x] Add more tests for MultiKernelManager.
- [x] Rename sub channel to iopub channel everywhere.
- [x] Use consistent naming for all channel classes in zmq, inprocess and qt.
- [x] Move BlockingChannelMixin to zmq.blockingkernelmanager.
- [x] Create ABC for KernelManager.
- [x] Make the InProcessKernelManager a Configurable.
- [x] Cleanup docstrings in ABCs.
- [x] Add tests for KernelManager.
- [x] Check over MultiKernelManager.
- [x] Make KernelManager,kill_kernel private in ABC and implementations.
- [x] Find bug that is causing the kernel manager tests to hang unless the shell channel linger is set to 0.
- [x] Decide about critical logging in ipkernel.
- [x] Debug lack of stderr redirect in tests.
2013-01-17 22:06:47 -08:00
Brian E. Granger
0fb34356a3 Fixing last few things with the test suite for kernel managers. 2013-01-16 21:12:09 -08:00
Brian E. Granger
deb05ec4a2 Make KernelManager.kill_kernel private.
* kill_kernel -> _kill_kernel.
* Removed it from the ABC and implementations where approp.
2013-01-16 19:45:27 -08:00
Min RK
def9d4c51e Merge pull request #2796 from kmike/cookie-fix
py3k: fix unicode/bytes cookie parsing under Python 3.x
2013-01-16 16:51:20 -08:00
Brian Granger
b7dd63d720 Creating an ABC for kernel managers and channels. 2013-01-16 14:53:34 -08:00
Brian E. Granger
2900b67ff3 Adding calls to shell_channel.stop() to shutdown.
But this hangs the test suite for IPython.frontend.html.notebook.
2013-01-16 13:58:29 -08:00
Brian E. Granger
afaad23a57 Adding tested ipc support to MultiKernelManager. 2013-01-16 13:58:28 -08:00
Brian E. Granger
64bec56589 Refactoring kernel_died method to make subclass friendly. 2013-01-16 13:58:28 -08:00
Brian E. Granger
f37d707c08 Creating application.config attribute.
This creates less coupling between the handlers and the outer
IPython application.
2013-01-16 13:58:28 -08:00
Brian E. Granger
ac1a8b0458 Removing return value of restart_kernel.
The kernel_id is *always* the same under a restart and there
is no need to return it. The restart handler does pass
the original kernel_id back to the browser as it currently uses it.
2013-01-16 13:58:28 -08:00
Brian E. Granger
82f4cf5574 General cleanup of kernelmanger.MultiKernelManager. 2013-01-16 13:58:27 -08:00
Brian E. Granger
ea2dc2ecd5 Allow caller of MultiKernelManager.start_kernel to pass kernel_id. 2013-01-16 13:58:27 -08:00
Mikhail Korobov
57cecc70c2 P3K: fix cookie parsing under Python 3.x (+ duplicate import is removed) 2013-01-17 02:51:06 +06:00
Brian E. Granger
4fadfecbb7 Merge pull request #2724 from pberkes/embedded-ipython-v2
In-process kernel support (take 3)
2013-01-16 12:32:21 -08:00
Brian E. Granger
eff5fa878d Merge pull request #2687 from Carreau/metaui-slideshow
[WIP] Metaui slideshow
2013-01-15 15:12:28 -08:00
Matthias BUSSONNIER
3e60977364 load slideshow by default 2013-01-15 21:05:17 +01:00
debjan
47466fb8ea Chrome frame awareness 2013-01-15 03:21:22 +01:00
Matthias BUSSONNIER
7163dc717f Uppercase and update path 2013-01-14 22:23:23 +01:00
Matthias BUSSONNIER
94279745b9 Change Slide denomination
> Slide
> Subslide
> Fragment
> Skip
> Notes
2013-01-14 21:35:56 +01:00
Matthias BUSSONNIER
705081cc04 add slideshow extension/preset for celltoolbar 2013-01-14 21:26:08 +01:00
Matthias BUSSONNIER
3e52d29b61 fix example.js 2013-01-14 19:28:04 +01:00
Matthias BUSSONNIER
7401054c94 Capitalize 2013-01-14 19:10:55 +01:00
Matthias BUSSONNIER
33b810fe53 fix celltoolbar select css 2013-01-14 08:48:38 +01:00
Matthias BUSSONNIER
4e20188968 Load default.js (for celltoolbar) by default
And change text.
2013-01-14 08:42:10 +01:00
Matthias BUSSONNIER
4e3f8edb88 add default celltoolbar UI 2013-01-14 08:40:58 +01:00
Matthias BUSSONNIER
69859c1057 change set_preset to activate_preset
update docs
2013-01-14 08:40:57 +01:00
Matthias BUSSONNIER
f76279d858 remove commented css 2013-01-14 08:40:57 +01:00
Matthias BUSSONNIER
28e90b40d2 fix lock cell button
'flase' is true while false is false
2013-01-14 08:40:57 +01:00
Matthias BUSSONNIER
c236253e80 change - to Hidden 2013-01-14 08:40:57 +01:00
Matthias BUSSONNIER
eb5911a3c1 create celltoolbar in cell.js and inherit 2013-01-14 08:40:57 +01:00
Matthias BUSSONNIER
08225b2ed4 slightly generalize utils generator 2013-01-14 08:40:57 +01:00
Matthias BUSSONNIER
8b7db8d6da remove useless jquery selector 2013-01-14 08:40:57 +01:00
Matthias BUSSONNIER
f88001f481 fix css size 2013-01-14 08:40:57 +01:00
Matthias BUSSONNIER
1e4eb5c527 do not use alert on invalid json 2013-01-14 08:40:56 +01:00
Matthias BUSSONNIER
ffa1cf20a3 remove relative position 2013-01-14 08:40:56 +01:00
Matthias BUSSONNIER
4b957111ed remove most of the duplicate example 2013-01-14 08:40:56 +01:00
Matthias BUSSONNIER
a16c361a4b rename _button_list to _ui_controls_list 2013-01-14 08:40:56 +01:00
Matthias BUSSONNIER
c313127651 rename file metaui->celltoolbar 2013-01-14 08:40:56 +01:00
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
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
mr.Shu
5df5cc8035 added blockquote CSS 2012-12-31 11:45:29 +01:00