Use the frontend config system more in its place. The services/config module has grown a ConfigWithDefaults class which matches up config loaded from the server with defaults in the JS code.
There's some ugliness still to sort out w…
Another alternative to #6966 and #7124, after discussion with @minrk .
This version will look for kernelspecs in {sys.prefix}/share/jupyter/kernels (N.B. now jupyter instead of IPython), but it doesn't provide a mechanism to put ker…
Since gh-7009, pager_page is now the function that may actually launch external pagers. By replacing page(), we were hiding some bugs, as in gh-7166.
initialising it in the widget's __init__ might be overkill but seemed safer.
ref: PR #7129
With this change, we look in three types of location for kernelspecs:
%PROGRAMDATA% on Windows, /usr and /usr/local on Unix). This is for kernels installed with non-Python tools, like apt or executable i…Should fix Windows Python 2 test failures
Requested by @fperez .
with open('/path/to/some.ipynb') as f:
nbformat.read(f, as_version=4)
# Can now be written:
nbformat.read('/path/to/some.ipynb', as_version=4)
And likewise for write().
This shoul…
The kernel 'channels' system had grown into a horribly tangled thicket of multiple inheritance code, using inheritance for three orthogonal differences: channel kind, blocking vs Qt, and ZMQ vs in-process. This is my attempt to trim it i…
Because from IPython.html.services.config import ConfigManager is long enough.
As some people may be tiring of my pointing out, it seems strange that we have extension points for the JS and the kernel, but none for the notebook server.
For cite2c, I want to add a handler which can serve a directory of style file…
The contents manager is responsible for providing an API path where kernels can start. The base implementation always gives the empty string, causing kernels to be launched in the same directory as the server. FileContentsManager gives t…
Until #7007 is merged/decided upon, this is necessary for our Docker builds. Otherwise we get a warning about being on the latest and greatest version of less.:
Running setup.py install for ipython
Traceb...
Closes issue #4728.
Thanks to @y-p for tracking down an obscure problem.
This specifies the template names in the exporter class, rather than getting them from the module names, which seemed a bit too magical. This continues #4724, which I made from my master branch by accident. The problems @damianavila note…
This specifies the template names in the exporter class, rather than getting them from the module names, which seemed a bit too magical.
Also, the latex templates got renamed from latex/latex_foo.tplx to latex/foo.tplx.
At pres…
Our code already doesn't call this hook (as pointed out in gh-4709), and probably hasn't for some time, so it seems ~no-one is relying on it. We have much more powerful APIs to do the same thing.
Supersedes & closes #4582.
Doing %hist -f foo from any of the two process frontends is currently broken on Python 2 because it expects to write unicode, but the raw history is stored as byte strings. This decodes the code at the `ip…