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
11ef669ec6
kernelspecs is a dict
...
sort menus client-side
11 years ago
Min RK
696394e27d
allow kernel_name to be specified in url parameter
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
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
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
b53386b37b
Ran function comment conversion tool
11 years ago
Kyle Kelley
a19f345170
Merge pull request #7007 from Carreau/less-update
...
Less update
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
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
Thomas Kluyver
eb14a13843
Merge pull request #6991 from minrk/unhandled-types
...
Handle unrecognized output and cell types
11 years ago
Matthias Bussonnier
ed7bcb5359
close pager on escape on command mode
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
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
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
d64c6e5841
Load nbextensions from config
11 years ago
Min RK
cf91873644
Merge pull request #6866 from takluyver/nb-texteditor
...
Notebook text editor
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
Matthias Bussonnier
5db4b7a8ee
Merge pull request #6668 from Carreau/actions
...
Add notion of action to keyboard manager.
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
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
6419595371
Use NotificationArea in the text editor
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
Min RK
bb23105fdd
Handle unrecognized outputs and cells from the future
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
Min RK
a4aaf94cd6
Merge pull request #6987 from takluyver/i6983
...
Fix conversion of input area to stream output
11 years ago
Thomas Kluyver
5990012062
Fix conversion of input area to stream output
...
Closes gh-6983
11 years ago
Thomas Kluyver
58b0669b9b
Fix asyncy nbconvert to download
11 years ago
Thomas Kluyver
800e2ad25a
'Download as' script
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
da80d64e45
Merge pull request #6955 from Carreau/typeset
...
Actually typeset latex
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
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
Min RK
4a25d24806
don't execute if kernel is not connected
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
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
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
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
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
Min RK
0a22217f7e
Merge pull request #6900 from takluyver/contents-api-get-as-type
...
Contents API get as type
11 years ago
Min RK
0f8127c36f
Merge pull request #6735 from Carreau/native-map
...
Use native map when possible
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
c7529c53eb
Eliminate remaining uses of extra_settings
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
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
8407ba3a08
update frontend with path/name changes
...
- remove name from models
- path is full path (contains name)
11 years ago
Min RK
6d78644411
s/Connection lost/Not Connected/
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
Jonathan Frederic
bfdf9596fd
Fix bug where cell toolbars are not redrawn,
...
when cell metadata is changed.
11 years ago
Thomas Kluyver
e6939f9aa5
Merge pull request #6846 from minrk/deprecate-heading-ui
...
deprecate heading cells in UI
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
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
684516c79f
Fix copy-paste mistakes
11 years ago
Thomas Kluyver
a2f3e23fd8
Add copy_file to contents JS API
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
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
9538726b16
Don't do UI stuff in contents API module
11 years ago
Jeff Hemmelgarn
53463898eb
Move contentmanager to contents
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
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
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
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
KesterTong
993833d018
Replace other methods with ContentManager.new_notebook
...
Replaces Notebook.new_notebook and NotebookList.new_notebook with ContentManager.new_notebook
11 years ago
MinRK
53ef8e1e1e
remove unused OuptutArea.rename_keys
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
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
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
db6cd028ea
Merge pull request #6793 from takluyver/langinfo
...
Move language info from kernelspec to kernel_info_reply
11 years ago
Min RK
965102ba60
Merge pull request #6554 from Carreau/itsallaboutme
...
Add About IPython
11 years ago
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
Thomas Kluyver
659accf69e
Add event for Markdown cell rendered
11 years ago
Thomas Kluyver
8917e9951e
Move terminal CSS into LESS file
11 years ago
Bussonnier Matthias
1b200e5504
recompute dummy size dynamically + styling in css
11 years ago
Thomas Kluyver
9c7d73a05e
Move language info from kernelspec to kernel_info_reply
11 years ago
Thomas Kluyver
eacd05505c
Open download in a new window instead of changing the URL
...
Closes gh-6764
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
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
MinRK
e36df49c5f
tweak collapsed navbar style
...
- notification and indicators appear above menu on small screen
- collapsed menu button floats left
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
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
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.
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
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
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
Min RK
63a7969123
Merge pull request #6416 from Carreau/foobarcode
...
Unify Text/CodeCell code.
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
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
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
29e6885b60
Test for autorestart and failed autorestart
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
c43e06bbc4
Add test for kernel_dead.Session
11 years ago
Jessica B. Hamrick
fa718fc8d2
Use Session.restart in Notebook.start_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
2dbfc30934
Add no_kernel.Kernel event
11 years ago
Jessica B. Hamrick
cf98a0a5a0
Better respect for abstraction barriers
11 years ago
Jessica B. Hamrick
3dfe601a8f
Fix session references in toolbar and menubar
11 years ago
Jessica B. Hamrick
bd3c553d44
Fix messages received by notification area
11 years ago
Jessica B. Hamrick
3f00b88baa
Fix reference to session in notebook.js
11 years ago
MinRK
1da7562d55
trigger trust_changed properly on load
...
event signature was not consistent
11 years ago
Mateusz Paprocki
ba54e020a3
Use more yellowish color for ansiyellow
11 years ago
Jessica B. Hamrick
27562308b1
Fix button alignment/size
11 years ago
Jessica B. Hamrick
9ee37de1db
Fix icons and typos in ui tour
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
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
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
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
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
a940971866
Merge pull request #6568 from minrk/remember-kernel
...
Make default kernel configurable
11 years ago
Matthias Bussonnier
2d490858e5
Merge pull request #6544 from jhamrick/notification-widget
...
Clean up notification widget
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
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
Jessica B. Hamrick
9c1e7fa2eb
Clarify stickiness of warning/danger notifications
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
10d500525a
Make cell be undeletable ONLY when metadata is explicitly false
11 years ago
Jessica B. Hamrick
990425f034
Handle 'deletable' cell metadata
11 years ago
Matthias Bussonnier
4609465161
Merge pull request #6472 from parleur/master
...
Keep metadata through celltype changes
11 years ago
Matthias Bussonnier
56d48e2892
codemirror rempo moved, update links in comments
12 years ago
Matthias Bussonnier
633dbc8131
Merge pull request #5844 from jdfreder/scrollmanager
...
'Paul' scroll feature
12 years ago
Matthias Bussonnier
2c65ea0416
Merge pull request #6431 from jhamrick/input_ui_focus
...
Register input with keyboard manager
12 years ago
Jonathan Frederic
0bd868888e
Make HeadingScrollManager scroll to heading elements, not cells.
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
Jessica B. Hamrick
d46606a48b
Trim anchor link in heading cells, fixes #6324
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
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
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
Jessica B. Hamrick
b8d3d2c6af
Register input with keyboard manager, fixes #6426
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
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
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
7752320295
get rid of some jq-ui- style
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
MinRK
6345b6c874
fix handling of no-checkpoint-defined
...
a few typos and missing handling of undefined checkpoint
regression introduced in #6205
12 years ago
Matthias Bussonnier
77ec6fdfa2
Merge pull request #6205 from Carreau/momentjs
...
use momentjs for nicer dates
12 years ago
Brian E. Granger
9e16415907
Initial messing around.
...
Latex tab completion will have to be done outside the normal
completer logic as the completer line splitting logic uses
\\ as a special character to split lines on. I probably want
to put the latex completions first and it if finds any matches,
don't do any other completion logic. The only issue is that might
short circuit dir/path matching on windows. Hmmm.
12 years ago
Brian E. Granger
4b22230896
Merge pull request #6305 from minrk/switch-kernel-close-ws
...
JS: close WebSockets when killing kernels
12 years ago
MinRK
d5a4553b8e
improve indicators and handling of dead kernels and broken websocket connections
...
I think it's still possible to get to a state with no kernel and insufficient indication.
Imperfect, but an improvement.
12 years ago
MinRK
0909694b50
avoid race condition when deleting/starting sessions
...
javascript doesn't guarantee the order of AJAX requests,
so we give `Session.delete` and `Kernel.kill` a callback signature.
Changing the kernel type calls `Notebook.start_kernel`,
which terminates the previous session, if defined,
before starting the new one.
A flag is stored, to prevent multiple simultaneous attempts to start sessions, raising a SessionAlreadyStarting Error,
preventing the spec_changed event from firing.
12 years ago
MinRK
6d542013a4
add utils.ajax_error_msg for extracting the JSON error message.
12 years ago
MinRK
cb3da26e61
display JSON error message on failed notebook load
...
if there is one (escaped for safety).
12 years ago
Thomas Kluyver
c15284d716
Merge pull request #6238 from ivanov/cm-heading-fonts
...
proportional font-size when editing heading cells
12 years ago
Thomas Kluyver
b95de43b97
Merge pull request #6253 from jasongrout/highlighting-bug
...
Copy codemirror mode configuration instead of changing it
12 years ago
Jason Grout
c80709e5a3
Copy codemirror mode configuration instead of changing it
...
If we change it, the modified (wrong) mode is saved in the notebook, which
wrecks havoc on highlighting once the notebook is saved and reopened.
12 years ago
MinRK
8c4069cc00
add support and tests for uploading and saving regular files
12 years ago
MinRK
6cce477e07
rename notebooks service to contents service
...
minimal functional changes, committing because tests are passing.
12 years ago
Paul Ivanov
fd53a306c4
Merge pull request #6197 from ivanov/set-text-rendered
...
changing text of cell should reset rendered status
12 years ago
Paul Ivanov
9cafcaa421
fix more style consistencies
12 years ago
Paul Ivanov
5e018bba0d
match font family when editing heading cells
12 years ago
Paul Ivanov
468e568ea7
appropriate heading level when loading from JSON
12 years ago
Matthias BUSSONNIER
8b20aee32e
use momentjs for nice dates
12 years ago
Min RK
a2a70b40e2
Merge pull request #6145 from Carreau/style-cleanup
...
JS/CSS Style cleanup
12 years ago
Matthias BUSSONNIER
2899c766a1
remove var
12 years ago
Paul Ivanov
66733621de
proportional font-size when editing heading cells
...
@MinRK @takluyver and I had the idea to do this when we were discussing #6225 .
12 years ago
Thomas Kluyver
4fc8af546b
Merge pull request #5859 from watercrossing/addPageUpDown
...
add page-up and page-down functionality to the autocomplete dropdown
12 years ago
Paul Ivanov
86f38a8f3b
call unrender() when setting text of cells
12 years ago
Min RK
254d372522
Merge pull request #6227 from Carreau/cellt-g-event
...
Use global event for celltoolbar
12 years ago
Thomas Kluyver
274cfb3af2
Merge pull request #6225 from ivanov/split-merge-heading-cells
...
allow splitting and merging of heading cells
12 years ago
Matthias BUSSONNIER
aad51f9527
rename ipevents to events for consistency
12 years ago
Matthias BUSSONNIER
2c4f2f98a6
Use global event for celltoolbar
12 years ago
Matthias BUSSONNIER
a72bd4f52e
use dataformat module explicitely
12 years ago
Matthias BUSSONNIER
b63cb1f34f
remove unused dependecy and css class
12 years ago
Matthias BUSSONNIER
8506e2c257
remove empty style function of save widget
12 years ago
Matthias BUSSONNIER
04088c9559
remove empty style function
12 years ago
Matthias BUSSONNIER
4d9611a9ff
add TODO
12 years ago
Matthias BUSSONNIER
c468caeb19
add extra var for local variable
12 years ago
Matthias BUSSONNIER
233ef2180d
remove unused variable
12 years ago
Matthias BUSSONNIER
4f7f90dca8
comment typo
12 years ago
Matthias BUSSONNIER
660ddf76af
move tolbar styling to css
12 years ago
Matthias BUSSONNIER
72c0e4446f
command_mode_icon typos (dash instead of underscore)
12 years ago
Matthias BUSSONNIER
1f0ef5dc97
more cleanup
12 years ago
Matthias BUSSONNIER
d732098ee1
remove uselessrandom id, and move styling to css
12 years ago
Matthias BUSSONNIER
5b9f518513
move styling from js to css
12 years ago
Matthias BUSSONNIER
01a0d038d4
move styling from js to css
12 years ago
Matthias BUSSONNIER
a97f4f69cc
move styling from js to css
12 years ago
Matthias BUSSONNIER
09e866a750
remove js styling, already done in css + deprecate warning
12 years ago
Matthias BUSSONNIER
0b092b4199
movestyling from js to css
12 years ago
Matthias BUSSONNIER
b8d98e9d81
move border-box-sizing from js to css
...
nothing to do in js, pure styling.
12 years ago
Matthias BUSSONNIER
52309fba7c
Transfer of border-box-sizing from js to css
...
`border-box-sizing` is pure styling, it has nothing to do in Javascript
it should be put in css to be overwritable.
12 years ago
Matthias BUSSONNIER
d7cc8dcf8d
a few todo
12 years ago
Min RK
c007debe3a
Merge pull request #6084 from tomspur/fontawesome4
...
Update fontawesome to 4.1
12 years ago
Thomas Kluyver
c9631845fa
Merge pull request #6126 from takluyver/kernelspecs-nb-ui
...
UI for changing kernels in the notebook
12 years ago
Paul Ivanov
e52f3ac85b
allow splitting and merging of heading cells
...
I consider it a bug that you couldn't merge with heading cells, and that
you couldn't split them, either. (So much so that I thought it was a bug
in ipython-vimception when I ran into it).
This change removes that limitation, so heading cells are on par with
the other cells in terms of the kinds of manipulations one can carry out
with them.
12 years ago
Matthias BUSSONNIER
36e3f20d5e
fix some font-awesoem 4 icons
12 years ago
Thomas Spura
8a9dcd219d
Port to fontawesome4
12 years ago
Matthias Bussonnier
925a968840
Merge pull request #6063 from Carreau/fix-5984
...
Introduce info/warning/danger to notification area
12 years ago
Thomas Kluyver
316ecf3e54
Address review comments
12 years ago
Matthias BUSSONNIER
573c45613d
fix missing semicolons
12 years ago
Ben Duffield
aa8df62b81
add marked to require dependencies
12 years ago
Thomas Kluyver
c71eea365e
Add submenu under kernel for changing kernel
12 years ago
Thomas Kluyver
72e2c2c6d7
Remove last use of global kernelselector
12 years ago
Thomas Kluyver
76477386ae
Don't refer to global kernelselector object in Session
12 years ago
Thomas Kluyver
2785e87b4b
Fix JS iteration
...
Well, work around it.
12 years ago
Matthias BUSSONNIER
849ff3bb05
Simplify and uniformise styling of kernel selector
...
Make the theme coherent with the logout button
12 years ago
Thomas Kluyver
c432af1af5
Use JS events for switching kernelspecs
12 years ago
Thomas Kluyver
01d43290af
Remove unused style() function
12 years ago
Thomas Kluyver
e51f26275a
Set codemirror mode from kernelspecs
12 years ago
Thomas Kluyver
ba69cd972e
Add method to change codemirror mode of all code cells
12 years ago
Thomas Kluyver
54c6cb62c0
Start kernel according to loaded notebook metadata
12 years ago
Thomas Kluyver
b644ddbe36
Store kernelspec in notebook metadata on change
12 years ago
Thomas Kluyver
7400dd1c18
Line dropdown up on RHS of kernel name
12 years ago
Thomas Kluyver
6f8c4b8dc4
Style kernel name
12 years ago
Thomas Kluyver
9581bd7dc3
Change displayed kernel name when our session is started
12 years ago
Thomas Kluyver
41626420e2
Allow switching kernel from the notebook UI
12 years ago
Matthias BUSSONNIER
93314f8126
Introduce info/warning/danger to notification area
...
Add corresponding style.
Should fix #5984
Error when (auto)saving and things along should stand out in the
UI for the user to investigate the reason as soon as possible not to
loose work later.
12 years ago
Paul Ivanov
b67aac5aef
Merge pull request #6119 from minrk/global-events
...
return global events from require(['base/js/events']).
12 years ago
Matthias Bussonnier
16d21d3267
Merge pull request #6188 from jasongrout/highlightjs-require-shim
...
Add a requirejs shim for highlight.js
12 years ago
Matthias Bussonnier
b290f48815
Merge pull request #6036 from minrk/restore-ws-host
...
restore websocket_url configurable
12 years ago
Paul Ivanov
294df0e623
changing the text should reset rendered flag
12 years ago
Jason Grout
3fc4442053
Move shim to the standard location
12 years ago
MinRK
9ff7d264ab
note loaded, unused dependencies in require
12 years ago
MinRK
4097da724b
preserve backward-compatible $([IPython.events])
12 years ago
Jason Grout
abf86d5324
Trigger app_initialized event *after* the 'global' IPython object is initialized
12 years ago
MinRK
b1291df14a
return global events from require(['base/js/events']).
...
In master, it is impossible to load code on IPython events without setting timeouts.
12 years ago
Min RK
2fe0687097
Merge pull request #6149 from jasongrout/less-upgrade
...
Less upgrade
12 years ago
Matthias Bussonnier
cb810bad86
Merge pull request #6190 from minrk/bootstrap-shim
...
add bootstrap shim for require
12 years ago
MinRK
d345546d15
add bootstrap shim for require
...
it was possible for bootstrap js to load before jquery,
causing failures in the dashboard.
12 years ago
MinRK
137f98014a
pass ws_url to kernel constructor
...
via session constructor via notebook constructor…
12 years ago
MinRK
e17c636e18
coalesce stream output in the notebook
...
This merges consecutive outputs on one stream into a single output.
Essentially, it applies the same merging that we do visually to the content stored in the notebook document.
This results in a massive performance improvement in load-time and storage size
for notebooks that have many calls to `sys.stdout.flush()`.
12 years ago
MinRK
579f5101f0
restore websocket_url configurable
...
allows ws to be handled via separate proxies,
as appears to be the case on OpenShift and some other hosting services.
12 years ago
Jason Grout
ab9e4b600e
Add a requirejs shim for highlight.js
...
Before this, highlighting code in markdown cells was broken since hljs wasn't available.
A better solution might be to build the highlight.js amd module (i.e., build the highlight.js module with `--target=amd`) so that we don't need the shim.
12 years ago
Jason Grout
33f256a195
abstract hard-coded style values to be variables for different theming
12 years ago
MinRK
112c4083e9
add comments for style blocks in less
...
separates each component into individual line in compiled css,
reducing some churn in minified css files.
12 years ago
Matthias Bussonnier
f3e599e0c4
Merge pull request #6160 from parleur/patch-2
...
Span in CellToolBar instead of div
12 years ago
MinRK
98ac874131
cell toolbar and modal dialog fixes
...
- name conflict in modal
- cell.cell_type in cell toolbar
prevented edit metadata from working properly.
12 years ago
Pierre Gerold
ac6808b884
Update celltoolbar.js
...
I want to write an extension with multiple select bar. They are supposed to be displayed inline, not in block mode. The better way is to use span instead of div.
12 years ago
Thomas Kluyver
5afc070910
Add default_kernel_name class level variable
12 years ago
Thomas Kluyver
c37acf2ae7
Fix JS syntax
12 years ago
Thomas Kluyver
6efbe46b73
Update JS for kernels and sessions APIs
12 years ago