Thomas Kluyver
4dd8efd043
Merge pull request #7160 from minrk/toolbar-layout
...
remove references to defunct layout_manager in ToolBar
11 years ago
Jonathan Frederic
88d8d85987
Another widget promise bug fix
11 years ago
Jonathan Frederic
51fc7241da
Another widget promise bug fix
11 years ago
Jonathan Frederic
73637fb694
Merge pull request #7097 from jasongrout/widget-visibility
...
Expand the semantics of the widget visible attribute to allow for visibility: hidden
11 years ago
Jonathan Frederic
4842d48ace
invoke css
11 years ago
Jonathan Frederic
bdb0e9dd7a
Move header styles into base less
11 years ago
Jonathan Frederic
d58d3a65a3
invoke css
11 years ago
Jonathan Frederic
f497d06d0c
Avoid using important
11 years ago
Min RK
73c33f402c
remove references to defunct layout_manager in ToolBar
11 years ago
Thomas Kluyver
4c62fd4210
Merge pull request #7149 from minrk/thread-nb
...
run test notebook server in thread
11 years ago
Jonathan Frederic
095d8b2feb
Merge pull request #7143 from jasongrout/viewlist-promises
...
Update viewlists to store a list of promises for views
11 years ago
Jason Grout
967d83104f
Missing return
...
Thanks to @jdfreder for catching this in review!
11 years ago
Matthias Bussonnier
912c4bb683
adresses Min comments
11 years ago
Matthias Bussonnier
47822187c1
Fix typos, rephrase english. Thanks Kyle.
11 years ago
Matthias BUSSONNIER
4239dc03f3
load the per kernel kernel.js and kernel.css
...
As per discussion, each kernel can provide a file name kernel.js that
we try to load at kernel switching. If such a file exist we assume that
the kernel pathches the javasscript and that this javascript cannot be
unpatched, and further switching of the kernel cannot be undone without
reloading the page. (separate PR for UI)
if a kernel provide kernel.js, the it should consist into a AMD module
definition that uses require.js the module shoudl define a function name
`onload` that will be called at the appropriate moment before the kernel
starts.
11 years ago
Min RK
99bac366af
Merge pull request #7140 from quantopian/validate-contents
...
DEV: Validate models returned from ContentsManager methods.
11 years ago
Jonathan Frederic
1c499334c7
Merge pull request #7146 from jdfreder/interact-fix
...
Fix Dropdown widget page scroll issue
11 years ago
Jonathan Frederic
3ea8929b82
Merge pull request #6454 from jasongrout/links
...
Javascript link
11 years ago
Scott Sanderson
2216b9522c
DEV: Tweaks from PR feedback.
...
- Reformat expected keys for in `validate_model`.
- Require `'mimetype'` to be non-None only when the model being
validated is a file.
- Add more information to the error when keys are unexpectedly non-None.
11 years ago
Min RK
e890122c3e
Merge pull request #6537 from takluyver/kernelspec-logos
...
Initial support for supplying kernel logos in kernel spec
11 years ago
Min RK
7d465c7e96
Merge pull request #7139 from jdfreder/widget-space-fix
...
Fix padding of widgets.
11 years ago
Scott Sanderson
70eb9e219f
DOC: Add docstring for validate_model.
11 years ago
Scott Sanderson
a45b8a0c67
DEV: Validate models returned from ContentsManager methods.
11 years ago
Jonathan Frederic
bf18e09521
invoke css
11 years ago
Jonathan Frederic
b29d81ee23
Add LESS that enables meta-p printing
11 years ago
Min RK
22e206de6f
ContentsManager type kwarg to match model key
...
remove `_` suffix, making it consistent with models,
REST API, etc.
11 years ago
Jason Grout
8cf5972f57
Add the unlink method to javascript links to maintain compatibility with traitlet links
11 years ago
Jason Grout
4496bfc6bd
Fix a bug in using promises with comms: this -> that
11 years ago
Jonathan Frederic
cecf05efb2
Fix bug where selection box modification would cause page to scroll to the top
11 years ago
Thomas Kluyver
3e2f6dba98
logo-64 -> logo-64x64
11 years ago
Thomas Kluyver
4cee2f5f3a
Merge pull request #7128 from minrk/more-v-less-m
...
A little more V, a little less M in the text editor
11 years ago
Thomas Kluyver
7cc07251e4
Use double resolution logo to support hires displays
11 years ago
Jason Grout
49541066f1
Update viewlists to store a list of promises for views
11 years ago
Min RK
615ff9f138
Merge pull request #6789 from jdfreder/persistence2
...
Widget persistence API
11 years ago
Thomas Kluyver
cad0c32137
Hide kernel logo if it's missing
11 years ago
Thomas Kluyver
f123b0d2ad
Initial support for supplying kernel logos in kernel spec
11 years ago
Jonathan Frederic
2cc041444a
Explicit 2.5px
11 years ago
Jonathan Frederic
cf9b092013
Use once instead of on
11 years ago
Matthias Bussonnier
134488637c
Merge pull request #6977 from minrk/finish-5384
...
Add authentication configuration
11 years ago
Thomas Kluyver
9f48e86477
Merge pull request #7136 from minrk/octet-stream
...
set default mimetype to octet-stream for binary files
11 years ago
Jonathan Frederic
cb12229480
Fix padding of widgets.
11 years ago
Jonathan Frederic
52c8f14223
Added changes discussed with @jasongrout
11 years ago
Jonathan Frederic
152982efcd
Updated comments to new style.
11 years ago
Jonathan Frederic
0978065269
Remove view.show
11 years ago
Jonathan Frederic
a56a6f5657
Document set_state_callbacks and,
...
make load_state callback support promises.
11 years ago
Jonathan Frederic
0c737867fe
Rebase fixes
11 years ago
Jonathan Frederic
16e3bad23f
Address @jasongrout 's review comments, take 2
11 years ago
Jonathan Frederic
5d4b83ba4a
Add an event that fires before the notebook saves
11 years ago
Jonathan Frederic
71d2d47036
Fix, only return views that are direct children of the cell
11 years ago
Jonathan Frederic
a53f4cc9dd
Log save state callback failures
11 years ago
Jonathan Frederic
db62a210e7
Another that = this
11 years ago
Jonathan Frederic
f060947eb9
This, that, and the other thing
11 years ago
Jonathan Frederic
8a5770b811
Add convenience API
11 years ago
Jonathan Frederic
e02a5ec201
Promises...
11 years ago
Jonathan Frederic
d466601dbb
Persistence API,
...
This is a combination of 10 commits.
Enable widget instanciation from front-end.
Address @minrk 's review comments.
Make API that allows users to persist widget state easily.
Added support for view persistence
Started adding support for model persistence.
Half way there!
Finished persistence API.
Move persistence code into the widget framework.
Fin.
Bug fixes
11 years ago
Scott Sanderson
ccc8cb9cbf
Minor cleanups in the contents API.
...
Noticed while poking around with a linter enabled.
11 years ago
Min RK
f0181836b2
run test server in thread
...
instead of subprocess
11 years ago
MinRK
1ec9cfc25c
use IOLoop.current in a few places
...
better allow notebook server to run in a thread
11 years ago
Min RK
407e63cb80
set default mimetype to octet-stream for binary files
...
mimetype only specified if content=True
11 years ago
Nathan Heijermans
4925ea3e44
Fixed inverted logic caused by renaming variables.
11 years ago
Nathan Heijermans
4440337711
Removed keyboard shortcut.
11 years ago
Min RK
6c4f8de34a
wrap lines by default
...
because long lines are not handled well
11 years ago
Thomas Kluyver
8160308bb2
Merge pull request #7120 from Carreau/fix-widget-load
...
lazy load widgets
11 years ago
Min RK
1e5bd77bda
s/mode/language/
...
for user-facing CodeMirror mode (hover text, language menu)
11 years ago
Min RK
c81609f5d6
redirect /edit/ to /files/ if not (utf8) text
11 years ago
Min RK
85fb8e1085
use $.map for setting cm options
11 years ago
Min RK
8c2ced501d
address review in custom auth
11 years ago
Min RK
c71d4162e3
make logout_handler overridable
11 years ago
Min RK
dbb5e9a107
allow LoginHandler to override get_current_user
11 years ago
Min RK
bb01b716e0
allow login_handler to be undefined
...
(for use outside IPython)
11 years ago
Min RK
16d1f0fd84
update custom auth per review
...
- pass settings around, not applications
11 years ago
Phil Elson
d81990c941
Added authentication configuration for the notebook app.
11 years ago
Min RK
7ede5e291f
update mode on rename
11 years ago
Min RK
03779746ab
Toggle line numbers in menu
...
use 'Toggle' text, instead of switching between Show/Hide
11 years ago
Min RK
0b8920193f
add Mode menu to editor
11 years ago
Min RK
a53d467243
update edit page blocks after layout changes
11 years ago
Min RK
0cc0dead5d
add File/Rename
11 years ago
Min RK
d6282035fa
add save widget to text editor
11 years ago
Min RK
c58070a702
make savewidget css a little more generic
...
- use classes instead of IDs
- use .filename instead of #notebook_name
11 years ago
Min RK
0dfcc1b512
expect JSON reply to save
11 years ago
Min RK
c238553a4e
set application/json on contents model replies
11 years ago
Min RK
2452c0c2f7
checkpoint
11 years ago
Min RK
928c81df9d
setting an option to null sets the default in CodeMirror
...
matching the unset behavior in config
11 years ago
Min RK
c8a1f06179
fixup keyMap
11 years ago
Min RK
54324633ca
fixup
11 years ago
Min RK
0c42d3659e
add File/New in editor
11 years ago
Min RK
ab7b35afdb
link to /edit/ on files
11 years ago
Min RK
85b6b280b2
allow selecting codemirror keymap in menu
11 years ago
Min RK
9a504dd7c3
basic LESS for editor
11 years ago
Min RK
776c9a0316
track dirty state in editor for onbeforeunload
11 years ago
Min RK
0efd335553
editor progress
...
- load/store codemirror config
- fill out menus a bit:
- Edit/find,replace
- View/toggle line numbers
11 years ago
Min RK
ee00dcf083
docstring
11 years ago
Min RK
f2343e4ec5
update `--script` behavior to use `nbconvert --to script`
11 years ago
Min RK
1731b9b449
`--script` triggers post_save hook with nbconvert
11 years ago
Min RK
58c0a97ec3
add pre/post-save hooks
...
- `ContentsManager.pre_save_hook` runs on the path and model with content
- `FileContentsManager.post_save_hook` runs on the filesystem path and model without content
- use pre_save_hook for things like stripping output
- use post_save_hook for things like nbconvert --to python
11 years ago
Min RK
0b46e2aff2
remove some custom css
...
mainly in navbars, where we were doing custom
things that bootstrap already did with classes.
This did require the removal of multiple class LESS inheritance for
navbar buttons, because it doesn't work properly. Seems like a LESS bug, but I'm not sure.
11 years ago
Thomas Kluyver
11f089aedb
Handle nbserver info files without pid, from IPython 2.x
...
Fixes takluyver/nbopen#9
11 years ago
Bussonnier Matthias
affdb6a8ff
fix test
11 years ago
Nicholas Bollweg (Nick)
d3601f90ef
checking in css
11 years ago
Nicholas Bollweg (Nick)
c72ad2754c
more fidgeting before starting over
11 years ago
Nicholas Bollweg (Nick)
5858350cc3
handling explicitly provided modes from kernelspec.language_info
11 years ago
Nicholas Bollweg (Nick)
eef949eda9
fixing tests
11 years ago
Nicholas Bollweg (Nick)
8f5b447eaf
removing monkeypatch, importing rest of codemirror default theme
11 years ago
Nicholas Bollweg (Nick)
68c4714338
using codemirror mode/meta for detection
11 years ago
Nathan Heijermans
8d5cc15ea1
Merge remote-tracking branch 'upstream/master'
11 years ago
Nathan Heijermans
4617afdb13
Increased notification message display time.
11 years ago
Nathan Heijermans
7bb61cc34b
Updated terminology to match the console/qtconsole
...
config settings and documentation more closely.
Unsolicited messages => output from other clients.
11 years ago
Matthias Bussonnier
a9fffc41ab
Merge pull request #6950 from minrk/new-new-dropdown
...
Add kernel-select dropdown to new notebook button
11 years ago
Thomas Kluyver
615f5dd13a
Merge pull request #7118 from minrk/script-dispatch
...
Dispatch to custom exporter in ScriptExporter
11 years ago
Min RK
93bbf6d52e
remove nbconvert_exporter handling from frontend
...
dispatch happens in the script exporter,
frontend doesn't need to know about it anymore.
11 years ago
Min RK
befb16ebe3
Merge pull request #6948 from bollwyvl/graceful-mathjax-widgets
...
Ignore failure of widget MathJax typesetting
11 years ago
Min RK
b10ebdad4b
s/current_selection/default_kernel/
11 years ago
Min RK
6a1cebe4c0
minor reflow of tree header
...
- remove absolutely positioned text (absolute text doesn't wrap correctly)
- associate hidden upload directly with 'click here' via span
- remove column split, rely on regular reflow
11 years ago
Min RK
371b031f40
informative hover text for current selection
11 years ago
Min RK
d1bda196b7
remove some weird tabs
...
How did they get there? We may never know...
11 years ago
Min RK
fbaae651ad
remove UI for setting default kernel
...
can be set with:
IPython.new_notebook_widget.set_default_kernel('kernel_name')
11 years ago
Min RK
8eb6ec00d8
store current kernel selection in frontend config
...
instead of localStorage
11 years ago
Min RK
11ef669ec6
kernelspecs is a dict
...
sort menus client-side
11 years ago
Min RK
d9767e8c94
separate selecting default kernel from new notebook with specified kernel
...
adds checkmark to indicate selection
11 years ago
Min RK
0cfd8731a0
include current kernel name in new notebook dropdown
11 years ago
Min RK
d312486840
Add kernel-select dropdown to new notebook button
...
most recent choice is remembered in localStorage
11 years ago
Min RK
f94e482478
handle undefined settings in promising_ajax
11 years ago
Min RK
4fc163812a
change kernel spec placeholder name to 'Kernel'
11 years ago
Min RK
696394e27d
allow kernel_name to be specified in url parameter
11 years ago
Min RK
9e809126e4
add utils.get_url_param
...
I really cannot believe that we need to write this ourselves
11 years ago
Thomas Kluyver
c3cb2164f6
Clear output after replacing cell contents
11 years ago
Thomas Kluyver
90817ccb1f
Machinery to replace the current cell instead of adding a new one
11 years ago
Matthias Bussonnier
b12ac2cb15
Merge pull request #7011 from jdfreder/killthelayout
...
Kill the layout manager
11 years ago
Jonathan Frederic
e519371402
Merge pull request #7093 from jasongrout/model-views
...
Make the model.views dict a dict of promises for views
11 years ago
Kyle Kelley
dbf11e02fd
Merge pull request #7107 from jdfreder/import_warning
...
Add warning to widget namespace import.
11 years ago
Jonathan Frederic
5e7d1cfa9f
Add dark lower border to pager handle
11 years ago
Nicholas Bollweg (Nick)
83757b6a0e
moving typeset to utils, usage in cell and outputarea
11 years ago
Jonathan Frederic
e7330f5e22
Address @carreau 's review comments
11 years ago
Jonathan Frederic
80bfe779f5
Add warning to widget namespace import.
11 years ago
Jason Grout
9ca509d915
Merge remote-tracking branch 'public-upstream/master' into links-rebase
...
Conflicts:
examples/Interactive Widgets/Widget Events.ipynb
11 years ago
Nicholas Bollweg (Nick)
c95a9aaf80
accept node or selection
11 years ago
Nicholas Bollweg (Nick)
b17a40d950
moving typeset to DOMWidgetView
11 years ago
Nicholas Bollweg (Nick)
57f05c4a2b
reversing order of arguments, as text may already exist
11 years ago
Nicholas Bollweg (Nick)
00fc31b0a8
also setting text in widget.typset
11 years ago
Nicholas Bollweg (Nick)
9cd878cf0f
moving, checking MathJax typesetting to WidgetView
...
widget rendering should not fail hard if MathJax is not available
11 years ago
Matthias Bussonnier
de52775797
Merge pull request #7078 from takluyver/kernelpath
...
Rework get_kernel_path logic
11 years ago
Jason Grout
155381072c
Make the favicon a template block
11 years ago
Jason Grout
26bec1ad36
Add None as a widget visible value to allow for visiblity: hidden
...
Now, visible can have three values:
* True - show the widget
* False - hide the widget and collapse the empty space
* None - hide the widget and show the empty space
11 years ago
Nathan Heijermans
441d2a2ab0
Merge remote-tracking branch 'upstream/master'
11 years ago
Jonathan Frederic
c0f01d65e8
Increase pager handle size.
11 years ago
Jonathan Frederic
ebb6e818a7
Fix, prevent notebook from having its height set on pager display
11 years ago
Jonathan Frederic
e79a43e867
Fix scroll/resize handle missing behavior.
11 years ago
Jonathan Frederic
a7d54cd512
Fix scrolling for large outputs
11 years ago
Jonathan Frederic
353a9afd34
Kill the layout manager
11 years ago
Jonathan Frederic
5a9e4d7986
Manual fixes
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
Nathan Heijermans
69ea433450
Merge remote-tracking branch 'upstream/master'
11 years ago
Jason Grout
13c1b95fbd
Make the model.views dict a dict of promises for views
...
Otherwise, there is a race condition where the model doesn't know about views until they are actually created.
11 years ago
Jonathan Frederic
2969de609d
Selection test fix
11 years ago
Jonathan Frederic
91524a1379
Merge pull request #7057 from Carreau/jsdoc
...
Move js doc into function themselves.
11 years ago
Nathan Heijermans
9c2afc9620
This feature was discussed in #6123 , but it doesn't look like anything was ever incorporated into the IPython Notebook.
...
Here's a brief overview of the changes:
- Display of messages from other clients can be toggled on and off from within a notebook, either using the ``<M-m>e`` keyboard shortcut in the web UI, or through the option in the "Kernel" menu.
- notebook.js controls whether messages are displayed through a callback that is invoked from kernel.js when no callbacks are available for a message.
- The UI displays ``execute_input`` messages originating from an other clients in new cells at the end of the notebook. Output messages (``execute_result`` et al.) will only be displayed if a cell exists with a matching message ID.
Pending design questions:
- Should each ``execute_input`` message cause a new cell to be created?
- Should new cells be placed at the end of the notebook, or elsewhere? If the latter, what criteria should be followed?
11 years ago
Thomas Kluyver
3cad1f4b4d
Expose ConfigManager one level up the hierarchy
...
Because `from IPython.html.services.config import ConfigManager` is long
enough.
11 years ago
Min RK
6ba1584b4a
Merge pull request #7016 from rgbkrk/csp
...
Use Content Security Policies instead of X-Frame-Options
11 years ago
Jason Grout
63f8566c6f
Wait for any promises returned by a view's render method before considering the view created
...
This lets a view wait on children views to be created before considering itself created.
Thanks to @ssunkara for catching this.
11 years ago
Jonathan Frederic
22168a538e
Typo fix
11 years ago
Kyle Kelley
a6d3d6a93e
Log warning directly.
11 years ago
Kyle Kelley
858d153bff
Remove extraneous pass
...
YOU SHALL NOT PASS!
I rap fast like Shadowfax!
11 years ago
Kyle Kelley
7a48687929
Update CSP tests for new default.
11 years ago
Kyle Kelley
219ca3046a
Clean up default content security policy setup
11 years ago
Kyle Kelley
17d1c2d488
Report CSP violations as warnings.
11 years ago
Kyle Kelley
5343787e9d
Remove CSP reporting since it fills console.
11 years ago
Kyle Kelley
0c22c140c3
Turn x-frame-options tests into CSP tests
11 years ago
Kyle Kelley
392118d536
One unified CSP report URI
11 years ago
Kyle Kelley
5065429bfd
Clean up logs, enable debug log for header except
11 years ago
Kyle Kelley
bd85ff25df
Restrict frame-ancestors to 'self' in CSP
11 years ago
Kyle Kelley
7fb8cd94ec
Load the security service handlers.
...
Conflicts:
IPython/html/notebookapp.py
11 years ago
Kyle Kelley
3068733c46
Log reporter policy to debug
11 years ago
Kyle Kelley
cb19f07c9a
csp_report_uri caused a cyclic dependency
11 years ago
Kyle Kelley
5b53d2db45
Set default policy to nothing, only report.
11 years ago
Kyle Kelley
23b9f09177
Log CSP violations via report
11 years ago
Kyle Kelley
1f03954dd8
Handle CSP Reports
11 years ago
Kyle Kelley
a00d6930f2
Adapt headers to using Content Security Policy
11 years ago
Thomas Kluyver
d273b56044
Clean up get_kernel_path logic
11 years ago
Jonathan Frederic
01a6929c0d
Fix faulty interact tests
11 years ago
Jonathan Frederic
592112f0fa
Don't magically convert values to a list of tuples.
11 years ago
Kyle Kelley
a19f345170
Merge pull request #7007 from Carreau/less-update
...
Less update
11 years ago
Jonathan Frederic
c8ef47b03b
Fix readonly lock logic.
11 years ago
Thomas Kluyver
1929f5702c
Merge pull request #6945 from minrk/kernel-info-lang
...
fix loading of language name from kernel_info
11 years ago
Jonathan Frederic
139dca277b
Merge pull request #7059 from silviav12/widget_docstring
...
Add docstring documentation for widget_float
11 years ago
silviav12
a803717c5d
Removed the two empty lines of dosctring in widget_float.py.
11 years ago
Bussonnier Matthias
a2b35cb869
use less variable for rounded corner
...
and allow none in versions comparison
11 years ago
Min RK
0a36fb6cdc
Merge pull request #7068 from Carreau/close-pager
...
close pager on escape on command mode
11 years ago
Min RK
9a4de7b78d
Merge pull request #7041 from takluyver/nbconfig-manager
...
ConfigManager class for frontend config
11 years ago
Matthias Bussonnier
e1c4595743
Merge pull request #7070 from rgbkrk/pin_less_docker
...
Pin the version of less used in the Dockerfile
11 years ago
Thomas Kluyver
eb14a13843
Merge pull request #6991 from minrk/unhandled-types
...
Handle unrecognized output and cell types
11 years ago
Kyle Kelley
0bd8d84a6d
Update package name in error prompt.
11 years ago
silviav12
6b7399c8e6
Added changes to dosctring documentation in widget_float.py (previous docstring written by me).
...
Added docstring documentation in widget_bool.py.
11 years ago
Matthias Bussonnier
ed7bcb5359
close pager on escape on command mode
11 years ago
Osada Paranaliyanage
bc55f3c16e
Refresh terminal list. closes #7018 .
11 years ago
Min RK
88219df674
Preserve nbformat_minor from the future
...
warn on click of unrecognized elements, rather than on load.
11 years ago
Silvia
b41a9c9586
Add docstring documentation for widget_float
11 years ago
Matthias Bussonnier
684b31bea1
Merge pull request #6990 from jasongrout/viewlists
...
Refactor the do_diff and manual child view lists into a separate ViewList object
11 years ago
Matthias Bussonnier
480beffd7b
Move js donc into function themselves.
...
Then it is possible in the browser js console to get the documentation
interactively.
11 years ago
Matthias Bussonnier
0bb4e55ff6
Merge pull request #7055 from foogunlana/codemirror_bug_fix
...
Fixed the code mirror skipping Markdown cell bug
11 years ago
foogunlana
f0010c086d
Fixed code mirror bug for markdown cells
11 years ago
foogunlana
dbc98b5f69
Fixed code mirror skipping Markdown cell bug
11 years ago
Min RK
9067245c0b
Merge pull request #7033 from Carreau/fcell
...
get cell correctly in nested context
11 years ago
Matthias Bussonnier
d8a90257de
Merge pull request #7046 from quantopian/fix-history-undo-load
...
BUG: Prevent users from undoing the initial document load with CTRL-Z.
11 years ago
Matthias Bussonnier
fd2588612a
return API path instead of filesystem
11 years ago
Min RK
f15727f6f6
Merge pull request #7032 from minrk/require-url-arg
...
add '?v=<date>' to require URLs
11 years ago
Scott Sanderson
6a8dfa492e
BUG: Prevent users from undoing the initial document load with CTRL-Z.
...
Prior to this change, setting a document's initial content in the text
editor created a history entry, which meant that hitting CTRL-Z
repeatedly could clear the entire document. This change clears document
history after loading so that repeated CTRL-Z applications return the
document to its state at load time.
11 years ago
Jason Grout
3c98127f7c
remove obsolete optimization
11 years ago
Bussonnier Matthias
794ef18920
get cell correctly in nested context
...
fix some extensions like live_reveal
the .not('.cell .cell') part prevent the potential selection of DOM
elelment that would have the class cell from any output. In each branch
of the dom we thus select the first decendent node that have the class
'.cell'.
11 years ago
Thomas Kluyver
98cd14c04c
Remove profile_dir from handler class
11 years ago
Thomas Kluyver
f1295c6b8d
Add default for profile_dir
...
So ConfigManager is useful outside an IPython application
11 years ago
Thomas Kluyver
febd670716
First stab at ConfigManager class
11 years ago
Thomas Kluyver
a5e065328b
Extensions config for text editor
11 years ago
Thomas Kluyver
d64c6e5841
Load nbextensions from config
11 years ago
Jason Grout
e6a8ef00e0
Catch errors after our then()s, instead of in parallel with them (this missing exceptions)
...
When an error is thrown in a then() success handler, it doesn't call the same then()'s error handler.
I also made all of the utils.reject handlers verbose to aid in debugging.
11 years ago
Jason Grout
efe7098a60
Fix viewlist to use promises correctly
...
A viewlist wasn't getting properly populated before. This also switches the list update to use splice for in-place updates.
11 years ago
Min RK
cf91873644
Merge pull request #6866 from takluyver/nb-texteditor
...
Notebook text editor
11 years ago
Min RK
c15aee36d4
Merge pull request #6969 from Carreau/ksmc
...
kernel_spec_manager configurable
11 years ago
Thomas Kluyver
011beaa385
Rename texteditor files & folders to edit
11 years ago
Thomas Kluyver
6070f84c8d
/texteditor/ in URLs -> /edit/
11 years ago
Bussonnier Matthias
cc00d48b8c
Use map instead of hacking path to our need.
...
might help closing #7034
11 years ago
Bussonnier Matthias
12525ec706
Make KernelSpecManager configurable
...
Closes #6968
11 years ago
Min RK
3cf5262b0c
don't cache files in static/custom or nbextensions
...
always rely on 304 for cache content there
11 years ago
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)
11 years ago
MinRK
fe730a60c2
set no-cache header in StaticFileHandlers
...
rely on 304 Not Modified for caching content
11 years ago
Jason Grout
9553f30222
Update widget selection containers to reflect how viewlist works
...
add_child takes a model and returns a view. remove_child takes a view and removes it.
the pop_child_view method is now gone.
11 years ago
Jason Grout
247ebf16f0
Add comments emphasizing the order of steps in widget box remove() methods
11 years ago
Jason Grout
e7065d5a9f
Remove obsolete logic: storing references to child views in a view
...
Users are responsible for keeping track of views they create and removing them in a view's remove() method
11 years ago
Jason Grout
53472ba91b
reimplement the add/remove class logic to not use do_diff and remove do_diff
11 years ago
Min RK
18613d6554
add favicon
...
designed by @awantulok
11 years ago
Thomas Kluyver
99e6d35808
Fix variable name
11 years ago
Thomas Kluyver
694e32c938
Import Tuple traitlet for Selection widget
11 years ago
Jonathan Frederic
79fa062310
Make selection widget respect order.
11 years ago
Jonathan Frederic
52a0314719
Something
11 years ago
Jason Grout
1e8b2473b3
Merge branch 'viewlists' of https://github.com/jasongrout/ipython into viewlists
11 years ago
Thomas Kluyver
d9a374c473
Remove unused imports in editor notificationarea
11 years ago
Thomas Kluyver
f3db0ff7d4
Remove unused import of jquery
11 years ago
Min RK
535bbee883
Merge pull request #6978 from takluyver/nbconvert-script
...
Nbconvert to script for any kernel language
11 years ago
Kyle Kelley
6061ff914b
Merge pull request #7010 from quantopian/add-events
...
Add various events useful for third party integrations.
11 years ago
Scott Sanderson
4ed34d4f9d
DEV: Pass current cell to the execute cell event.
11 years ago
Thomas Kluyver
bc769d24f6
Add filename to header area
11 years ago
Matthias Bussonnier
5db4b7a8ee
Merge pull request #6668 from Carreau/actions
...
Add notion of action to keyboard manager.
11 years ago
Jason Grout
05d013db59
At least log an error if there is no create or remove defined.
...
We might just remove this...
11 years ago
Jason Grout
bc0cb3c8b5
Do something about do_diff being used for the class stuff in widgets
11 years ago
Jason Grout
88084db35d
Return the viewlist from the update promise so that you can use it immediately.
...
The pattern is:
viewlist.update(new_list).then(function(new_view_list) {
...
})
11 years ago
Scott Sanderson
16b9150151
DEV: Add various events.
11 years ago
Thomas Kluyver
8bfec5015b
Add the . into file_extension
11 years ago
Min RK
b54cc20357
use Jupyter logo in the notebook header
...
and favicon
11 years ago
Jonathan Frederic
d181172948
Implement view logic in selection containers.
11 years ago
Min RK
c72c637511
move language name, version into language_info
...
in kernel_info_reply
adds adaptation of language info to msgspec adapter
11 years ago
Min RK
4ec20d55da
fix loading of language name from kernel_info
...
language is langinfo.name, not langinfo.language
fixes highlighting for IJulia kernels
11 years ago
Thomas Kluyver
d567331d4d
Better way of saving through CodeMirror
...
This should support whatever keyboard shortcuts are configured for the
'save' command.
11 years ago
Thomas Kluyver
8dced9ab73
Styling to make it clearer where the editor is
11 years ago
Thomas Kluyver
be85a342cf
Set page title for editor
11 years ago
Thomas Kluyver
6419595371
Use NotificationArea in the text editor
11 years ago
Thomas Kluyver
88818dcfba
Override Ctrl-S shortcut to save text editor contents
11 years ago
Thomas Kluyver
1b612e178b
Update text editor for new contents API
11 years ago
Thomas Kluyver
c1d012d703
Enable codemirror search/replace shortcuts
11 years ago
Thomas Kluyver
59b13f2d08
Refactor editor into Editor class
11 years ago
Thomas Kluyver
f49bef7b0d
Saving files works
11 years ago
Thomas Kluyver
25ee73a554
Loading a file works
11 years ago
Thomas Kluyver
e6935d47c0
Basic infrastructure for new texteditor component
11 years ago
Jason Grout
307a320284
tweak documentation for viewlists
11 years ago
Min RK
837ef7f122
s/open_w/atomic_writing/
11 years ago
Min RK
c9a4e5b00d
handle various permission failures
...
- turn various EPERM, EACCES errors into 403
- add `writable` bool field to contents models
- if a notebook is not `writable`, save is disabled
11 years ago
Thomas Kluyver
f424dafeba
Merge pull request #6962 from takluyver/nb-dir-and-file-to-run
...
Allow starting the server with both file_to_run and notebook_dir
11 years ago
Jason Grout
93f658bc9b
Make a copy of the input list so that changes to the children list don't automagically change our reference list
11 years ago
Jason Grout
7658bab99f
Missing semicolon
11 years ago
Jason Grout
a6b901fdd3
Make state_change initialization more conventional
11 years ago
Jason Grout
0164fd32ca
Make error messages more consistent
11 years ago
Min RK
bb23105fdd
Handle unrecognized outputs and cells from the future
11 years ago
Jason Grout
88ed50afad
Refactor the do_diff and manual child view lists into a separate ViewList object
11 years ago
Bussonnier Matthias
907d70339e
some extra comma/semicolon cleanup
11 years ago
Bussonnier Matthias
ac355d757f
update to use event
11 years ago
Matthias Bussonnier
9ae62c21b8
Some cleanup unused code and missig use-strict
11 years ago
Jonathan Frederic
295050060e
Merge pull request #6988 from jasongrout/promises-again
...
Clean up promises code some more.
11 years ago
Min RK
7af86625af
Merge pull request #6982 from Carreau/ksm
...
fix clientside notebook manager and assume tree is dir by default
11 years ago
Min RK
a4aaf94cd6
Merge pull request #6987 from takluyver/i6983
...
Fix conversion of input area to stream output
11 years ago
Jason Grout
2b96a97118
Simplify error-handling code
...
Thanks to @jdfreder for this change.
11 years ago
Matthias Bussonnier
9caf579d8d
Merge pull request #6975 from minrk/rename-error
...
Don't dismiss rename dialog until rename is complete
11 years ago
Jason Grout
da8cab76dd
Clean up promises code some more.
11 years ago
Thomas Kluyver
5990012062
Fix conversion of input area to stream output
...
Closes gh-6983
11 years ago
Matthias Bussonnier
1b1d1f2325
fix clientside notebook manager and assume tree is dir by default
...
Assume tree url are dir by default instead of file, and if
not do a redirect. Usefull for Clientside manager where the server
does not know the content of the drive, and think that everythong exists.
11 years ago
Jason Grout
5a39c0c9bd
Use os.remove instead of shutil.rmtree if we try to remove a symbolic link
...
If we try to remove a symbolic link to a directory with shutil.rmtree, we get
the error “Cannot call rmtree on a symbolic link”
11 years ago
Thomas Kluyver
8252f56b00
Allow FileContentsManager and MappingKernelManager to be used outside NotebookApp
11 years ago
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.
11 years ago
Thomas Kluyver
58b0669b9b
Fix asyncy nbconvert to download
11 years ago
Thomas Kluyver
800e2ad25a
'Download as' script
11 years ago
Thomas Kluyver
2414db41e6
Merge pull request #6961 from minrk/profile-dir-no-3p
...
Don't pass IPython-specific args to non-IPython kernels
11 years ago
Min RK
c7ad3aa47d
Don't dismiss rename dialog until rename is complete
...
- draws error message in the same dialog,
rather than triggering a new dialog via events.
- `Notebook.rename` returns the contents Promise, rather than registering its own error handler.
11 years ago
Min RK
a62a9abdef
update MappingKernelManager module docstring
11 years ago
Min RK
da80d64e45
Merge pull request #6955 from Carreau/typeset
...
Actually typeset latex
11 years ago
Jonathan Frederic
2ef509e505
Add doc string to Output widget
11 years ago
Jonathan Frederic
7a3a9e74e9
Bug fix, typo
11 years ago
Jonathan Frederic
db2ef15b81
Address @carreau 's comments
11 years ago
Jonathan Frederic
36f0aabb86
active_output_areas (plural)
11 years ago
Jonathan Frederic
6f2e02b585
Pop output now removes a specific output
11 years ago
Jonathan Frederic
a12da7cee4
Added comment describing output area stack.
11 years ago
Jonathan Frederic
d033d6c1ea
Make output widget reactive.
11 years ago
Jonathan Frederic
a5779bcd0e
Output Widget
11 years ago
Matthias Bussonnier
4cd8ee3bb2
Merge pull request #6881 from jasongrout/template-blocks
...
Make favicon and logo images blocks in the template
11 years ago
Matthias Bussonnier
0ee990614d
Merge pull request #6923 from SylvainCorlay/toggle_button_tooltip
...
Tooltip on toggle button
11 years ago
Matthias Bussonnier
fe4bae10ac
Actually typeset latex
11 years ago
Matthias Bussonnier
269d9ae195
Merge pull request #6959 from minrk/check-kernel-execute
...
don't execute if kernel is not connected
11 years ago
Thomas Kluyver
7cf7d3f202
Merge pull request #6818 from jdfreder/race_conditions
...
Add promises to the widget framework.
11 years ago
Jonathan Frederic
f9d730d01e
Address @takluyver 's review comments
11 years ago
Jonathan Frederic
61ebd40206
Bug fix, promise not resolving.
11 years ago
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.
11 years ago
Jonathan Frederic
8d8bf43fb9
Merge pull request #6916 from minrk/finish-5659
...
add Duplicate button to dashboard
11 years ago
Min RK
4a25d24806
don't execute if kernel is not connected
11 years ago
Min RK
5eff21f3c6
simplify NotebookList.duplicate with recent changes
...
- contents service + futures
- remove no-longer-necessary parent_item
11 years ago
Min RK
036c47d032
set min-width on tree-list buttons
...
avoids misaligned buttons when the content changes
11 years ago
Min RK
8bad784ce5
update add_duplicate_button with API changes
...
- allow duplicating regular files
- update with contents service API changes
- fix some path/name bugs found in session and kernel list
11 years ago
David Neto
6aae1e219f
Add the "Duplicate" button in the main dashboard
...
so we can copy an existing notebook without having to start it's instance
11 years ago
David Neto
4bbd255f16
Change the order of Cancel and OK button in the renaming function so it matches the user experience for the same dialog boxes used in the main dashboard
11 years ago
Min RK
89598450f7
Merge pull request #6943 from jdfreder/numtextfix
...
Allow empty text box *while typing* for numeric widgets
11 years ago
Carlos Cordoba
abee155a11
Websockets were not started correctly on QtWebKit 4
...
- Draft76 was added to support QtWebKit 4 (and hence PhantomJS) a little
bit longer, but before this change kernel websockets failed to start on
that platform.
11 years ago
Min RK
d88f5c5898
Merge pull request #6874 from takluyver/config-js-api
...
Add JS config API
11 years ago
Min RK
c1a664dfb9
fix event hookup for kernel changed
...
event is kernel_created.Session
The spec name on the kernel also wasn't being changed when the kernel changed.
11 years ago
Jonathan Frederic
cfc45918bb
Rebase fixes
11 years ago
Jonathan Frederic
907bde3b25
Address review comments
11 years ago
Jonathan Frederic
3c949aad92
Remove message promise.
11 years ago
Jonathan Frederic
fe398593e7
Typo fix
11 years ago
Jonathan Frederic
93cedc167e
Address @takluyver 's comments
11 years ago
Jonathan Frederic
eb319c8aab
Promise logic is infectious like a disease
11 years ago
Jonathan Frederic
b56fc606ad
Promise the messages to the model
11 years ago
Jonathan Frederic
0d591619c6
Make all tests async display safe
11 years ago
Jonathan Frederic
56c5020a84
bool_test passing with slimerjs
11 years ago
Jonathan Frederic
b76d4d5c05
Use es6-promise polyfill
11 years ago
Jonathan Frederic
bed3a4cfda
use es6
11 years ago
Jonathan Frederic
8c149c9112
Current state with lots and lots of debugging junk
11 years ago
Jonathan Frederic
b3c49fce66
Move the display Promise into a lower level method,
...
into the create view method of the widget manager.
This makes sure that views created by parent views
are also accounted for in the state/display order
guarantee.
11 years ago
Jonathan Frederic
6ee932f298
Add rsvp to setupbase
11 years ago
Jonathan Frederic
26d012b3b7
Add comment clarifying new hook function,
...
Refined Page Error output.
11 years ago
Jonathan Frederic
fed878fed9
Don't throw Errors with Objects as the message/
11 years ago
Jonathan Frederic
17108fed3b
Make errors clearer!
11 years ago
Jonathan Frederic
66caa322c5
Make Page Error output clearer
11 years ago
Jonathan Frederic
77789daa12
Test fixes
11 years ago
Jonathan Frederic
bbcd5cb55f
Bug fixes
11 years ago
Jonathan Frederic
3870bb571b
Use rsvp.js for Promises
11 years ago
Jonathan Frederic
c67dcc0dc3
Finished adding error handling.
11 years ago
Jonathan Frederic
1d1572421f
Add a WrappedError class
11 years ago
Jonathan Frederic
b16b2e8749
Make display also pend on set_state.
11 years ago
Jason Grout
a4331a93cc
Fix some this vs. that errors, as well as returning some promises to wait for fulfillment
11 years ago
Jason Grout
8e769a012f
Load the utils module
11 years ago
Jason Grout
f11a51bb77
Dictionary key/value typo
11 years ago
Jason Grout
fc94383487
Better error messages with correct stack traces
11 years ago
Jason Grout
1b9948d178
Add some error handling for creating views and models
11 years ago
Jason Grout
686e73dfdf
More simplifications due to promises
11 years ago
Jason Grout
4412c12929
Simplify code by using Promises in a better way; try_load -> load
11 years ago
Jonathan Frederic
c41dcb35e9
Proxy console.error calls
11 years ago
Jonathan Frederic
2eae36ac9a
Use load_class in comms instead of callbacks.
11 years ago
Jonathan Frederic
5a745be138
Add Promise support to models.
11 years ago
Jonathan Frederic
78c0bbdb4d
Fix view rendering order.
11 years ago
Jonathan Frederic
4beda5d0fb
Initial stab at adding promises to the widget framework.
11 years ago
Jason Grout
ff680583c1
initial take on promises
11 years ago
Thomas Kluyver
2bfdbfc631
Fix some other bugs
11 years ago
Jonathan Frederic
ba9e7365be
Fix #6385
11 years ago
Thomas Kluyver
89222b6dfd
Actually define the module
...
I didn't forget something really obvious and important. Not at all.
11 years ago
Thomas Kluyver
cbd4929785
Use promising_ajax in config API
11 years ago
Thomas Kluyver
625c4f5bc2
Fix punctuation
11 years ago
Thomas Kluyver
d9b71ff750
Add JS config API
11 years ago
MinRK
29e49329e2
use CodeMirror.runMode to highlight in markdown
...
instead of highlight.js
11 years ago
Min RK
388fec4f96
Merge pull request #6924 from takluyver/contents-promises
...
Use promises in the JS contents API
11 years ago
Thomas Kluyver
3dbb600968
Merge pull request #6940 from takluyver/i6937
...
Just use notebook_path in download URLs
11 years ago
Thomas Kluyver
f7860ce9d2
Remove trailing comma
11 years ago
Thomas Kluyver
8d9d317e91
Merge pull request #6857 from jdfreder/celltoolbar_metadata_fix
...
Fix bug cell toolbars not redrawing on metadata change
11 years ago
Thomas Kluyver
8c962df79c
Load promises polyfill from a script tag
...
So all JS code can assume promises work, without needing to require it.
11 years ago
Thomas Kluyver
7240d2dafc
Just use notebook_path in download URLs
...
notebook_name is now superfluous
Closes gh-6937
11 years ago
Jonathan Frederic
f2b6697098
Use a property instead of a setter method
11 years ago
Jason Grout
d11f48eadb
Make favicon and logo images blocks in the template
11 years ago
Kyle Kelley
d029a3f4a3
Fix link to /tree.
11 years ago
Thomas Kluyver
d3699c8e3b
Update JS docstrings in contents API
11 years ago
Thomas Kluyver
1e53c1f924
Re-raise errors with throw instead of Promise.reject()
11 years ago
Thomas Kluyver
d04e41251d
Merge pull request #6915 from minrk/contents-no-0
...
use Untitled instead of Untitled0
11 years ago
Thomas Kluyver
0295f5a487
Semicolons
11 years ago
Min RK
f569ccc58f
Merge pull request #6920 from SylvainCorlay/serialize_date
...
Dates and Strings are JavaScript objects, and _pack_models behaves incorrectly in these cases.
11 years ago
Min RK
dcfaaf6acb
Merge pull request #6922 from SylvainCorlay/checkbox_height
...
Correct height for the checkbox widget
11 years ago
Min RK
48d77b3f03
Merge pull request #6886 from minrk/tornado-4
...
require tornado 4
11 years ago
Thomas Kluyver
56320588da
Return JSON from contents API checkpoint methods
11 years ago
Thomas Kluyver
aecb4bffa5
All aboard the promise train
11 years ago
Thomas Kluyver
11cfcc40d4
Use promises for GET requests
11 years ago
Thomas Kluyver
9b2dac3fc1
Infrastructure for AJAX requests returning ES6 promises
11 years ago
Sylvain Corlay
7ac82931ca
Tooltip on toggle button
11 years ago
Sylvain Corlay
2a026ed45b
Test packing/unpacking instances of Date and String
11 years ago
Sylvain Corlay
54d6d18baf
Correct height for checkbox widget
11 years ago
Sylvain Corlay
604d0bb666
A String is an object
11 years ago
Sylvain Corlay
4b6c753f3f
Dates are JavaScript objects, and _pack_models returns an empty object
11 years ago
Min RK
0a22217f7e
Merge pull request #6900 from takluyver/contents-api-get-as-type
...
Contents API get as type
11 years ago
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
0f8127c36f
Merge pull request #6735 from Carreau/native-map
...
Use native map when possible
11 years ago
Min RK
456e65b1f3
adjustments to filename increment
...
- start with no number (Untitled0 -> Untitled.ipynb)
- copy of copy increments instead of adding another `-Copy` (copy Foo-Copy1.ipynb gives Foo-Copy2.ipynb, not Foo-Copy1-Copy1.ipynb)
- copy file to new folder starts with the original filename, instead of unconditional `-Copy0`
11 years ago
Thomas Kluyver
0f44eced72
Put frontend config files in profile_foo/nbconfig/ subdir
11 years ago
Min RK
b5e7ce30ca
handle setting Widget.comm = None
...
which is done in `Widget.close`
fixes loads of warnings in widget test output, caused every time a widget is closed.
11 years ago
Thomas Kluyver
c9b6e30526
Actually pass URL params with API request
11 years ago
Thomas Kluyver
a469d7658a
Add test for /tree redirects
11 years ago
Thomas Kluyver
f1f81e2efa
Rename get_model() to get()
11 years ago
Thomas Kluyver
6f48b58b18
Fix various review comments
11 years ago
Thomas Kluyver
b5a6cb7da1
Allow specifying format when getting files from contents API
11 years ago
Min RK
287d572fb3
Merge pull request #6855 from takluyver/new-notebook-async
...
Open new windows before creating new notebooks
closes #6849
11 years ago
Min RK
a257e580a0
Merge pull request #6854 from takluyver/post-new-terminal
...
Create new terminals with POST request to API
11 years ago
Thomas Kluyver
e453b160b1
Some fixes for the tree view
11 years ago
Thomas Kluyver
f9db65ab6f
Expose and use get requests specifying type in the JS
11 years ago
Thomas Kluyver
ce6dd40c5c
Add type parameter for contents GET requests
11 years ago
Thomas Kluyver
c7529c53eb
Eliminate remaining uses of extra_settings
11 years ago
Thomas Kluyver
ef98d48921
Disable passing extra AJAX settings to Contents.new()
11 years ago
Thomas Kluyver
b046af083c
Fix some bugs in deleting notebooks from the dashboard
11 years ago
Thomas Kluyver
260ebcebcf
Open window before creating new notebook
...
Avoids the need for synchronous requests.
11 years ago
Min RK
3870a30ce4
contents.new_untitled to match Python API
11 years ago
Min RK
da832ef59f
split ContentsManager.new, add ContentsManager.new_untitled
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
Min RK
ba370731a5
fix and test path regexes
...
- require leading `/`
- match empty string
- disallow consecutive `//`
This means that path_regex should be included as `/api/whatever%s`, not `/api/whatever/%s`
11 years ago
Min RK
5c2ae3e92c
fix link-following logic in directory nav
...
avoid infinite recursion by recording which links have been visited
11 years ago
Min RK
81764cc1e0
update save test
...
fix some event waiting while there
11 years ago
Min RK
74c897cc0b
unicode!
11 years ago
Min RK
bc4f0b32bb
rename ContentsManager.create_file->new
...
consistent with js API
11 years ago
Min RK
8407ba3a08
update frontend with path/name changes
...
- remove name from models
- path is full path (contains name)
11 years ago
Min RK
62dedf921b
remove notebook['name'] from sessions
11 years ago
Min RK
b6c4baa2fb
remove copy via PUT
...
only copy via POST to directories
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
Kyle Kelley
464967d7a9
Merge pull request #6876 from minrk/falloff-reconnect
...
Add exponential falloff to kernel reconnect
11 years ago
Min RK
6d78644411
s/Connection lost/Not Connected/
11 years ago
Min RK
4871cc4f1d
wait for kernel_ready after ws_closed_error
11 years ago
Min RK
19bcc5fed9
bump minimum tornado version to 4.0
...
remove various websocket workaround for tornado 3
11 years ago
Min RK
f8d59bcd9e
forward-port draft76 websockets
...
from tornado-3.2.2
only enabled during testing with phantomjs
11 years ago
Min RK
42f0684994
add events to ws_closed_error in kernel.js
11 years ago
Min RK
59b54eba53
add Reconnect to kernel menu
11 years ago
Min RK
fe00509f32
add sticky `Connection lost` notification
...
when reconnect process gives up
11 years ago
Min RK
a6d427e5c9
add exponential falloff for reconnect
...
avoids constant reconnect attempts every 3 seconds forever
gives up after 6 tries (last timeout 64s)
11 years ago
Thomas Kluyver
5f456ef438
Document limitations of symlink parameter to install_nbextension
...
Closes gh-6239
11 years ago
Min RK
7cee09381f
Merge pull request #6861 from quantopian/template_dir_option
...
DEV: Support for configurable list of extra jinja template directories.
11 years ago
Thomas Kluyver
9a7c6e78d9
JS Contents API doesn't need dialog module
11 years ago
Scott Sanderson
8a6af683ce
DOC: Fix typo in comment.
11 years ago
Thomas Kluyver
ae6ae8f7b0
Return updated config from PATCH requests
11 years ago
Thomas Kluyver
c26b0f6961
Fix writing JSON on Python 2
11 years ago
Thomas Kluyver
425d5a1c02
Apply JSON config updates recursively
11 years ago
Thomas Kluyver
6786f86c63
Fix docstring, validate JSON on PUT
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
Jonathan Frederic
bfdf9596fd
Fix bug where cell toolbars are not redrawn,
...
when cell metadata is changed.
11 years ago
Thomas Kluyver
538fcbc025
Close new window on error creating terminal
11 years ago
Thomas Kluyver
e6939f9aa5
Merge pull request #6846 from minrk/deprecate-heading-ui
...
deprecate heading cells in UI
11 years ago
Thomas Kluyver
8da4e89e3a
Make a window immediately, and set its location on response
...
Avoids the need for async:false
11 years ago
v923z
a2081d042e
replaced nbmodel.orig_nbformat by orig_nbformat
11 years ago
v923z
9c122dcd15
fixed notebook checking code
11 years ago
Min RK
ef49e32ef0
Merge pull request #6783 from takluyver/contentsmanager-js
...
contents.js wrapper for contents service
11 years ago
Thomas Kluyver
b7a558d5b9
Use synchronous request for creating new notebooks
...
To get round popup blockers
11 years ago
Min RK
04bcfa626d
deprecate heading cells in UI
...
- removed from Kernel Menu
- Main toolbar warns via shouty dialog
- keyboard shortcuts still work to make headings in markdown cells, with no warning
11 years ago
Thomas Kluyver
2a497c16eb
load_file -> load
11 years ago
Thomas Kluyver
1f2e4cc6c3
Fix passing empty list to draw_notebook_list()
11 years ago
Thomas Kluyver
a4f869aa8b
Rename methods to remove _file suffix
11 years ago
Thomas Kluyver
5279418acf
Make Contents.new more generic
11 years ago
Thomas Kluyver
4452754a6b
Set notebook nbformat in toJSON
11 years ago
Min RK
6b67a69c22
don't assume converted notebooks are old
...
in notebook.js dialogs, which can now be triggered
by nbformat 4 from the future.
11 years ago
Thomas Kluyver
963921c4ff
Merge pull request #6832 from minrk/request-only-once
...
actually send only one kernel_info request
11 years ago
Thomas Kluyver
684516c79f
Fix copy-paste mistakes
11 years ago
Thomas Kluyver
658eb39c56
Remove one more unnecessary cache parameter
11 years ago
Thomas Kluyver
2962a3ce17
Remove some unnecessary cache: false parameters
...
According to the jQuery docs, this is only needed for GET and HEAD
requests.
11 years ago
Thomas Kluyver
a2f3e23fd8
Add copy_file to contents JS API
11 years ago
Thomas Kluyver
1ae6be218d
Fix require config
11 years ago
Thomas Kluyver
b8f9dc07e2
Fix error callback when deleting file
11 years ago
Kester Tong
9797a6b7c0
typo fix
11 years ago
Kester Tong
89df330129
Modifies Contents API to return Error objects
...
Modfies the Contents class to return JavaScript Error objects instead of passing on the return values from $.ajax(). This has two advantages. First, it allows the content manager to parse errors and give more informative messages than the ajax response. Second, it makes the Contents interface more general, since other kinds of backends might generate client-side errors.
11 years ago
Thomas Kluyver
e1cbaf3d3c
Fix spelling
11 years ago
Thomas Kluyver
f8ec8d4abe
Various minor fixes from review
11 years ago
Thomas Kluyver
ea314a2a86
Rename callback parameters to success/error
11 years ago
Thomas Kluyver
060dd1305c
Miscellaneous JS fixes
11 years ago
Thomas Kluyver
c1c591336e
Some more event cleanup
11 years ago
Thomas Kluyver
cf828ccf4e
Cut out some superfluous events
11 years ago
Thomas Kluyver
c9bd254735
Make contents JS API consistent
11 years ago
Thomas Kluyver
29d88a91a6
Standardise JS checkpointing API, use it for notebooks
11 years ago
Thomas Kluyver
14106cbd66
Move contents API module into services
11 years ago
Thomas Kluyver
a10dea4cd5
Add Contents.api_url convenience function
11 years ago
Thomas Kluyver
9538726b16
Don't do UI stuff in contents API module
11 years ago
Thomas Kluyver
478648bde5
Page URL is /notebooks/..., not contents
11 years ago
Thomas Kluyver
c661c85abd
Add missing semicolon
11 years ago
Jeff Hemmelgarn
47a88f0e1d
Remove version
11 years ago
Jeff Hemmelgarn
dab99c599f
Remove unnecessary backwards compatibility code
11 years ago
Jeff Hemmelgarn
53463898eb
Move contentmanager to contents
11 years ago
jhemmelg
5109be2d28
ContentManager function signatures updated
11 years ago
jhemmelg
496fa1901f
Initial interface for javascript contentmanagers
...
contentmanager.js is going to be a js proxy for the current
filenbmanager.py. This will allow a contentmanager for Google Drive to
be created.
11 years ago
Jeff Hemmelgarn
09e0ff93d8
Fix a few problems with cherry-picked commits
...
api/notebooks => api/contents
add type to JSON model
fix a few things in notebooklist.js
11 years ago
KesterTong
3994d4d56a
Adds configuration options to use Google Drive content manager
...
Adds the key contentmanager_js_source to webapp_settings that allows for specifying the content manager JavaScript source file. Also adds a NotebookManager subclass, ClientSideNotebookManager, which does minimal logic. This class is used when the JavaScript content manager doesn't use the Python notebook manager, but rather implements that logic client side, as is the case for the Google Drive based content manager.
A sample command line that uses the Google Drive content manager, and the ClientSideNotebookManager, is
ipython notebook --NotebookApp.webapp_settings="{'contentmanager_js_source': 'base/js/drive_contentmanager'}" --NotebookApp.notebook_manager_class="IPython.html.services.notebooks.clientsidenbmanager.ClientSideNotebookManager"
11 years ago
KesterTong
952ac7d0d8
Moves load_notebook to ContentManager and adds new_notebook to Google Drive version
11 years ago
KesterTong
e3ef5d3b70
Moves list_notebooks to ContentManager
11 years ago
KesterTong
dfcf14f26c
Uses events for ContentManager.save_notebook
...
Modifies ContentManager.save_notebook() to use events, so that the Notebook instance can listen for success or failure events. Also moves some logic out of save_notebook()
11 years ago
KesterTong
04fc61285f
Use events for rename_notebook
...
Triggers events on ContentManager.rename_notebook success and failure. Also moves some logic out of this method.
11 years ago
KesterTong
75d7e69fc8
Use $.proxy instead of that
11 years ago
KesterTong
9881d17bb1
Remove unused event
...
This event never seems to get used.
11 years ago
KesterTong
61a911fc0c
Fix constructor comments
...
Add content_manager as a dictionary key to the options param passed in to the NotebookList and Notebook constructors.
11 years ago
KesterTong
0aada3ac5d
Remove deleted notebook from notebook list
...
Uses events to notify the NotebookList when the content manager deletes a notebook, and remove the deleted notebook in response to such an event.
11 years ago
KesterTong
077ba397c1
Removes unnecessary parameter from ContentManager.delete_notebook
11 years ago
Jeff Hemmelgarn
99323b1173
Move saving to contentmanager
...
Make notebook.save_notebook call contentmanager.save_notebook.
11 years ago
Jeff Hemmelgarn
5b5e194082
Move notebook.rename to contentmanager
...
Make notebook.rename call contentmanager.rename
11 years ago
Jeff Hemmelgarn
7043aa1b9e
switch notebook.delete to use contentmanager
...
Make notebook.delete call contentmanager.delete_notebook
11 years ago
Jeff Hemmelgarn
728c6f005f
Move deleting a notebook to contentmanager.js
...
Move code to handle deleting a notebook from notebooklist to
contentmanager.
11 years ago
KesterTong
993833d018
Replace other methods with ContentManager.new_notebook
...
Replaces Notebook.new_notebook and NotebookList.new_notebook with ContentManager.new_notebook
11 years ago
KesterTong
d17ca85f5b
Adds dialog on new_notebook failure
...
This logic doesn't really belong in ContentManager. It would be better to trigger an event, which is handled somewhere else. But there's no obvious place to put this event, so creating the error dialog inside the new_notebook method is ok for now.
11 years ago
KesterTong
5717a3eb10
Make ContentManager stateless
...
Don't store notebook_path in ContentManager, because this sort of state (in addition to notebook_name) can change, and keeping track of this logic doesn't seem to be a part of the file management system. Instead, this logic can be left to the Notebook instance (and possible other places that manage it). This makes refactoring easier, and avoids having to replicate this logic in every implementation of ContentManager.
11 years ago
KesterTong
99f2647edd
Use IPython style constructor
11 years ago
KesterTong
21a5b5a965
Style and bug fixes
11 years ago
jhemmelg
112a74c566
ContentManager function signatures updated
11 years ago
jhemmelg
d5a84bb8a4
Initial interface for javascript contentmanagers
...
contentmanager.js is going to be a js proxy for the current
filenbmanager.py. This will allow a contentmanager for Google Drive to
be created.
11 years ago
Thomas Kluyver
a16a3d0270
Merge pull request #6045 from minrk/nbformat4
...
nbformat v4
11 years ago
Min RK
96183a60a0
create new terminals with POST /api/terminals
...
instead of GET terminals/new
to be consistent with creating new notebooks.
We had to stop using GET notebooks/new
because browsers would create new notebooks when making preview thumbnails for commonly visited pages, etc.
I assume the same issue would apply to terminals
11 years ago
Min RK
196b91e73b
Merge pull request #6828 from takluyver/terminal-list
...
Add terminals tab to the dashboard
11 years ago
Min RK
525f6a7561
fix backward `f, nb` args for nbformat.write
11 years ago
MinRK
7cf53c998c
restore ability to sign v3 notebooks
11 years ago
MinRK
53ef8e1e1e
remove unused OuptutArea.rename_keys
11 years ago
MinRK
af735018f3
don't use nbformat.current in IPython.html
...
use top-level nbformat.read/write, v4 directly for compose
11 years ago
MinRK
ae0b46aa3f
address review from takluyver
...
- various typos
- discuss multi-line strings in nbformat doc
- testing cleanup
- py3compat simplification
- don't use setdefault when composing notebook nodes
- mime-type fix in svg2pdf
11 years ago
MinRK
12f94ae2a2
use from_dict for dict->notebook
...
not confusing to_notebook_json
11 years ago
MinRK
d979f4bedd
better regex replacement for MarkdownCell.set_heading_level
...
(c/o Matthias)
11 years ago
MinRK
dd95b1ef5f
remove heading cells in v4
11 years ago
MinRK
458dcd12e3
make markdown heading input match output size
11 years ago
MinRK
6ca260e611
output[mime/type] -> output.data[mime/type] in javascript
11 years ago
MinRK
a50042745f
semicolons, you guys!
11 years ago
MinRK
baf65234b9
move mime-bundle data to rich output.data
...
from top-level output keys
11 years ago
MinRK
09acc6c854
msgspec: stream.data -> stream.text
11 years ago
MinRK
14cfb2efc1
s/prompt_number/execution_count in nbformat 4
11 years ago
MinRK
07079095a8
update html/js to nbformat 4
11 years ago
Min RK
3e82ea8319
actually send only one kernel_info request
...
store the Future for the initial request,
allowing subsequent requests to wait on the same pending reply.
Previously, any incoming requests that arrived while waiting for the first reply would send their own request.
11 years ago
Matthias Bussonnier
63d4534959
Get pre_get to work and make session logs when adapter changes
11 years ago
Thomas Kluyver
8e1914a446
Merge pull request #6825 from minrk/bad-kernelspecs
...
log kernel specs that fail to load
11 years ago
Thomas Kluyver
d32322e332
Show terminals as terminals/name
...
Bigger click target
11 years ago
Thomas Kluyver
4025b57ed8
Only display terminals in dashboard if terminals are available
11 years ago
Min RK
1d7f8803e0
use ?download=1 to trigger download in /files/
...
sets `Content-Disposition: attachment...`
- master sets this unconditionally
- 2.x sets this iff file is a notebook
11 years ago
Thomas Kluyver
65e664b143
Add list of available terminals in the dashboard
11 years ago
Min RK
e329a79bc8
language is removed from kernel specs
...
don't use it when testing kernel spec API
11 years ago
Min RK
a2575af6a7
log kernel specs that fail to load
11 years ago
Matthias Bussonnier
1281319cc9
Merge pull request #6820 from takluyver/terminals-tornado-3
...
Fix terminals with Tornado 3
11 years ago
Thomas Kluyver
ce14f905e0
Fix terminals with Tornado 3
...
The websocket handler auth checking was calling clear_cookie(), which
threw an error because it doesn't make sense for Websockets. It doesn't
seem important, and we silence it in our other websocket handlers, so
silencing it here too.
11 years ago
Thomas Kluyver
db6cd028ea
Merge pull request #6793 from takluyver/langinfo
...
Move language info from kernelspec to kernel_info_reply
11 years ago
Thomas Kluyver
adeefa8578
Merge pull request #6493 from SylvainCorlay/python_widget_registry
...
Creating a widget registry on the Python side.
11 years ago
Min RK
965102ba60
Merge pull request #6554 from Carreau/itsallaboutme
...
Add About IPython
11 years ago
Scott Sanderson
b4c5755ad4
BUG: Set file encoding for IPython.html.terminal.handlers.
11 years ago
Sylvain Corlay
ed5e602950
jupyter -> IPython
11 years ago
Sylvain Corlay
374459e5e7
Adding custom keys for core jptr notebook
11 years ago
Sylvain Corlay
18e77a090a
registering core widgets
11 years ago
Sylvain Corlay
e5b347804a
widget registry
11 years ago
Thomas Kluyver
1abce7c065
Merge pull request #6807 from minrk/debug-ws-open
...
debugging websocket connections
11 years ago
Min RK
5ff9ded54a
Merge pull request #6614 from takluyver/nb-terminal-ui
...
Terminal emulator in the notebook
11 years ago
Min RK
e5b135a905
debugging websocket connections
...
- add debug statement at the very beginning of a web socket request
- add debug statement in open, indicating that the connection has been accepted
- add timeout, so failed or slow kernel_info doesn't cause the request to never get a response
- don't send kernel_info_request before authenticating the request
The last one required some icky coroutine shenanigans,
because of our subclass structure, but it should work fine.
11 years ago
Mateusz Paprocki
3d825cfbcc
Allow to specify CodeMirror's syntax mode as MIME
...
This is required for e.g. Scala, where the mode is given as
text/x-scala, but the actual implementation is in clike mode.
This wouldn't be an issue, but IPython loads modes lazily, so
you need both mode name and MIME to resolve correct file and
configure CodeMirror.
11 years ago
Bussonnier Matthias
5ecf6efdac
cache sys-info
11 years ago
Jonathan Frederic
ba77877c18
Rebase fixes
11 years ago
Jonathan Frederic
04d0874a80
JS test fix
11 years ago
Jonathan Frederic
db10ae8f2d
s/target_name/widget_class
11 years ago
Jonathan Frederic
cb2c76999c
Address some more review comments...
11 years ago
Jonathan Frederic
3cb5ac6fbb
Clarified API for the create_model function,
...
Also added a test!
11 years ago
Jonathan Frederic
a68df8a8b1
Address @minrk 's review comments.
11 years ago
Jonathan Frederic
fbca0bfa3f
Rebase fixes.
11 years ago
Jonathan Frederic
5a655b24da
Fixed typo.
11 years ago
Jonathan Frederic
2b5ebb9e8f
Make Python push initial state.
...
Also added initial state push callback.
11 years ago
Jonathan Frederic
e7ee9c12b3
Enable widget instanciation from front-end.
11 years ago
Min RK
b26706ba69
Merge pull request #6800 from takluyver/mdcell-render-event
...
Add event for Markdown cell rendered
11 years ago
Min RK
e5aa7ef70b
Merge pull request #6763 from takluyver/require-widget-models-comm-targets
...
Load comm targets and widget models from requirejs modules
11 years ago
Thomas Kluyver
659accf69e
Add event for Markdown cell rendered
11 years ago
MinRK
a5a43e2746
Don't resend kernel info requests if a bad reply is received
11 years ago
MinRK
94d6196ef9
add websocket workarounds for tornado 3
...
WebSocketHandler.get is new in tornado 4
11 years ago
MinRK
769fe38789
cache kernel_info reply for protocol adaptation
...
WebSocket connections will not open until kernel_info is retrieved,
removing a race condition waiting for the reply to indicate adaptation,
which could result in a v5 message being sent to a v4 kernel.
The reply is cached, so that it need not be requested on each new connection.
11 years ago
Thomas Kluyver
c8af873aeb
Remove override.css from the template
11 years ago
Thomas Kluyver
ea896c3f16
Compatibility fix for Tornado 3.x
11 years ago
Thomas Kluyver
8917e9951e
Move terminal CSS into LESS file
11 years ago
Thomas Kluyver
d352d52bd8
Add comment explaining 1.02 factor
11 years ago
Thomas Kluyver
52be8bdf6b
HTML fix
11 years ago
Bussonnier Matthias
1b200e5504
recompute dummy size dynamically + styling in css
11 years ago
Thomas Kluyver
1db2868d37
Use relative URL for redirect in NewTerminalHandler
11 years ago
Thomas Kluyver
a907d8f7f4
Put terminal handlers under base_url
11 years ago
Thomas Kluyver
cbc70a7de7
Add authentication for terminal websockets
11 years ago
Thomas Kluyver
b929b3f09e
Initial REST API for terminals
11 years ago
Thomas Kluyver
9c0084e615
Multiple terminals and conditional initialisation
11 years ago
Thomas Kluyver
d4676bf2ad
Terminal basically working
...
Still need to deal with things like authentication
11 years ago
Thomas Kluyver
d211ebf067
Basic infrastructure for terminal page
11 years ago
Thomas Kluyver
9c7d73a05e
Move language info from kernelspec to kernel_info_reply
11 years ago
Thomas Kluyver
a77b5e8e31
Support specifying requirejs modules for comm targets
11 years ago
Thomas Kluyver
031530da42
Support specifying requirejs modules for widget models
11 years ago
Min RK
a58b215421
Merge pull request #6768 from jdfreder/remotetestfix
...
Fix an issue in the `kernel_running` function of the JS tests,
11 years ago
Jonathan Frederic
880e7be68a
Merge pull request #6766 from takluyver/i6764
...
Open ipynb download in a new window instead of changing the URL
11 years ago
Jonathan Frederic
5366cef17d
Fix an issue in the `kernel_running` function of the JS tests,
...
This fix allows the JS test to be ran against a remote server
with a higher than LAN latency. This bug in our testing
framework was exposed when running `iptest js/widgets --url`
against tmpnb.
11 years ago
Thomas Kluyver
5ede5318d5
Merge pull request #6751 from jdfreder/iptestgun
...
Added --url option to iptest
11 years ago
Thomas Kluyver
eacd05505c
Open download in a new window instead of changing the URL
...
Closes gh-6764
11 years ago
Jonathan Frederic
fc3178e13e
Make order of operations more explicit.
11 years ago
Jonathan Frederic
79670e8afb
Merge pull request #6494 from takluyver/widget-comm-require
...
Allow widget views to be loaded from require modules
11 years ago
Jonathan Frederic
c3b1bf795e
Add --url option to iptest
11 years ago
Thomas Kluyver
f0f6c0d29b
Merge pull request #6677 from minrk/services
...
remove unnecessary 'js' subdir from services
11 years ago
Thomas Kluyver
c39939869f
Merge pull request #6653 from mattpap/fix_ansispan
...
Fix IPython.utils.ansispan() to ignore stray [0m
11 years ago
Mateusz Paprocki
61c17c8ef6
Update static/style/{ipython,style}.min.css
11 years ago
Mateusz Paprocki
439098a9d5
IPython.{util->utils}.fixConsole() in html/tests/base
11 years ago
MinRK
a67abc297d
remove unnecessary 'js' subdir from services
...
part of the point of services is that they are just code, so they won't have js/less/etc. files.
11 years ago
Matthias Bussonnier
103d5dc9b7
Merge pull request #6720 from takluyver/kernelspec-pygments-lexer
...
Respect kernelspec metadata for syntax highlighting in nbconvert
11 years ago
Matthias Bussonnier
d269912958
Merge pull request #6110 from minrk/binarycomm
...
support binary buffers in comm messages
11 years ago
MinRK
7fd161599b
cleanup serialize per review
11 years ago
MinRK
ab9e2b496d
move grid-float-breakpoint to 540px
...
collapses navbar before running over to two lines
due to help/indicator collision.
11 years ago
MinRK
e36df49c5f
tweak collapsed navbar style
...
- notification and indicators appear above menu on small screen
- collapsed menu button floats left
11 years ago
MinRK
5ccbd18e5d
collapse the navbar on narrow windows
...
so it doesn't take up a bunch of vertical height when not in use
11 years ago
MinRK
36cd457b11
move the navbar-collapse transition to xs
...
avoids stacked navbar on narrow (but not too narrow) windows
11 years ago
Matthias Bussonnier
197c66d0d5
Use native map when possible
...
Implemented on all modern browser.
There is a small behavior difference between $.map and Array.prototype.map
but we don't rely on it.
(jQuery flatten arrays and filters null-like)
11 years ago
Matthias Bussonnier
f8fe41dd67
add test warning shadow
11 years ago
Matthias Bussonnier
f116510592
remove debug
11 years ago
Matthias Bussonnier
8aa3815130
Add notion of action that differs from shortcuts.
...
This decouple the notion of shortcut from the notion of executed "action"
This allow the shortcuts manager to be purely describe as data, and the
same action to be later refered to either from the shortcut, from a toolbar
button or a menu.
This also implement a more complete keyboard shortcut handler which is
able ton interpete sequences like `Cmd-X,Meta-v` By storing the
shortcuts in a tree.
11 years ago
Matthias Bussonnier
7ae250bbeb
Merge pull request #6693 from minrk/please-no-jsonp
...
set contentType='application/json'
11 years ago
Matthias Bussonnier
3b31574971
Merge pull request #6697 from minrk/less-1.7.5
...
require less >= 1.7.5
11 years ago
Thomas Kluyver
ddbe427dfa
Add pygments_lexer key to kernelspec
11 years ago
Matthias Bussonnier
bd8413dfc7
Use low overhead object heritence in Js (Object.create vs new)
...
the use of
XX.prototype = new YY();
Does trigger the constructor of YY without the nead for it. `Object.create`
does go around this limitation and target browser that are relatively Old.
Cf https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create
for more info
It might help to get rid of some logic in constructors that check wether some
options are passed in, that were causing errors on noteboko load. Typically
`if(element){ }` on Abstract `Cell` constructor.
11 years ago
MinRK
492b80d05f
require less >= 1.7.5
...
fixes bug where `vbox > *` style was applied to `vbox()` classes
11 years ago
MinRK
95355e6ff2
Merge pull request #6624
...
closes #6656
closes #6399
11 years ago
Jonathan Frederic
356743495b
Merge pull request #6666 from jdfreder/widget_numbers
...
Add version trait to Widget base,
11 years ago
MinRK
868994087f
finish up FilesHandler
...
- load FilesHandler like everything else
- remove copy/paste leftovers
11 years ago
Thomas Kluyver
fddccc08de
Merge pull request #6711 from minrk/invoke
...
use invoke instead of fabric
11 years ago
Matthias Bussonnier
6766daa397
Merge pull request #6705 from jhamrick/celltoolbar-justify
...
Right-justify celltoolbar instead of reversing
11 years ago
Matthias Bussonnier
e7c2c369e0
Add about dialog in Notebook Help Menu.
...
This allow to get info on version of IPython when running remotely.
The about dialog also send a kernel info request and display the banner
which is useful for non-python kernel that don't match IPython version
11 years ago
MinRK
7c2083aa60
test saving with problematic cell contents
11 years ago
MinRK
2624f82787
set contentType='application/json'
...
instead of skipping straight to headers
avoids jQuery's crazy JSONP detection on `=.*??`,
which was triggered because it assumed the contentType was unspecified,
and thus should be guessed based on content.
11 years ago
MinRK
41cfd4f5cf
use invoke instead of fabric
...
it's the descendant of the part of fabric we actually use,
it doesn't have complex compiled dependencies like fabric,
and it works on Python 3.
11 years ago
Jessica B. Hamrick
8896b538b5
Add regression tests for live notebook
11 years ago
MinRK
9e425bf94b
move binary msg test to services/serialize
11 years ago
MinRK
8c743d304f
unsigned ints for offsets
...
because signed ints for sizes is icky
11 years ago
MinRK
11f5775103
test binary websocket messages
...
only runs on slimerjs for now
11 years ago
MinRK
3de7e9bd74
test websocket-friendly binary message roundtrip
...
Python-side
11 years ago
MinRK
b548e51550
use TextEncoding for string<->ArrayBuffer
...
requires text-encoding js polyfill, for now
11 years ago
MinRK
3693ac83ae
support binary message from javascript
11 years ago
MinRK
6cef7fcb86
use utf8.js
...
move message serialization to kernel.serialize module
11 years ago
MinRK
c9c131ebf9
s/unserialize/deserialize
11 years ago
MinRK
3a1c845f96
support buffers in comm messages
...
- add buffers arg to comm Python api
- support binary websocket messages when buffers are present
- reimplement utf8 in javascript, because javascript is the best
11 years ago
Jessica B. Hamrick
b68507ae91
Display prompt in the notebook correctly
11 years ago
Jessica B. Hamrick
8294a5938b
Right-justify celltoolbar instead of reversing
11 years ago
Jonathan Frederic
c0108e1089
Merge pull request #6681 from SylvainCorlay/widget_hbox_align
...
Minor change in widgets.less to fix alignment issue
11 years ago
Min RK
8107e8a41b
Merge pull request #6669 from SylvainCorlay/font_awesome_update
...
Font awesome update
11 years ago
Thomas Kluyver
0b7cbae7e0
Merge pull request #6685 from minrk/allow-no-session-id
...
allow session_id to be undefined when starting kernel channels
11 years ago
MinRK
3946dedbda
remove redundant 'responsive-utilities' from style.less
...
it's already included in bootstrap.less
11 years ago
Thomas Kluyver
74d2ddf751
Merge pull request #6686 from minrk/default-kernel
...
use default kernel name in kernels service
11 years ago
Sylvain Corlay
e9ceb94db1
genereate css
11 years ago
Jonathan Frederic
1172876191
Add version trait to Widget base,
...
From widget Trello: version numbers for widget models;
when reloaded, will give the widget a chance to do
something intelligent or fail (by default) if the
version number doesn't match.
11 years ago
Jonathan Frederic
98cef15a7c
Merge pull request #6221 from Carreau/cm4
...
Switch to CodeMirror 4.6.0
11 years ago
Jonathan Frederic
6a304fc63c
Merge pull request #6540 from takluyver/comms-mgr-needs-no-shell
...
Make comm manager (mostly) independent of InteractiveShell
11 years ago
MinRK
7da61bfc13
use default kernel name in kernels service
...
matches sessions API
11 years ago
MinRK
97f7116624
allow session_id to be undefined when starting kernel channels
11 years ago
Min RK
1b5874ac65
Merge pull request #6629 from minrk/wscookie
...
remove on_first_message authentication
11 years ago
Sylvain Corlay
43d08b0795
fix alignment
11 years ago
Min RK
00f88ee1be
Merge pull request #6654 from Carreau/closes-6647
...
Have /api return the IPython version
11 years ago
Bussonnier Matthias
76a54f0a82
Have /api return the IPython version
...
return version as a string, to be consistent with other APIs.
closes #6647
11 years ago
Matthias Bussonnier
87dc17ccbc
cleanup style fixed in separate PR and few other things
11 years ago
Matthias Bussonnier
b24e69b058
cleanup whitespace
11 years ago
Matthias Bussonnier
3de3ef9add
add comment about codemirror.modeURL
11 years ago
Matthias Bussonnier
c183aa5fe6
remove unused cm_loadmode
11 years ago
MinRK
8e863d951c
use require to load CodeMirror modes
...
CM's loadmode addon only works if you *don't* load CodeMirror itself with require.
11 years ago
MinRK
7aed2fbb55
fix this.editor reference
11 years ago
Matthias Bussonnier
dc912dbdbd
handle somehting selected and multiple cursors and 4 tabs show content in pager
11 years ago
Matthias Bussonnier
e0f19a386e
protect agains undefined
11 years ago
Matthias Bussonnier
804d89351b
rework keyboard management to avoit completer and up/down bugs
11 years ago
Matthias BUSSONNIER
5b355936df
Update to codemirror 4
...
Update to codemirror 4.6 and update most notebook to work wiht it
this include keyevent that where triggerd twice and the re-writing of
ipython-gfm anf ipython mode to work with require.
11 years ago
Jonathan Frederic
262bf7d2c9
Merge pull request #6673 from jhamrick/fix-tooltip
...
Fix broken show in pager button
11 years ago
Jessica B. Hamrick
685040427a
Fix broken show in pager button
11 years ago
MinRK
624f0071a2
remove on_first_message authentication
...
in ZMQStreams. No need for weird, special first message.
- use regular cookie auth
- use url param for session id
11 years ago
Min RK
63a7969123
Merge pull request #6416 from Carreau/foobarcode
...
Unify Text/CodeCell code.
11 years ago
Min RK
60bfcf8c74
Merge pull request #6665 from jdfreder/travis_please_run_on_this
...
Separate widget model name from com target name.
11 years ago
Jonathan Frederic
4b968ece0b
s/target_name/model_name
11 years ago
Matthias BUSSONNIER
9657a3f7cd
Generalise render/unrender to all cells type
...
Allow change of behavior in pure (custom) css.
11 years ago
Matthias Bussonnier
b2a0798fdf
Merge pull request #6598 from minrk/nbformat-backport
...
nbformat validation
11 years ago
Matthias Bussonnier
a8949405da
Merge pull request #6644 from minrk/trust-changed
...
trigger trust_changed properly on load
11 years ago
Matthias Bussonnier
65f41327c9
Merge pull request #6106 from chronitis/interact-slider-textedit
...
Allow text input on slider widgets
11 years ago
Matthias Bussonnier
7d7b85a043
Merge pull request #6649 from minrk/302-notebooks
...
redirect /api/notebooks to /api/contents
11 years ago
Matthias Bussonnier
fa11da9162
Merge pull request #6586 from jhamrick/kernel-session-js
...
Kernel and session javascript cleanup
11 years ago
Jonathan Frederic
24096b0f45
Separate widget model name from com target name.
11 years ago
MinRK
b87fee048c
redirect /api/notebooks to /api/contents
...
eases 2.x-3.x transition for consumers such as emacs-ipython-notebook
11 years ago
MinRK
b2d946d44e
don't convert notebooks on upload
11 years ago
MinRK
8392c7ac9e
don't check_and_sign old notebooks on upload
11 years ago
MinRK
4ae05c729c
trust is stored in code_cell.metadata
...
not top-level code_cell
11 years ago
MinRK
ddd3aa2a5a
add dialogs for failed save/load
...
- failed validation doesn't prevent save/load,
but the user is now warned about it.
- there is now a warning dialog if fromJSON fails,
rather than the usual silent failure.
11 years ago
Min RK
633b315a87
Merge pull request #6658 from Carreau/less-175
...
pin less to less than 1.7.5
11 years ago
Jessica B. Hamrick
b650c56a66
One more this/that change
11 years ago
Jessica B. Hamrick
bbb9edf374
Fix bugs with this and that
11 years ago
Jessica B. Hamrick
37c2419c5e
Rename all status_event to kernel_event
11 years ago
Jessica B. Hamrick
40ebe5d816
Make kernel dialogs be a special type of dialog
11 years ago
Jessica B. Hamrick
8f28134a89
Keep trying to reconnect
11 years ago
Jessica B. Hamrick
205a35ceec
Fix equals sign and clarify where the number of restart attempts comes from
11 years ago
Jessica B. Hamrick
e5a5bdcdd3
Handle and test for failed restart in session.js
11 years ago
Jessica B. Hamrick
29e6885b60
Test for autorestart and failed autorestart
11 years ago
Jessica B. Hamrick
f2ad4fc176
Better way to wait inbetween tests
11 years ago
Jessica B. Hamrick
fe2402f99d
Increase wait time between tests
11 years ago
Jessica B. Hamrick
7f8b95a661
Add status_ready.Kernel event and rename status_started to status_created
11 years ago
Jessica B. Hamrick
dea6b85f3c
Fix bug when clicking notification for kernel_dead.Session
11 years ago
Jessica B. Hamrick
504f0b4d9d
Add docstring to Session.restart
11 years ago
Jessica B. Hamrick
c43e06bbc4
Add test for kernel_dead.Session
11 years ago
Jessica B. Hamrick
42e863db8c
Remove debugging statements
11 years ago
Jessica B. Hamrick
01ba501b88
Fix event tests
11 years ago
Jessica B. Hamrick
9180004fd1
Better way of logging events
11 years ago
Jessica B. Hamrick
8d4c9e7f30
Add tests for events
11 years ago
Jessica B. Hamrick
fa718fc8d2
Use Session.restart in Notebook.start_session
11 years ago
Jessica B. Hamrick
d5a4dec6c3
Add restart function to session
11 years ago
Jessica B. Hamrick
42a9a1f46d
Make kernel js events clearer and more consistent
11 years ago
Jessica B. Hamrick
f77e60764e
Use session.delete rather than kernel.kill
11 years ago
Jessica B. Hamrick
951d9a7249
Don't actually change kernel constructor signature
11 years ago
Jessica B. Hamrick
05611569ec
Add docstrings to kernel.js
11 years ago
Jessica B. Hamrick
4aa66d09dd
Add docstrings to session.js
11 years ago
Jessica B. Hamrick
2dbfc30934
Add no_kernel.Kernel event
11 years ago
Jessica B. Hamrick
d606d53b4e
More informative error messages
11 years ago
Jessica B. Hamrick
999daf041c
Handle query string in Kernel.start
11 years ago
Jessica B. Hamrick
b9cf034d51
Add some more kernel tests
11 years ago
Jessica B. Hamrick
befe8eb720
Update session tests
11 years ago
Jessica B. Hamrick
99f686918b
Fix kernel and session tests
11 years ago
Jessica B. Hamrick
741b2e97b1
Only set channels to null when they are fully closed
11 years ago
Jessica B. Hamrick
a601531e1c
Move channels into their own object
11 years ago
Jessica B. Hamrick
cf98a0a5a0
Better respect for abstraction barriers
11 years ago
Jessica B. Hamrick
2f3d8617b4
Fix shutdown test
11 years ago
Jessica B. Hamrick
ade7692ccd
Fix bugs in kernel.js
11 years ago
Jessica B. Hamrick
3dfe601a8f
Fix session references in toolbar and menubar
11 years ago
Jessica B. Hamrick
9f1574eb6c
User correct check for whether kernel is running in tests
11 years ago
Jessica B. Hamrick
bd3c553d44
Fix messages received by notification area
11 years ago
Jessica B. Hamrick
bd16964276
Clean up kernel.js
11 years ago
Jessica B. Hamrick
c0eb372612
Fix bugs introduced into session.js
11 years ago
Jessica B. Hamrick
3f00b88baa
Fix reference to session in notebook.js
11 years ago
Jessica B. Hamrick
8d76a40677
Clean up session class
11 years ago
Bussonnier Matthias
32bcaac5e2
pin less to less than 1.7.5
...
1.7.5 drop all vendor-prefixed values that are set to the default value
of most browser leading to huge change in the number of lines in css and
pain everywhere.
11 years ago
MinRK
1da7562d55
trigger trust_changed properly on load
...
event signature was not consistent
11 years ago
Mateusz Paprocki
ff5b4c6874
Test IPython.utils.fixConsole() (really ansispan())
11 years ago
Mateusz Paprocki
ba54e020a3
Use more yellowish color for ansiyellow
11 years ago
Mateusz Paprocki
904216d546
Fix ansispan() to ignore stray [0m
11 years ago
Jonathan Frederic
d2df98ce1a
Fix conflict with d1305d7510cc3
11 years ago
Manuel Riel
a490488f62
remove commented-out code
11 years ago
Manuel Riel
67f2322a8c
simplify bin-file test
11 years ago
Manuel Riel
0e95bd9eda
remove unused import in test_files.py
11 years ago
Manuel Riel
4a5c7ebb25
remove unused import
11 years ago
Jonathan Frederic
032300ea49
Merge pull request #6645 from jdfreder/css_order
...
Make sure DOMWidget _css is set after basic style traits
11 years ago
Thomas Kluyver
95b857b679
Merge pull request #6637 from minrk/notice-python-error
...
Check for Python errors in js tests
11 years ago
Thomas Kluyver
6163656f28
Merge pull request #6634 from minrk/select-contains
...
don't use contains in SelectWidget item_query
11 years ago
Jonathan Frederic
176529cce2
Make sure DOMWidget _css is set after basic style traits
11 years ago
Matthias Bussonnier
cfbd65d808
Merge pull request #6640 from jhamrick/ui-tour
...
Fix icons and typos in ui tour
11 years ago
Jessica B. Hamrick
27562308b1
Fix button alignment/size
11 years ago
Jonathan Frederic
60531c917f
Merge pull request #6481 from jdfreder/intvalidatefix
...
Fix bug in bounded int/float logic.
11 years ago
Jessica B. Hamrick
9ee37de1db
Fix icons and typos in ui tour
11 years ago
MinRK
845c7b4700
Check for Python errors in js tests
...
When running a cell in the js tests,
this checks for any errors and treats them as a failure.
Helps avoid confusion caused by silently ignoring failures in Python code.
11 years ago
MinRK
6740d0492e
don't use contains in SelectWidget item_query
...
gives false positive matches when some values are substrings of others
11 years ago
Manuel Riel
c5069fe1fd
remove redundant abs_path
11 years ago
Manuel Riel
fc59a1b927
use ContentManagers own is_hidden() function
11 years ago
Thomas Kluyver
825284bc6d
Remove superfluous error checking
11 years ago
Manuel Riel
28d4444def
2 checks for python2 and python3)
11 years ago
Manuel Riel
bb8e33d70d
fix bin-file test in ipython3
11 years ago
Manuel Riel
775ea55206
another shot at bin-tests on python3
11 years ago
Manuel Riel
e75cfa24df
make base64 decoding ipython3 compatible
11 years ago
Manuel Riel
c6d548fbeb
correctly handle base64 and json, improve bin-file test
11 years ago
Jonathan Frederic
438dc56ea6
Merge pull request #6617 from SylvainCorlay/selection
...
Selection Widgets: forcing 'value' to be in 'values'
11 years ago
Manuel Riel
dc352a334b
Use \xFF in bin file test
11 years ago
Manuel Riel
2268268a9d
add tests for file download via ContentsManager
11 years ago
Thomas Kluyver
590ba19ac3
Clean up some JS code
11 years ago
Thomas Kluyver
1ff846520b
Put callbacks for create_view and create_child_view in options
...
And add errback support
11 years ago
Thomas Kluyver
c4a9cf9020
Fix logic
11 years ago
Thomas Kluyver
09b10dcb86
Make changes suggested by @jdfreder
11 years ago
Thomas Kluyver
5953a3f874
Allow widget views to be loaded from require modules
...
This required refactoring things that create widget views to use
callbacks instead of return values.
11 years ago
Manuel Riel
36c1a145e9
add new FilesHandler class
11 years ago
Manuel Riel
2b4cbbfea2
add new FilesHandler to serve files from ContentsManager.
11 years ago
Matthias Bussonnier
e808d23594
Merge pull request #6607 from minrk/cluster-load-remove
...
remove deleted profiles from cluster list
11 years ago
Matthias Bussonnier
ffc574d4dd
Merge pull request #6596 from minrk/stream-text
...
msgspec 5: stream.data -> stream.text
11 years ago
Matthias Bussonnier
e504ea6d1f
Merge pull request #6608 from minrk/rm-delayed-callback
...
stop using deprecated DelayedCallback
11 years ago
Matthias Bussonnier
b0cecaf91b
Merge pull request #6606 from minrk/logname
...
use app name on tornado log statements
11 years ago
Sylvain Corlay
54a36e7369
forcing value to be in values
11 years ago
Jason Grout
7700848737
Add semantic classes to top-level containers for single widgets
...
This makes it much easier to customize all widgets of a certain type using
CSS. For example, to change just the IPython widget selects, a CSS
rule like .widget-select select {...} should work well.
11 years ago
MinRK
ee1d9d65f3
stop using deprecated DelayedCallback
...
in favor of simpler IOLoop.add_timeout
It was added in pyzmq, but deprecated in pyzmq-13.
11 years ago
MinRK
1f231f7b5a
remove deleted profiles from cluster list
11 years ago
MinRK
84a72ae87a
use app name on tornado log statements
...
avoids mixture of 'tornado.access' and 'NotebookApp'
11 years ago
Sylvain Corlay
8a384cd489
adding a tooltip in IPython buttons
11 years ago
Matthias Bussonnier
0d9db64180
Merge pull request #6582 from jdfreder/symmetric_state
...
Symmetric widget get/set_state
11 years ago
Matthias Bussonnier
eeb9cb0209
Merge pull request #6558 from jhamrick/kernel-start-failure
...
Handle kernel start failures more gracefully
11 years ago
Jessica B. Hamrick
1d6359f970
Use codemirror for error messages
11 years ago
Min RK
28edb94897
Merge pull request #6488 from jhamrick/lock-cells
...
Proof of concept for preventing cell deletion via metadata
11 years ago
MinRK
f69b1b15a3
msgspec 5: stream.data -> stream.text
11 years ago
Bussonnier Matthias
0dcce32de7
use standard html
11 years ago
Gordon Ball
48b6f53f51
Require base/js/keyboard and use keycode.enter
11 years ago
Jessica B. Hamrick
60b18ad23e
Fix ReferenceError in js tests, fixes #6542
11 years ago
Jonathan Frederic
60bf0f5b2f
s/apply_update/set_state
11 years ago
Jonathan Frederic
852ec2ab69
s/_handle_receive_state/set_state in tests too
11 years ago
Jonathan Frederic
f83140dae8
s/long thing/set_state
11 years ago
Jessica B. Hamrick
6bc5702398
More descriptive short message
11 years ago
Jessica B. Hamrick
6a8cae2913
Don't pop up modal dialog
11 years ago
Jessica B. Hamrick
d0e942213d
Always show the modal dialog, and have a fallback generic message
11 years ago
Jessica B. Hamrick
46e40e5ea1
Return a proper JSON object
11 years ago
Jessica B. Hamrick
5e1e8a116c
Use 501 error code instead of 400
11 years ago
Jessica B. Hamrick
c4a89cd54d
Better user experience when kernel isn't found
11 years ago
Jessica B. Hamrick
5ba858fc7c
Remove 'we' from message
11 years ago
Jessica B. Hamrick
263181c416
Report the exact error that occurred
11 years ago
Jessica B. Hamrick
58fcb3abb9
Show the user a different notification
11 years ago
Jessica B. Hamrick
cfc234dc89
Handle NoSuchKernel errors more gracefully
11 years ago
Min RK
780ceee03a
Merge pull request #6415 from Carreau/move-md-show-logic
...
Move md-cell display logic to css
11 years ago
Matthias Bussonnier
4c480e3ca1
Merge pull request #6573 from Carreau/drop-2.6
...
Drop some 2.6 workaround.
11 years ago
Matthias Bussonnier
a940971866
Merge pull request #6568 from minrk/remember-kernel
...
Make default kernel configurable
11 years ago
MinRK
a060056e36
remove unused dateformat
...
we are using moment.js for dates now
11 years ago
Matthias Bussonnier
9155675440
drop more 2.6 hacks
11 years ago
Jonathan Frederic
b5195e1b17
Merge pull request #6548 from SylvainCorlay/widget_views_by_id
...
Make WidgetModel.views be an object indexed by view id
11 years ago
Matthias Bussonnier
2d490858e5
Merge pull request #6544 from jhamrick/notification-widget
...
Clean up notification widget
11 years ago
sylvain.corlay
60925f0a1a
hasOwnProperty
11 years ago
MinRK
072bcdc484
allow kernel_name to be undefined in js
...
Falls back to KM.default_kernel_name,
as configured server-side.
11 years ago
Doug Blank
6c3d40bbcd
Update documentation for functions that can return null
11 years ago
MinRK
974d45343e
allow kernel_name to be undefined in requests
...
fallback to KM.default_kernel_name in that case
11 years ago
Doug Blank
3997769def
Fixed off by one error in get_prev_cell
...
Not sure why this was a TODO. Maybe `find_cell_index()` returned zero at one time, but in the browsers I tested, it always returns null if not found.
11 years ago
Jason Grout
1204af464b
on("destroy",...) -> once("destroy",...) so we don't keep a reference to it, preventing gc
...
Thanks to Sylvain Corlay for the suggestion.
11 years ago
Jason Grout
9d96319f76
Load the link models
11 years ago
Jason Grout
d00be3a8a1
Load link widget javascript
11 years ago
Jason Grout
bba453aa0b
Fix whitespace
11 years ago
Sylvain Corlay
859de50a68
Adding directional link widget
11 years ago
Jason Grout
34939886a3
Adding Link widget
11 years ago
Jessica B. Hamrick
9c1e7fa2eb
Clarify stickiness of warning/danger notifications
11 years ago
Sylvain Corlay
d8635fc1cc
on_atomic_change -> on_some_change
11 years ago
Sylvain Corlay
b6a0f60d3f
Make Widget.views be an object indexed by view id
11 years ago
Jessica B. Hamrick
6f49f4b78e
Add tests for notification area and widgets
11 years ago
Jessica B. Hamrick
e68f6e585a
Small changes to notification widget
11 years ago
Jessica B. Hamrick
2c5a10a6e0
Add documentation to notification area
11 years ago
Jessica B. Hamrick
5769a5bd97
Add documentation to NotificationWidget methods
11 years ago
Jessica B. Hamrick
180dd71e81
Allow timeout and click callback
11 years ago
Jessica B. Hamrick
756d4063c3
Fix tests
11 years ago
Jessica B. Hamrick
10d500525a
Make cell be undeletable ONLY when metadata is explicitly false
11 years ago
Jessica B. Hamrick
a018cb4299
Add tests for undeletable cells
11 years ago
Jessica B. Hamrick
990425f034
Handle 'deletable' cell metadata
11 years ago
Jonathan Frederic
341527779b
Fix notify_trait getting called too early.
11 years ago
Thomas Kluyver
3cb8c5a0a1
Merge pull request #6532 from SylvainCorlay/barewidgetmodels
...
Fix Issue #6530
11 years ago
Matthias Bussonnier
4609465161
Merge pull request #6472 from parleur/master
...
Keep metadata through celltype changes
11 years ago
Sylvain Corlay
a9fca81e95
Set default view to None and never display widget with no view
11 years ago
Thomas Kluyver
f420cdf3e7
Make comm_manager a property of kernel, not shell
11 years ago
Jonathan Frederic
aec576a5f2
Fix infinite loop typo
11 years ago
Gordon Ball
3ec873b084
Change _parse_text_input to _parse_value and update float range regex
12 years ago
Gordon Ball
3011820cd3
Add support for parsing pairs of numbers for range sliders
12 years ago
Gordon Ball
67630b0886
Ignore the event object for handleTextChange
12 years ago
Gordon Ball
0f7fbc0781
Add keydown listener to commit changes on <enter>
12 years ago
Gordon Ball
0b45bacd0d
Add support to the float slider
12 years ago
Gordon Ball
6a976cf2b6
Use contentEditable to allow modification via the the slider readout
12 years ago
Matthias Bussonnier
684d739d92
Merge pull request #6520 from minrk/comm-default
...
avoid copious warnings in interact tests
12 years ago
Sylvain Corlay
fb336de4ed
register bare views
12 years ago
Brian E. Granger
4ec1a3b41e
Merge pull request #6235 from jdfreder/addclass
...
Remove add/remove_class and set/get_css.
12 years ago
Jonathan Frederic
9f3dfbc56c
Fix slidercolor on widget construction
12 years ago
Jonathan Frederic
d4d554052e
Address problems found in in-person review
12 years ago
Brian E. Granger
1e8b4ee586
Merge pull request #6051 from chronitis/interact-widget-on-demand
...
Interact on_demand option
12 years ago
Matthias Bussonnier
56d48e2892
codemirror rempo moved, update links in comments
12 years ago
Jonathan Frederic
aa04d40a8d
Added test
12 years ago
Matthias Bussonnier
633dbc8131
Merge pull request #5844 from jdfreder/scrollmanager
...
'Paul' scroll feature
12 years ago
Jonathan Frederic
f81d88aebf
fab css
12 years ago
Jonathan Frederic
a7e7f95ef1
Remove forgotten hreadout
12 years ago
Jonathan Frederic
b1c1e3533a
fab css
12 years ago
Jonathan Frederic
02d7039a00
Cleaned up hbox and vbox widget div styles,
...
removed 5px margin
12 years ago
Jonathan Frederic
6637b768cc
Merge pull request #6463 from SylvainCorlay/bulk_update
...
Bulk update of widget attributes
12 years ago
Min RK
bfdb098d76
Merge pull request #6495 from Carreau/expandpath
...
Expand user home path in template search path.
12 years ago
MinRK
ec4d3597c7
avoid copious warnings in interact tests
...
comm was mocked out, but in a way that makes traitlets complain
12 years ago
Sylvain Corlay
cd782c916d
state_lock loop
12 years ago
Gordon Ball
48e1a0b2bc
s/choose/manual/g
12 years ago
Jonathan Frederic
46cefe28a9
Merge pull request #6497 from SylvainCorlay/_ws_opened
...
status_started.Kernel was never triggered
12 years ago
MinRK
979b8dd9db
actually use new tornado_settings
...
instead of deprecated webapp_settings
12 years ago
Sylvain Corlay
c4006f1439
status_started.Kernel was never triggered
12 years ago
Thomas Kluyver
ab13b8fde6
Merge pull request #6491 from minrk/tornado_settings
...
rename webapp_settings to tornado_settings
12 years ago
Min RK
6b0421f3d8
Merge pull request #6480 from minrk/origin-check-no-proto
...
only compare host:port in Websocket.check_origin
12 years ago
Matthias Bussonnier
2c65ea0416
Merge pull request #6431 from jhamrick/input_ui_focus
...
Register input with keyboard manager
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
Jonathan Frederic
0bd868888e
Make HeadingScrollManager scroll to heading elements, not cells.
12 years ago
Sylvain Corlay
769e7fa108
rename to on_atomic_change
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
4bc339bd95
better log messages when rejecting cross-origin requests
12 years ago
Jonathan Frederic
9831e6ea1b
Make the default the single page scroller.
12 years ago
Jonathan Frederic
c957cbc9c2
Set heading scroll manager as default scroll manager.
12 years ago
Jonathan Frederic
46eb5288bc
Scroll to all heading levels <= target level.
12 years ago
Jonathan Frederic
f6adf3e064
Fixed dumb typo,
...
forgot to update scrollmanager ref to scroll_manager.
12 years ago
Jonathan Frederic
3f9fea0328
Added comments clarifying scroll units
12 years ago
Jonathan Frederic
8c0c04910b
options bug fix
12 years ago
Jonathan Frederic
3ff4d4c16e
Address review comments
12 years ago
Jonathan Frederic
27058f4804
Removed ScrollManager selector combo.
12 years ago
Jonathan Frederic
e843a3d0e4
Fixed rebase indents
12 years ago
Jonathan Frederic
8617696c5b
Added heading and slideshow scroll managers
12 years ago
Jonathan Frederic
7e7683a587
Added scroll mode selector,
...
fixed rebase conflicts.
12 years ago
Jonathan Frederic
62a21b0e6f
Add ScrollManager to global ipy namespace in main.js instead of,
...
in the bottom of the scroll manager js file.
12 years ago
Jonathan Frederic
5c5025f3b6
Added smooth scroll to replace std browser behavior.
12 years ago
Jonathan Frederic
c2d72353a2
Fixed bug
12 years ago
Jonathan Frederic
617f078165
Make slideshow toolbar add classes to modified cells.
12 years ago
Jonathan Frederic
06ad682d68
Add scrollmanager
12 years ago
Min RK
a712e079b4
Merge pull request #6483 from jhamrick/fix-heading-anchors
...
Trim anchor link in heading cells, fixes #6324
12 years ago
Jonathan Frederic
591b2b3ad7
Tabs->Spaces
12 years ago
Jonathan Frederic
02e3a58030
s/fore_color/color
...
s/back_color/background_color
12 years ago
Jonathan Frederic
0acd8daf71
Merge pull request #6438 from SylvainCorlay/model_destroy_message
...
Destroy backbone model on comm:close
12 years ago
Sylvain Corlay
e809fcb545
stop listening
12 years ago
Jessica B. Hamrick
d46606a48b
Trim anchor link in heading cells, fixes #6324
12 years ago
Jonathan Frederic
9c1c4f9f0a
Fix bug in bounded int/float logic.
12 years ago
MinRK
d06e337881
only compare host:port in Websocket.check_origin
...
don't include protocol
- matches tornado's own behavior
- avoids incorrect 403 in http-behind-https proxy situations.
12 years ago
Sylvain Corlay
75cb63fba2
Adding a comment and renaming on_bulk_change to on_change
12 years ago
Sylvain Corlay
06747c1ada
simplification of trigger destroy
12 years ago
Jonathan Frederic
4495fa5246
Merge pull request #6437 from weichm/patch-1
...
"event" is not defined error in Firefox
12 years ago
Jonathan Frederic
78db5dc24e
Merge pull request #6377 from jasongrout/fix-widget-prefix
...
Strip the IPY_MODEL_ prefix from widget IDs before referencing them.
12 years ago
Pierre Gerold
406860fd35
Typo and presentation
12 years ago
Pierre Gerold
98f2d989b6
Modify cells converter funcs to keep metadata through
12 years ago
Richard Everson
be80e62340
Check time of last ping before timing out a missing pong.
12 years ago
Sylvain Corlay
222dc5fb3e
Destroy backbone model on comm:close
12 years ago
sylvain.corlay
e77b21cb22
optimization of WidgetModel.apply_update
12 years ago
sylvain.corlay
6eea0c37aa
Added on_bulk_change method in WidgetModel
12 years ago
Jason Grout
78ae8b36c5
Fix several small bugs in the notebook trust framework
...
1. The trust dialog is not called with the notebook context, so we have to use the closure to bind to a notebook event.
2. Replace != with !==
3. The trust_changed.Notebook event default handler expects the trust value to be value key inside an object. In fact, the event handler is redundant with the code--both seem to set the trust value of the current notebook.
12 years ago
MinRK
5bc118fb6c
handle system-wide kernelspecs
...
in html tets_kernelspecs_api, which can cause counts to be greater than 2
12 years ago
Thomas Kluyver
fdb375e0ef
Merge pull request #6380 from ellisonbg/latex-complete
...
Adds Julia-style latex->unicode tab completion
12 years ago
Thomas Kluyver
bdb5481a1e
Remove leftover debugging
12 years ago
weichm
06b2926a0a
"event" is not defined error in Firefox
...
see http://stackoverflow.com/questions/20522887/referenceerror-event-is-not-defined-error-in-firefox
"WebKit follows IE's old behavior of using a global symbol for "event", but Firefox doesn't..."
12 years ago
Jessica B. Hamrick
b8d3d2c6af
Register input with keyboard manager, fixes #6426
12 years ago
Matthias Bussonnier
97e99d0661
Merge pull request #6412 from takluyver/sessions-rest-api-fix
...
Sessions rest api fix
12 years ago
Jessica B. Hamrick
3aada4008c
Rename chkb to text
12 years ago
Jessica B. Hamrick
c3c11e5820
Initial version of textbox celltoolbar ui element
12 years ago
Matthias Bussonnier
3dc94d6911
Merge pull request #6419 from takluyver/sort-test-dir-contents
...
Sort directory contents in test before assertion
12 years ago
Thomas Kluyver
fa6056e9ed
Sort directory contents in test before assertion
...
Should fix recent test failures, but I can't replicate failure on my
computer, so it's not clear that it's fixed.
12 years ago
Fernando Perez
a5fd908b28
Merge pull request #6408 from minrk/new-cell-code
...
make default cell type configurable
12 years ago
MinRK
6cee444630
make default cell type configurable
...
- adds IPython.notebook.default_cell_type
- default is 'code' (matching IPython 2.0)
- special heuristic values include:
- 'selected': default to selected cell (current master behavior)
- 'above': default to cell above
- 'below': default to cell below
12 years ago
Matthias BUSSONNIER
186c8ae41d
remove useless comment
12 years ago
Matthias BUSSONNIER
a9b4bdc03f
Move md-cell display logic to css
12 years ago
Thomas Kluyver
b2737e668e
Add tests and fix some issues
...
Tests taken from #6360
12 years ago
Thomas Kluyver
0e109ee4be
Correct comment
12 years ago
MinRK
dbe65d0cd5
remove unused TreeRedirectHandler
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
7e681c1c53
Merge pull request #6302 from minrk/ws-heartbeat-timeout
...
close websocket connections on ping/pong timeout
12 years ago
Matthias Bussonnier
df67bd1720
Merge pull request #6406 from minrk/celltoolbar-rendered
...
don't hide cell toolbar on rendered text cells
12 years ago
Thomas Kluyver
ca8dabf705
Fix 404 error when accessing nonexistant session
12 years ago
Thomas Kluyver
4c4af25734
Fix failure message for tests
12 years ago
Thomas Kluyver
76b05b24af
Handle sessions where the kernel has been killed
12 years ago
Thomas Kluyver
81b06d81a1
Merge pull request #6358 from minrk/contents-missing
...
fix directory listing with broken symlinks
12 years ago
MinRK
78fdc1ebb4
move mergeopt to utils
...
from Cell
12 years ago
MinRK
6038612732
don't hide cell toolbar on rendered text cells
...
because it annoys @Carreau
12 years ago
Matthias Bussonnier
9e8cf39956
Merge pull request #6258 from patricktokeeffe/patch-1
...
Update custom.js
12 years ago
Min RK
aaa027f503
Merge pull request #6267 from Carreau/less-jq-ui
...
Remove some jquery-UI classes.
12 years ago
Matthias BUSSONNIER
7752320295
get rid of some jq-ui- style
12 years ago
Min RK
fbae96f9cb
Merge pull request #6269 from takluyver/atomic-save
...
Implement atomic save
12 years ago
MinRK
58ecfc2376
catch any exception while waiting to connect
...
requests 2.4 changed the exception type for a failed connection
12 years ago
Brian E. Granger
a67c7e83a6
Adding tests and limiting CM mode to python 3.
12 years ago
Brian E. Granger
2dfd4079ec
Cleaning up and only doing latex completion for python 3.
12 years ago
Brian E. Granger
27f2f6baaa
Adding regexp for unicode identifers to CM mode.
12 years ago
Jason Grout
2acee4a269
Strip the IPY_MODEL_ prefix from widget IDs before referencing them.
12 years ago
Jonathan Frederic
2f9dcb852c
Fab CSS
12 years ago
Jonathan Frederic
cb9014e42c
Fixed rebase bugs and other bugs.
12 years ago
Jonathan Frederic
fa1c6f93f1
Added bootstrap3 progress bar classes
12 years ago
Jonathan Frederic
9b4d19bad7
Added Bootstrap specific classes,
...
and fixed a few bugs here and there...
12 years ago
Jonathan Frederic
a0e70e350f
Fix some bugs found by the widget examples,
...
add margin and padding base traits,
add overflow traits to box base.
12 years ago
Jonathan Frederic
834fe2d044
Fab CSS
12 years ago
Jonathan Frederic
42cc27e1f5
Finished style attributes.
12 years ago
Jonathan Frederic
fdcf263965
Partial implementation of styles
12 years ago
Jonathan Frederic
9af77a6374
Initial crack at using specific traits for styling.
12 years ago
Jonathan Frederic
1797243f7a
Fix tests
12 years ago
Jonathan Frederic
f85a01041c
Remove add/remove class methods,
...
Remove helper set/get css methods
12 years ago
Paul Ivanov
78918ba827
Merge pull request #6359 from minrk/build-css
...
build css
12 years ago
Paul Ivanov
583fc21488
Merge pull request #6371 from minrk/dashboard-test-quickfix
...
minor fixes in dashboard tests
12 years ago
MinRK
fb0421107c
minor fixes in dashboard tests
...
events and regular expressions weren't quite right, which could cause occasional test failures.
12 years ago
MinRK
6345b6c874
fix handling of no-checkpoint-defined
...
a few typos and missing handling of undefined checkpoint
regression introduced in #6205
12 years ago
Min RK
89f5ec3677
Merge pull request #6306 from coderforlife/master
...
Minor improvements to file upload.
12 years ago
MinRK
318d46d647
build css
...
looks like a recent PR didn't have a final render of the LESS
12 years ago
MinRK
819c3c326c
fix directory listing with broken symlinks
...
directory listing would 404 if any listed file doesn't exist
(e.g. symlink to missing target).
Previously-failing test included.
12 years ago
Gordon Ball
859e9f5261
Change from on_demand kwarg to interact_choose function
12 years ago
Gordon Ball
8296f24904
Merge master
12 years ago
Jonathan Frederic
cf0ca9d4a5
Merge pull request #6050 from chronitis/interact-range-widgets
...
Range widgets
12 years ago
Jonathan Frederic
1b29be13c6
Merge pull request #6332 from jasongrout/widget-property-lock
...
Widget property lock should compare json states, not python states
12 years ago
Gordon Ball
9383822d7a
Clean up validation in __init__
12 years ago
Gordon Ball
a096d01310
Test case for setting only lower or upper, no sensible default so should be an error
12 years ago
Gordon Ball
a12b1a50a9
Change `range` trait to `_range`
12 years ago
Gordon Ball
1a8b77231e
Remove errant tabs from js
12 years ago