Commit Graph

71 Commits

Author SHA1 Message Date
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
Thomas Kluyver
d4532983f4 Convert print statements to print function calls
libmodernize.fixes.fix_print
2013-10-29 09:14:15 -07:00
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
2013-10-28 11:07:24 -07:00
Thomas Kluyver
daf15735bd Merge pull request #4428 from minrk/tornado-3.1
bump minimum tornado version to 3.1.0
2013-10-23 14:36:25 -07:00
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.
2013-10-23 14:04:35 -07:00
MinRK
79a7b1e421 fix tornado log propagation
in the notebook
2013-10-23 12:01:45 -07:00
Paul Ivanov
641fdc77a7 include the # of active kernels in server info 2013-10-23 11:03:11 -07:00
MinRK
a45e997176 don't warn when open_browser and not file_to_run 2013-10-22 09:54:28 -07:00
MinRK
18022a7db8 don't relay notebook dir to kernel from command-line 2013-10-21 20:34:05 -07:00
MinRK
bf58dddf26 single warning message for bad startup notebook 2013-10-20 14:13:38 -07:00
MinRK
714afa7b0f fix initial-file opening in the notebook 2013-10-17 14:09:20 -07:00
MinRK
ac5434efba properly hook up tornado loggers 2013-10-17 14:09:15 -07:00
MinRK
16e8d0ff43 adjust definition of 'path' in notebooks
never includes leading or trailing '/'
2013-10-17 14:09:13 -07:00
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
2013-10-17 14:09:10 -07:00
Paul Ivanov
f517d44d4b removing contents changes from this PR 2013-10-17 14:09:10 -07:00
Zachary Sailer
2372628552 entry from command line to notebook 2013-10-17 14:09:07 -07:00
Zachary Sailer
91f25dc046 add contents web service api 2013-10-17 14:09:05 -07:00
Zachary Sailer
f998dae05f manual rebase notebookapp.py 2013-10-17 14:07:49 -07:00
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
2013-09-30 11:20:42 -07:00
MinRK
cb953bfcc7 limit random ports to positive values 2013-09-30 11:14:34 -07:00
MinRK
eae0cc7e77 s/nb_extensions/nbextensions 2013-09-26 17:07:38 -07:00
MinRK
06b2fdc076 serve local mathjax from nb_extensions 2013-09-26 17:07:37 -07:00
MinRK
84e2384acf s/js_extensions/nb_extensions 2013-09-26 17:07:37 -07:00
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.
2013-09-25 16:24:40 -07:00
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.
2013-09-18 16:12:00 -07:00
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.
2013-08-23 09:17:35 +02:00