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.
2014-07-22 14:43:40 -07:00
Min RK
70bc0704c2
Merge pull request #6099 from takluyver/check-nbservers-pid
...
Check process existence when listing nbserver processes
2014-07-20 13:20:48 -07:00
MinRK
792f21be5a
remove rackcdn https workaround for mathjax cdn
...
cdn.mathjax.org works over https now
2014-07-14 15:55:36 -07:00
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.
2014-07-10 23:50:00 -05:00
MinRK
55f455ab55
only set allow_origin_pat if defined
...
fixes the default behavior to be as intended (require Origin == Host)
2014-07-09 16:25:36 -05:00
Thomas Kluyver
2bcbd3c5cb
Check for pids when listing nbserver processes
2014-07-09 00:03:16 -05:00
Min RK
7af9f5f1f8
Merge pull request #6061 from minrk/cors
...
make CORS configurable
2014-07-06 22:57:12 -05:00
MinRK
0d9ba93307
persist notebook server cookie secret in security dir
...
prevents loss of login after relaunching the notebook server
closes #6075
2014-07-06 22:21:59 -05:00
MinRK
1edc97e34a
s/cors_/allow_/
...
add notes about Tornado 4, and comments, updates per review
2014-06-30 10:40:31 -07:00
MinRK
2460879e81
Remove a sleep no longer needed with the current base zmq version
2014-06-27 17:53:14 -07:00
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='*'
2014-06-27 17:47:56 -07:00
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.
2014-06-26 16:28:32 -07:00
Thomas Kluyver
f6628b7006
Refactor kernelspec resource handler to separate URL prefix
2014-05-10 12:22:20 -07:00
Thomas Kluyver
02fa348c69
Create REST API for kernel specs
2014-05-08 16:18:23 -07:00
MinRK
f75d9be34f
make the various manager classes in the notebook app configurable
...
like NotebookManager already was
2014-04-22 14:50:51 -07:00
Thomas Kluyver
b80466ca8b
Merge pull request #5667 from minrk/no-log-date
...
use tornado logging in NotebookApp
2014-04-21 15:56:23 -07:00
MinRK
50aa2b3c23
refuse to start if --pylab
is given
2014-04-20 10:48:26 -07:00
MinRK
9484864828
informative warning on ipython notebook --pylab
...
and remove the unused kernel flags
2014-04-19 12:59:13 -07:00
MinRK
c90df1d694
disable specifying kernel args on the notebook command-line
...
this is deprecated in 2.0, and will be removed in 3.0
2014-04-19 12:58:32 -07:00
MinRK
914de94fe7
use tornado logging in NotebookApp
...
- remove date, only log time
- shorter prefix
- colored output
- just seems nicer
2014-04-18 12:52:47 -07:00
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.
2014-04-17 12:01:55 -07:00
MinRK
551f534d92
add missing browser
to notebook_aliases list
2014-04-11 11:25:31 -07:00
Renaud Richardet
13c6303010
do not shutdown notebook if 'n' is part of answer
...
this prevents commands like 'yesn' to shut down the notebook server
2014-04-07 11:17:11 +02:00
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
2014-03-28 11:51:21 -07:00
MinRK
f9758dd453
add NotebookNotary to NotebookApp's class list
...
adds it to help output and config files
2014-03-10 15:21:11 -07:00
MinRK
bb7f27541f
write config instead of direct assignment from the command-line
...
Gross.
2014-02-24 15:48:43 -08:00
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`
2014-02-24 15:42:49 -08:00
Min RK
c73acb300f
Merge pull request #5200 from Carreau/jinja-no-cache
...
Allow to pass option to jinja env
2014-02-23 22:15:29 -08:00
Matthias BUSSONNIER
816df5bb34
Allow to pass option to jinja env
...
Mainly to pass cache_size=-1 while developping not to cache templates
2014-02-23 23:28:57 +01:00
MinRK
386274488d
don't create notebook_dir if it doesn't exist
2014-02-21 13:22:57 -08:00
MinRK
d37780c6a6
use config instead of App.instance to propagate notebook_dir
...
Should behave more logically (I hope).
2014-02-21 13:22:57 -08:00
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.
2014-02-21 13:22:56 -08:00
MinRK
37cb0fbdee
remove websocket url
...
websockets should follow the kernel URL
(normal behavior is unchanged, only unused configurability is removed)
2014-02-20 22:54:36 -08:00
MinRK
a184724bdb
remove base_kernel_url
2014-02-11 21:26:10 -08:00
MinRK
e1e0b19a6a
s/base_project_url/base_url/
...
deprecate NotebookApp.base_project_url
2014-02-08 23:09:24 -08:00
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)
2014-01-21 10:48:24 -08:00
Matthias Bussonnier
0ec0534ce9
Merge pull request #4796 from minrk/update-components
...
update components
closes #4765
2014-01-16 09:53:07 -08:00
Thomas Kluyver
3673bc6305
Merge pull request #4788 from minrk/warn-pylab-notebook
...
warn when notebook is started in pylab mode
2014-01-13 17:04:20 -08:00
Min RK
ec77ad18b7
Merge pull request #4772 from takluyver/nbserver-files
...
Notebook server info files
2014-01-13 16:57:48 -08:00
Thomas Kluyver
fcb21fed17
Make names in JSON more consistent as per @ellisonbg's suggestion.
2014-01-13 16:25:39 -08:00
Thomas Kluyver
e932429762
Command line entry point to list running notebook servers
2014-01-13 16:22:43 -08:00
MinRK
063bfa9688
we don't bundle lessc anymore, remove its vestiges
2014-01-13 16:17:50 -08:00
MinRK
a485df87eb
mention that ipython notebook --pylab
will be disabled
2014-01-13 15:19:13 -08:00
MinRK
db4c814812
warn when notebook is started in pylab mode
...
because it is always a bad idea
2014-01-12 11:43:02 -08:00
Thomas Kluyver
15f94953bb
Fix writing server info files on Python 2
2014-01-08 17:56:12 -08:00
Thomas Kluyver
71902059d3
Write notebook server info file in security directory
2014-01-08 13:02:36 -08:00
MinRK
b62da23660
render custom HTML for error pages
2013-12-22 17:46:41 -08:00
Thomas Kluyver
30e8939a27
Separate listing nbconvert exporters to /api/nbconvert
2013-12-13 14:46:51 -08:00
Thomas Kluyver
7655ce579e
Add HTTP handlers for nbconvert
2013-12-13 14:46:50 -08:00
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.
2013-11-15 10:35:34 -08:00