Commit Graph

153 Commits

Author SHA1 Message Date
Min RK
809e79b6e4 bump pyzmq version dependency to 13
pyzmq < 13 doesn't work with tornado >= 3, which we also require.

This results in clearer error messages when pyzmq is too old.
2015-02-05 14:16:48 -08:00
Min RK
2b44652957 Add KernelSpecManager.whitelist
set of allowed kernels by name

Mainly useful for excluding the 'native' python2/3 kernel,
but it's generic.
2015-02-02 17:01:08 -08:00
Min RK
cc84f1d783 ensure default_url includes base_url 2015-01-27 10:39:33 -08:00
Min RK
3ce0206a1f promote "no terminals" message to warn
except on Windows, where it's demoted to debug
2015-01-16 19:08:22 -08:00
Min RK
f3da69c38d allow system-wide paths for nbextensions
like kernel specs, default install is `/usr/local/share/jupyter/nbextensions`

add `--user` for .ipython/nbextensions path
2015-01-09 14:15:31 -08:00
Scott Sanderson
acf011bd9c DEV: Tweaks to Login/LogoutHandler setup.
- Require handlers to be tornado.web.RequestHandlers.  Rename the
- NotebookApp attributes from log{in,out}_handler to log{in,out}_handler_class.
2014-12-19 00:52:21 -05:00
Scott Sanderson
8e2286911d DEV: Set klass=object for Log{in,out}Handler.
It seems plausible that people will implement custom handlers that
aren't subclasses of a known type.

Another possible option would be `IPythonHandler`, but even that feels
too restrictive.
2014-12-18 01:59:19 -05:00
Scott Sanderson
0953de3432 MAINT: Remove unused imports.
I was in the neighborhood...
2014-12-18 01:59:19 -05:00
Scott Sanderson
8ab449cd9a MAINT: Use Type instead of DottedObjectName Log{in,out}Handler. 2014-12-18 01:59:19 -05:00
Scott Sanderson
23b3a332f9 MAINT: Use Type instead of DottedObjectName for managers.
`Type` is strictly more powerful than `DottedObjectName` and is easier
for users to override.
2014-12-18 01:59:19 -05:00
Thomas Kluyver
0f2f14556c Note that extension API is experimental 2014-12-11 11:52:24 -08:00
Thomas Kluyver
7e7d3d1f25 Rename extensions -> server_extensions 2014-12-11 11:50:36 -08:00
Thomas Kluyver
e86d80e84a Add support for notebook server extensions
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
files for use by the nbextension part.
2014-12-11 11:50:36 -08:00
Thomas Kluyver
4c62fd4210 Merge pull request #7149 from minrk/thread-nb
run test notebook server in thread
2014-12-10 10:06:02 -08:00
MinRK
1ec9cfc25c use IOLoop.current in a few places
better allow notebook server to run in a thread
2014-12-08 15:47:56 -08:00
Min RK
8c2ced501d address review in custom auth 2014-12-08 10:51:14 -08:00
Min RK
c71d4162e3 make logout_handler overridable 2014-12-07 14:46:00 -08:00
Phil Elson
d81990c941 Added authentication configuration for the notebook app. 2014-12-07 14:10:52 -08:00
Thomas Kluyver
11f089aedb Handle nbserver info files without pid, from IPython 2.x
Fixes takluyver/nbopen#9
2014-12-06 14:24:21 -08:00
Kyle Kelley
7fb8cd94ec Load the security service handlers.
Conflicts:
	IPython/html/notebookapp.py
2014-12-02 15:12:13 -06:00
Min RK
9a4de7b78d Merge pull request #7041 from takluyver/nbconfig-manager
ConfigManager class for frontend config
2014-12-01 11:32:09 -08:00
Min RK
f15727f6f6 Merge pull request #7032 from minrk/require-url-arg
add '?v=<date>' to require URLs
2014-11-27 13:13:14 -08:00
Thomas Kluyver
98cd14c04c Remove profile_dir from handler class 2014-11-25 18:10:14 -08:00
Thomas Kluyver
febd670716 First stab at ConfigManager class 2014-11-25 18:02:24 -08:00
Min RK
cf91873644 Merge pull request #6866 from takluyver/nb-texteditor
Notebook text editor
2014-11-25 10:30:41 -08:00
Min RK
c15aee36d4 Merge pull request #6969 from Carreau/ksmc
kernel_spec_manager configurable
2014-11-25 10:28:45 -08:00
Thomas Kluyver
011beaa385 Rename texteditor files & folders to edit 2014-11-25 10:07:52 -08:00
Bussonnier Matthias
12525ec706 Make KernelSpecManager configurable
Closes #6968
2014-11-25 13:52:10 +01:00
Min RK
3cf5262b0c don't cache files in static/custom or nbextensions
always rely on 304 for cache content there
2014-11-24 21:29:45 -08:00
Min RK
a492ac554d add '?v=<date>' to require URLs
- resets cache on server restart
- don't cache requests on master (rely on 304 for content caching)
2014-11-24 20:58:04 -08:00
Thomas Kluyver
e6935d47c0 Basic infrastructure for new texteditor component 2014-11-20 11:51:30 -08:00
Thomas Kluyver
6d776a5292 Allow starting the server with both file_to_run and notebook_dir
file_to_run and notebook_dir would collide, with possible dictionary
ordering randomness depending on how they were passed.

With this change, the default value of notebook_dir is pulled from
file_to_run, instead of pushing the value when file_to_run is changed.
This makes it possible to specify both and have the server behave as
expected.
2014-11-18 17:41:21 -08:00
Min RK
1914e27cff Don't pass IPython-specific args to non-IPython kernels
add a few FIXME notes that the IPython-kernel special treatment
will probably want to be removed in the Jupyter explosion.
2014-11-17 11:17:08 -08:00
Min RK
48d77b3f03 Merge pull request #6886 from minrk/tornado-4
require tornado 4
2014-11-13 12:23:32 -08:00
Min RK
e4e1d47203 Merge pull request #6694 from takluyver/config-rest-api
Add REST API for retrieving, storing and updating config
2014-11-12 21:40:30 -08:00
Min RK
39041a9f03 address review in contents service
- various docstrings, comments clarified and updated
- misc typos
- fix and test creating an untitled directory via POST
- only define `message` if there's something to say
2014-11-10 14:02:21 -08:00
MinRK
3ada0c2c27 Remove separate 'path', 'name' in Contents API
- path is full path (including name)
- name is only used for read-only convenience, and plays no role in any API
- remove 'untitled upload' (POST with content and no path)
2014-11-10 14:02:18 -08:00
Min RK
19bcc5fed9 bump minimum tornado version to 4.0
remove various websocket workaround for tornado 3
2014-11-07 22:39:25 -08:00
Thomas Kluyver
a76a546627 Add REST API for retrieving, storing and updating config 2014-11-06 11:18:04 -08:00
Scott Sanderson
c1196da096 DEV: Add IPython.html to the default template path.
This makes it possible to override a file with a template that also
inherits from that file.

For example, this makes it possible to override a single block of
notebook.html by creating a file called notebook.html that inherits from
templates/notebook.html.
2014-11-05 13:29:31 -05:00
Scott Sanderson
cd1304961f DEV: Support for configurable list of extra jinja template directories. 2014-11-05 00:19:17 -05:00
Thomas Kluyver
4025b57ed8 Only display terminals in dashboard if terminals are available 2014-10-31 15:56:53 -07:00
Thomas Kluyver
9c0084e615 Multiple terminals and conditional initialisation 2014-10-25 17:14:40 -07:00
Thomas Kluyver
d211ebf067 Basic infrastructure for terminal page 2014-10-25 17:14:39 -07:00
MinRK
868994087f finish up FilesHandler
- load FilesHandler like everything else
- remove copy/paste leftovers
2014-10-16 09:26:27 -07:00
Manuel Riel
2b4cbbfea2 add new FilesHandler to serve files from ContentsManager. 2014-10-05 13:37:24 +02:00
MinRK
84a72ae87a use app name on tornado log statements
avoids mixture of 'tornado.access' and 'NotebookApp'
2014-10-03 11:07:36 -07:00
Matthias Bussonnier
9155675440 drop more 2.6 hacks 2014-09-29 14:40:13 +02:00
Min RK
bfdb098d76 Merge pull request #6495 from Carreau/expandpath
Expand user home path in template search path.
2014-09-22 13:40:05 -07:00
MinRK
979b8dd9db actually use new tornado_settings
instead of deprecated webapp_settings
2014-09-21 12:44:45 -07:00