Min RK
5ff9ded54a
Merge pull request #6614 from takluyver/nb-terminal-ui
...
Terminal emulator in the notebook
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
Jonathan Frederic
ba77877c18
Rebase fixes
11 years ago
Jonathan Frederic
db10ae8f2d
s/target_name/widget_class
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
Thomas Kluyver
659accf69e
Add event for Markdown cell rendered
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
Bussonnier Matthias
1b200e5504
recompute dummy size dynamically + styling in css
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
Thomas Kluyver
eacd05505c
Open download in a new window instead of changing the URL
...
Closes gh-6764
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
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
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
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
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
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
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
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
MinRK
3946dedbda
remove redundant 'responsive-utilities' from style.less
...
it's already included in bootstrap.less
12 years ago
Sylvain Corlay
e9ceb94db1
genereate css
12 years ago
Jonathan Frederic
98cef15a7c
Merge pull request #6221 from Carreau/cm4
...
Switch to CodeMirror 4.6.0
12 years ago
Min RK
1b5874ac65
Merge pull request #6629 from minrk/wscookie
...
remove on_first_message authentication
12 years ago
Sylvain Corlay
43d08b0795
fix alignment
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
Jonathan Frederic
24096b0f45
Separate widget model name from com target name.
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
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
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
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
befe8eb720
Update 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
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
MinRK
1da7562d55
trigger trust_changed properly on load
...
event signature was not consistent
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
032300ea49
Merge pull request #6645 from jdfreder/css_order
...
Make sure DOMWidget _css is set after basic style traits
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
MinRK
6740d0492e
don't use contains in SelectWidget item_query
...
gives false positive matches when some values are substrings of others
12 years ago
Thomas Kluyver
825284bc6d
Remove superfluous error checking
12 years ago
Thomas Kluyver
590ba19ac3
Clean up some JS code
12 years ago
Thomas Kluyver
1ff846520b
Put callbacks for create_view and create_child_view in options
...
And add errback support
12 years ago
Thomas Kluyver
c4a9cf9020
Fix logic
12 years ago
Thomas Kluyver
09b10dcb86
Make changes suggested by @jdfreder
12 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.
12 years ago
Matthias Bussonnier
ffc574d4dd
Merge pull request #6596 from minrk/stream-text
...
msgspec 5: stream.data -> stream.text
12 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.
12 years ago
Sylvain Corlay
8a384cd489
adding a tooltip in IPython buttons
12 years ago
Matthias Bussonnier
0d9db64180
Merge pull request #6582 from jdfreder/symmetric_state
...
Symmetric widget get/set_state
12 years ago
Matthias Bussonnier
eeb9cb0209
Merge pull request #6558 from jhamrick/kernel-start-failure
...
Handle kernel start failures more gracefully
12 years ago
Jessica B. Hamrick
1d6359f970
Use codemirror for error messages
12 years ago
Min RK
28edb94897
Merge pull request #6488 from jhamrick/lock-cells
...
Proof of concept for preventing cell deletion via metadata
12 years ago
MinRK
f69b1b15a3
msgspec 5: stream.data -> stream.text
12 years ago
Gordon Ball
48b6f53f51
Require base/js/keyboard and use keycode.enter
12 years ago
Jonathan Frederic
60bf0f5b2f
s/apply_update/set_state
12 years ago
Jessica B. Hamrick
6a8cae2913
Don't pop up modal dialog
12 years ago
Jessica B. Hamrick
d0e942213d
Always show the modal dialog, and have a fallback generic message
12 years ago
Jessica B. Hamrick
c4a89cd54d
Better user experience when kernel isn't found
12 years ago
Jessica B. Hamrick
5ba858fc7c
Remove 'we' from message
12 years ago
Jessica B. Hamrick
263181c416
Report the exact error that occurred
12 years ago