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