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
7ee896861c
Don't load html.terminal for tests if terminado not installed
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
157e51f882
Last review comments?
11 years ago
Jonathan Frederic
fc3178e13e
Make order of operations more explicit.
11 years ago
Jonathan Frederic
d33d55bcd8
Review comments
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
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
920d49593c
refuse to run js tests with phantom + tornado 4
...
websocket connections fail with 426 because phantomjs implements a super old draft of webosockets that recent tornado doesn't support
This refused to run in that situation with an informative message.
12 years ago
MinRK
7c2083aa60
test saving with problematic cell contents
12 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.
12 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.
12 years ago
Jessica B. Hamrick
8896b538b5
Add regression tests for live notebook
12 years ago
MinRK
9e425bf94b
move binary msg test to services/serialize
12 years ago
MinRK
8c743d304f
unsigned ints for offsets
...
because signed ints for sizes is icky
12 years ago
MinRK
11f5775103
test binary websocket messages
...
only runs on slimerjs for now
12 years ago
MinRK
3de7e9bd74
test websocket-friendly binary message roundtrip
...
Python-side
12 years ago
MinRK
b548e51550
use TextEncoding for string<->ArrayBuffer
...
requires text-encoding js polyfill, for now
12 years ago
MinRK
3693ac83ae
support binary message from javascript
12 years ago
MinRK
6cef7fcb86
use utf8.js
...
move message serialization to kernel.serialize module
12 years ago
MinRK
c9c131ebf9
s/unserialize/deserialize
12 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
12 years ago
Jessica B. Hamrick
b68507ae91
Display prompt in the notebook correctly
12 years ago
Jessica B. Hamrick
8294a5938b
Right-justify celltoolbar instead of reversing
12 years ago
Jonathan Frederic
c0108e1089
Merge pull request #6681 from SylvainCorlay/widget_hbox_align
...
Minor change in widgets.less to fix alignment issue
12 years ago
Min RK
8107e8a41b
Merge pull request #6669 from SylvainCorlay/font_awesome_update
...
Font awesome update
12 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
12 years ago
MinRK
3946dedbda
remove redundant 'responsive-utilities' from style.less
...
it's already included in bootstrap.less
12 years ago
Thomas Kluyver
74d2ddf751
Merge pull request #6686 from minrk/default-kernel
...
use default kernel name in kernels service
12 years ago
Sylvain Corlay
e9ceb94db1
genereate css
12 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.
12 years ago
Jonathan Frederic
98cef15a7c
Merge pull request #6221 from Carreau/cm4
...
Switch to CodeMirror 4.6.0
12 years ago
Jonathan Frederic
6a304fc63c
Merge pull request #6540 from takluyver/comms-mgr-needs-no-shell
...
Make comm manager (mostly) independent of InteractiveShell
12 years ago
MinRK
7da61bfc13
use default kernel name in kernels service
...
matches sessions API
12 years ago
MinRK
97f7116624
allow session_id to be undefined when starting kernel channels
12 years ago
Min RK
1b5874ac65
Merge pull request #6629 from minrk/wscookie
...
remove on_first_message authentication
12 years ago
Thomas Kluyver
db179403f8
Merge pull request #6510 from Carreau/removecython
...
Remove cython extension and examples.
12 years ago
Sylvain Corlay
43d08b0795
fix alignment
12 years ago
Min RK
00f88ee1be
Merge pull request #6654 from Carreau/closes-6647
...
Have /api return the IPython version
12 years ago
Bussonnier Matthias
76a54f0a82
Have /api return the IPython version
...
return version as a string, to be consistent with other APIs.
closes #6647
12 years ago
Matthias Bussonnier
87dc17ccbc
cleanup style fixed in separate PR and few other things
12 years ago
Matthias Bussonnier
b24e69b058
cleanup whitespace
12 years ago
Matthias Bussonnier
3de3ef9add
add comment about codemirror.modeURL
12 years ago
Matthias Bussonnier
c183aa5fe6
remove unused cm_loadmode
12 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.
12 years ago
MinRK
7aed2fbb55
fix this.editor reference
12 years ago
Matthias Bussonnier
dc912dbdbd
handle somehting selected and multiple cursors and 4 tabs show content in pager
12 years ago
Matthias Bussonnier
e0f19a386e
protect agains undefined
12 years ago
Matthias Bussonnier
804d89351b
rework keyboard management to avoit completer and up/down bugs
12 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.
12 years ago
Jonathan Frederic
262bf7d2c9
Merge pull request #6673 from jhamrick/fix-tooltip
...
Fix broken show in pager button
12 years ago
Jessica B. Hamrick
685040427a
Fix broken show in pager button
12 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
12 years ago
Min RK
63a7969123
Merge pull request #6416 from Carreau/foobarcode
...
Unify Text/CodeCell code.
12 years ago
Min RK
60bfcf8c74
Merge pull request #6665 from jdfreder/travis_please_run_on_this
...
Separate widget model name from com target name.
12 years ago
Jonathan Frederic
4b968ece0b
s/target_name/model_name
12 years ago
Matthias BUSSONNIER
9657a3f7cd
Generalise render/unrender to all cells type
...
Allow change of behavior in pure (custom) css.
12 years ago
Matthias Bussonnier
b2a0798fdf
Merge pull request #6598 from minrk/nbformat-backport
...
nbformat validation
12 years ago
Matthias Bussonnier
a8949405da
Merge pull request #6644 from minrk/trust-changed
...
trigger trust_changed properly on load
12 years ago
Matthias Bussonnier
65f41327c9
Merge pull request #6106 from chronitis/interact-slider-textedit
...
Allow text input on slider widgets
12 years ago
Matthias Bussonnier
7d7b85a043
Merge pull request #6649 from minrk/302-notebooks
...
redirect /api/notebooks to /api/contents
12 years ago
Matthias Bussonnier
fa11da9162
Merge pull request #6586 from jhamrick/kernel-session-js
...
Kernel and session javascript cleanup
12 years ago
Jonathan Frederic
24096b0f45
Separate widget model name from com target name.
12 years ago
MinRK
b87fee048c
redirect /api/notebooks to /api/contents
...
eases 2.x-3.x transition for consumers such as emacs-ipython-notebook
12 years ago
MinRK
b2d946d44e
don't convert notebooks on upload
12 years ago
MinRK
8392c7ac9e
don't check_and_sign old notebooks on upload
12 years ago
MinRK
4ae05c729c
trust is stored in code_cell.metadata
...
not top-level code_cell
12 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.
12 years ago
MinRK
1a4b795870
Use Draft4 JSON Schema for both v3 and v4
...
no longer need jsonpointer
12 years ago
MinRK
91c7d00f95
use jsonschema refs, no need for jsonpointer
12 years ago
Min RK
633b315a87
Merge pull request #6658 from Carreau/less-175
...
pin less to less than 1.7.5
12 years ago
Jessica B. Hamrick
b650c56a66
One more this/that change
12 years ago
Jessica B. Hamrick
bbb9edf374
Fix bugs with this and that
12 years ago
Jessica B. Hamrick
37c2419c5e
Rename all status_event to kernel_event
12 years ago
Jessica B. Hamrick
40ebe5d816
Make kernel dialogs be a special type of dialog
12 years ago
Jessica B. Hamrick
8f28134a89
Keep trying to reconnect
12 years ago
Jessica B. Hamrick
205a35ceec
Fix equals sign and clarify where the number of restart attempts comes from
12 years ago
Jessica B. Hamrick
e5a5bdcdd3
Handle and test for failed restart in session.js
12 years ago
Jessica B. Hamrick
29e6885b60
Test for autorestart and failed autorestart
12 years ago
Jessica B. Hamrick
f2ad4fc176
Better way to wait inbetween tests
12 years ago
Jessica B. Hamrick
fe2402f99d
Increase wait time between tests
12 years ago
Jessica B. Hamrick
7f8b95a661
Add status_ready.Kernel event and rename status_started to status_created
12 years ago
Jessica B. Hamrick
dea6b85f3c
Fix bug when clicking notification for kernel_dead.Session
12 years ago
Jessica B. Hamrick
504f0b4d9d
Add docstring to Session.restart
12 years ago
Jessica B. Hamrick
c43e06bbc4
Add test for kernel_dead.Session
12 years ago
Jessica B. Hamrick
42e863db8c
Remove debugging statements
12 years ago
Jessica B. Hamrick
01ba501b88
Fix event tests
12 years ago
Jessica B. Hamrick
9180004fd1
Better way of logging events
12 years ago
Jessica B. Hamrick
8d4c9e7f30
Add tests for events
12 years ago
Jessica B. Hamrick
fa718fc8d2
Use Session.restart in Notebook.start_session
12 years ago
Jessica B. Hamrick
d5a4dec6c3
Add restart function to session
12 years ago
Jessica B. Hamrick
42a9a1f46d
Make kernel js events clearer and more consistent
12 years ago
Jessica B. Hamrick
f77e60764e
Use session.delete rather than kernel.kill
12 years ago
Jessica B. Hamrick
951d9a7249
Don't actually change kernel constructor signature
12 years ago
Jessica B. Hamrick
05611569ec
Add docstrings to kernel.js
12 years ago
Jessica B. Hamrick
4aa66d09dd
Add docstrings to session.js
12 years ago
Jessica B. Hamrick
2dbfc30934
Add no_kernel.Kernel event
12 years ago
Jessica B. Hamrick
d606d53b4e
More informative error messages
12 years ago
Jessica B. Hamrick
999daf041c
Handle query string in Kernel.start
12 years ago
Jessica B. Hamrick
b9cf034d51
Add some more kernel tests
12 years ago
Jessica B. Hamrick
befe8eb720
Update session tests
12 years ago
Jessica B. Hamrick
99f686918b
Fix kernel and session tests
12 years ago
Jessica B. Hamrick
741b2e97b1
Only set channels to null when they are fully closed
12 years ago
Jessica B. Hamrick
a601531e1c
Move channels into their own object
12 years ago
Jessica B. Hamrick
cf98a0a5a0
Better respect for abstraction barriers
12 years ago
Jessica B. Hamrick
2f3d8617b4
Fix shutdown test
12 years ago
Jessica B. Hamrick
ade7692ccd
Fix bugs in kernel.js
12 years ago
Jessica B. Hamrick
3dfe601a8f
Fix session references in toolbar and menubar
12 years ago
Jessica B. Hamrick
9f1574eb6c
User correct check for whether kernel is running in tests
12 years ago
Jessica B. Hamrick
bd3c553d44
Fix messages received by notification area
12 years ago
Jessica B. Hamrick
bd16964276
Clean up kernel.js
12 years ago
Jessica B. Hamrick
c0eb372612
Fix bugs introduced into session.js
12 years ago
Jessica B. Hamrick
3f00b88baa
Fix reference to session in notebook.js
12 years ago
Jessica B. Hamrick
8d76a40677
Clean up session class
12 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.
12 years ago
MinRK
1da7562d55
trigger trust_changed properly on load
...
event signature was not consistent
12 years ago
Mateusz Paprocki
ff5b4c6874
Test IPython.utils.fixConsole() (really ansispan())
12 years ago
Mateusz Paprocki
ba54e020a3
Use more yellowish color for ansiyellow
12 years ago
Mateusz Paprocki
904216d546
Fix ansispan() to ignore stray [0m
12 years ago
Jonathan Frederic
d2df98ce1a
Fix conflict with d1305d7510cc3
12 years ago
Manuel Riel
a490488f62
remove commented-out code
12 years ago
Manuel Riel
67f2322a8c
simplify bin-file test
12 years ago
Manuel Riel
0e95bd9eda
remove unused import in test_files.py
12 years ago
Manuel Riel
4a5c7ebb25
remove unused import
12 years ago
Jonathan Frederic
032300ea49
Merge pull request #6645 from jdfreder/css_order
...
Make sure DOMWidget _css is set after basic style traits
12 years ago
Thomas Kluyver
95b857b679
Merge pull request #6637 from minrk/notice-python-error
...
Check for Python errors in js tests
12 years ago
Thomas Kluyver
6163656f28
Merge pull request #6634 from minrk/select-contains
...
don't use contains in SelectWidget item_query
12 years ago
Jonathan Frederic
176529cce2
Make sure DOMWidget _css is set after basic style traits
12 years ago
Matthias Bussonnier
cfbd65d808
Merge pull request #6640 from jhamrick/ui-tour
...
Fix icons and typos in ui tour
12 years ago
Jessica B. Hamrick
27562308b1
Fix button alignment/size
12 years ago
Jonathan Frederic
60531c917f
Merge pull request #6481 from jdfreder/intvalidatefix
...
Fix bug in bounded int/float logic.
12 years ago
Jessica B. Hamrick
9ee37de1db
Fix icons and typos in ui tour
12 years ago