Min RK
e4e1d47203
Merge pull request #6694 from takluyver/config-rest-api
...
Add REST API for retrieving, storing and updating config
11 years ago
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
11 years ago
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)
11 years ago
Min RK
19bcc5fed9
bump minimum tornado version to 4.0
...
remove various websocket workaround for tornado 3
11 years ago
Thomas Kluyver
a76a546627
Add REST API for retrieving, storing and updating config
11 years ago
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.
11 years ago
Scott Sanderson
cd1304961f
DEV: Support for configurable list of extra jinja template directories.
11 years ago
Thomas Kluyver
4025b57ed8
Only display terminals in dashboard if terminals are available
11 years ago
Thomas Kluyver
9c0084e615
Multiple terminals and conditional initialisation
11 years ago
Thomas Kluyver
d211ebf067
Basic infrastructure for terminal page
11 years ago
MinRK
868994087f
finish up FilesHandler
...
- load FilesHandler like everything else
- remove copy/paste leftovers
11 years ago
Manuel Riel
2b4cbbfea2
add new FilesHandler to serve files from ContentsManager.
11 years ago
MinRK
84a72ae87a
use app name on tornado log statements
...
avoids mixture of 'tornado.access' and 'NotebookApp'
11 years ago
Matthias Bussonnier
9155675440
drop more 2.6 hacks
11 years ago
Min RK
bfdb098d76
Merge pull request #6495 from Carreau/expandpath
...
Expand user home path in template search path.
12 years ago
MinRK
979b8dd9db
actually use new tornado_settings
...
instead of deprecated webapp_settings
12 years ago
Matthias BUSSONNIER
9d58482944
Expand user home path in template search path.
...
cause that pretty much always what you want to do if you have a `~` ina
path.
12 years ago
MinRK
d65244d34c
rename webapp_settings to tornado_settings
...
deprecate `webapp_settings`
More informative name to those who would actually use this feature.
It sets overrides for the tornado global `settings` object.
12 years ago
MinRK
379374b5d9
make the default url customizable
...
this is the page redirected to from `/`,
which defaults to `/tree`.
also changes the redirect code to 302 from 301,
which should cause less grumbling about caching.
12 years ago
Thomas Kluyver
4db6295fba
Merge pull request #6249 from minrk/always-https-mathjax
...
always use HTTPS getting mathjax from CDN
12 years ago
MinRK
b47ddffd42
always use HTTPS getting mathjax from CDN
12 years ago
MinRK
3e79eea46b
update contents per further review
...
- fix is_hidden always returning True on nonexistent files
- create hidden dir fails with 400
- don't read binary files twice
- logging improvements
- dialog on invalid notebook upload
- warn about disabled `--save`
12 years ago
MinRK
6cce477e07
rename notebooks service to contents service
...
minimal functional changes, committing because tests are passing.
12 years ago
MinRK
579f5101f0
restore websocket_url configurable
...
allows ws to be handled via separate proxies,
as appears to be the case on OpenShift and some other hosting services.
12 years ago
Min RK
70bc0704c2
Merge pull request #6099 from takluyver/check-nbservers-pid
...
Check process existence when listing nbserver processes
12 years ago
MinRK
792f21be5a
remove rackcdn https workaround for mathjax cdn
...
cdn.mathjax.org works over https now
12 years ago
Thomas Kluyver
806432072a
Add kernel name to sessions REST API
...
Also, some refactoring so that the relationship between session, kernels
and notebooks is managed in the SessionManager, not in the HTTP
handlers.
12 years ago
MinRK
55f455ab55
only set allow_origin_pat if defined
...
fixes the default behavior to be as intended (require Origin == Host)
12 years ago
Thomas Kluyver
2bcbd3c5cb
Check for pids when listing nbserver processes
12 years ago
Min RK
7af9f5f1f8
Merge pull request #6061 from minrk/cors
...
make CORS configurable
12 years ago
MinRK
0d9ba93307
persist notebook server cookie secret in security dir
...
prevents loss of login after relaunching the notebook server
closes #6075
12 years ago
MinRK
1edc97e34a
s/cors_/allow_/
...
add notes about Tornado 4, and comments, updates per review
12 years ago
MinRK
2460879e81
Remove a sleep no longer needed with the current base zmq version
12 years ago
MinRK
acf0da01d9
make CORS configurable
...
allows setting CORS headers.
- cors_origin sets Access-Control-Allow-Origin directly
- cors_origin_pat allows setting Access-Control-Allow-Origin via regular expression, since the header spec itself doesn’t support complex access[1]
- cors_credentials sets Access-Control-Allow-Credentials: true
To allow CORS from everywhere:
ipython notebook —NotebookApp.cors_origin='*'
12 years ago
MinRK
78a8cb877f
remove KernelApp.parent_appname
...
This allowed the Kernel to load config from ipython_qtconsole_config.py
or ipython_notebook_config.py, depending on the parent that started the kernel.
This is of limited usefulness, and can add weird, unexpected side effects.
12 years ago
Thomas Kluyver
f6628b7006
Refactor kernelspec resource handler to separate URL prefix
12 years ago
Thomas Kluyver
02fa348c69
Create REST API for kernel specs
12 years ago
MinRK
f75d9be34f
make the various manager classes in the notebook app configurable
...
like NotebookManager already was
12 years ago
Thomas Kluyver
b80466ca8b
Merge pull request #5667 from minrk/no-log-date
...
use tornado logging in NotebookApp
12 years ago
MinRK
50aa2b3c23
refuse to start if `--pylab` is given
12 years ago
MinRK
9484864828
informative warning on `ipython notebook --pylab`
...
and remove the unused kernel flags
12 years ago
MinRK
c90df1d694
disable specifying kernel args on the notebook command-line
...
this is deprecated in 2.0, and will be removed in 3.0
12 years ago
MinRK
914de94fe7
use tornado logging in NotebookApp
...
- remove date, only log time
- shorter prefix
- colored output
- just seems nicer
12 years ago
MinRK
5078049a08
use 'localhost' as default for the notebook server
...
instead of loopback IP
seems to workaround weird issues with Sophos on Windows,
and should behave the same everywhere else.
12 years ago
MinRK
551f534d92
add missing `browser` to notebook_aliases list
12 years ago
Renaud Richardet
13c6303010
do not shutdown notebook if 'n' is part of answer
...
this prevents commands like 'yesn' to shut down the notebook server
12 years ago
Thomas Kluyver
b878696a95
Fix starting notebook server with file/directory at command line.
...
The base class implementation of parse_command_line uses update_config,
which ensures that the change event fires for the config traitlet. This
copies that.
Closes gh-5460
12 years ago
MinRK
f9758dd453
add NotebookNotary to NotebookApp's class list
...
adds it to help output and config files
12 years ago
MinRK
bb7f27541f
write config instead of direct assignment from the command-line
...
Gross.
12 years ago
MinRK
6e09314027
fixup positional arg parsing in notebook app
...
- `ipnb .` triggers override of sub-config, even when the parent isn't changed
- `ipnb /path/nb.ipynb` sets notebook_dir to `/path`
12 years ago
Min RK
c73acb300f
Merge pull request #5200 from Carreau/jinja-no-cache
...
Allow to pass option to jinja env
12 years ago
Matthias BUSSONNIER
816df5bb34
Allow to pass option to jinja env
...
Mainly to pass cache_size=-1 while developping not to cache templates
12 years ago
MinRK
386274488d
don't create notebook_dir if it doesn't exist
12 years ago
MinRK
d37780c6a6
use config instead of App.instance to propagate notebook_dir
...
Should behave more logically (I hope).
12 years ago
MinRK
cb25736a24
reorganize who knows what about paths
...
- add NotebookApp.notebook_dir
- add KernelManager.root_dir
- remove NotebookManager.notebook_dir, move to FileNBM.notebook_dir
Default value for KM.root_dir and fNBM.notebook_dir is NotebookApp.notebook_dir, but they can be configured separately.
SessionManager passes the API path to KernelManager,
which is responsible for turning it into the kernel's cwd.
12 years ago
MinRK
37cb0fbdee
remove websocket url
...
websockets should follow the kernel URL
(normal behavior is unchanged, only unused configurability is removed)
12 years ago
MinRK
a184724bdb
remove base_kernel_url
12 years ago
MinRK
e1e0b19a6a
s/base_project_url/base_url/
...
deprecate NotebookApp.base_project_url
12 years ago
MinRK
c2cb64c9a0
adjustments to notebook app logging
...
Mainly add a log_request function (from nbviewer) for formatting tornado access logs.
Relevant effects:
- demote successful access logs to DEBUG
- demote kernel connect messages to DEBUG
which reduces the noise at INFO-level (default)
12 years ago
Matthias Bussonnier
0ec0534ce9
Merge pull request #4796 from minrk/update-components
...
update components
closes #4765
12 years ago
Thomas Kluyver
3673bc6305
Merge pull request #4788 from minrk/warn-pylab-notebook
...
warn when notebook is started in pylab mode
12 years ago
Min RK
ec77ad18b7
Merge pull request #4772 from takluyver/nbserver-files
...
Notebook server info files
12 years ago
Thomas Kluyver
fcb21fed17
Make names in JSON more consistent as per @ellisonbg's suggestion.
12 years ago
Thomas Kluyver
e932429762
Command line entry point to list running notebook servers
12 years ago
MinRK
063bfa9688
we don't bundle lessc anymore, remove its vestiges
12 years ago
MinRK
a485df87eb
mention that `ipython notebook --pylab` will be disabled
12 years ago
MinRK
db4c814812
warn when notebook is started in pylab mode
...
because it is always a bad idea
12 years ago
Thomas Kluyver
15f94953bb
Fix writing server info files on Python 2
12 years ago
Thomas Kluyver
71902059d3
Write notebook server info file in security directory
12 years ago
MinRK
b62da23660
render custom HTML for error pages
12 years ago
Thomas Kluyver
30e8939a27
Separate listing nbconvert exporters to /api/nbconvert
12 years ago
Thomas Kluyver
7655ce579e
Add HTTP handlers for nbconvert
12 years ago
MinRK
24e5153246
fix warning condition on notebook startup
...
should have only warned if file_to_run is defined *and* it's outside the notebook_dir,
but warning was shown even if it was not specified.
12 years ago
Thomas Kluyver
d4532983f4
Convert print statements to print function calls
...
libmodernize.fixes.fix_print
12 years ago
Paul Ivanov
f04eca3ddd
remove monkey patch for older versions of tornado
...
Since we now depend on Tornado >= 3.1, this code path is no longer
necessary
12 years ago
Thomas Kluyver
daf15735bd
Merge pull request #4428 from minrk/tornado-3.1
...
bump minimum tornado version to 3.1.0
12 years ago
MinRK
6fa13ebb98
bump minimum tornado version to 3.1.0
...
The no-hidden behavior of the files handler
already requires this, but instead of raising, it just doesn't hide hidden files.
Bumping the minimum version also allows much cleaner static file handler subclasses.
12 years ago
MinRK
79a7b1e421
fix tornado log propagation
...
in the notebook
12 years ago
Paul Ivanov
641fdc77a7
include the # of active kernels in server info
12 years ago
MinRK
a45e997176
don't warn when open_browser and not file_to_run
12 years ago
MinRK
18022a7db8
don't relay notebook dir to kernel from command-line
12 years ago
MinRK
bf58dddf26
single warning message for bad startup notebook
12 years ago
MinRK
714afa7b0f
fix initial-file opening in the notebook
12 years ago
MinRK
ac5434efba
properly hook up tornado loggers
12 years ago
MinRK
16e8d0ff43
adjust definition of 'path' in notebooks
...
never includes leading or trailing '/'
12 years ago
Zachary Sailer
04c6a3cfac
refactoring of nbmanager and filenbmanager
...
major clean up of the two managers. We make sure to follow
the standard models described in IPEP 16
12 years ago
Paul Ivanov
f517d44d4b
removing contents changes from this PR
12 years ago
Zachary Sailer
2372628552
entry from command line to notebook
12 years ago
Zachary Sailer
91f25dc046
add contents web service api
12 years ago
Zachary Sailer
f998dae05f
manual rebase notebookapp.py
12 years ago
MinRK
4d48a84c8b
catch EACCES when binding notebook app
...
can come up for low ports on *ix, or user access control restrictions on Windows.
closes #4308
12 years ago
MinRK
cb953bfcc7
limit random ports to positive values
12 years ago
MinRK
eae0cc7e77
s/nb_extensions/nbextensions
13 years ago
MinRK
06b2fdc076
serve local mathjax from nb_extensions
13 years ago
MinRK
84e2384acf
s/js_extensions/nb_extensions
13 years ago
MinRK
c85292cf2e
add js_extensions_path
...
serves files in `IPYTHONDIR/js_extensions` at `/js_extensions`.
This is a location for users / devs to drop-in frontend customization as js modules, css, etc.
The model is very much like the extensions dir (hence the name) - it's a location made available, but not loaded by default. You can load things from there with require, etc.
It's a configurable search path, just like static. This way we can define a system-wide location at a later point (/usr/share/ipython/js_extensions?) and still have user installs.
13 years ago
MinRK
c8cea9d807
avoid executing code in utils.localinterfaces at import time
...
moves away from global constants to utility functions.
The code is still only executed once,
but instead of at import time, it is executed at first request.
13 years ago
MinRK
bce60e1be7
pass profile-dir instead of profile to Kernel
...
avoids relative path issues for local profiles
when the notebook server starts in a different directory
from the kernels.
13 years ago
Matt Henderson
b7ed106d11
must...bring...back...comma
13 years ago
Matt Henderson
af03eb6d1b
Modified initial template_path to pickup any overridden value by the user
13 years ago