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
12 years ago
Thomas Kluyver
2a497c16eb
load_file -> load
12 years ago
Thomas Kluyver
a4f869aa8b
Rename methods to remove _file suffix
12 years ago
Thomas Kluyver
5279418acf
Make Contents.new more generic
12 years ago
Thomas Kluyver
4452754a6b
Set notebook nbformat in toJSON
12 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.
12 years ago
Thomas Kluyver
684516c79f
Fix copy-paste mistakes
12 years ago
Thomas Kluyver
a2f3e23fd8
Add copy_file to contents JS API
12 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.
12 years ago
Thomas Kluyver
f8ec8d4abe
Various minor fixes from review
12 years ago
Thomas Kluyver
ea314a2a86
Rename callback parameters to success/error
12 years ago
Thomas Kluyver
060dd1305c
Miscellaneous JS fixes
12 years ago
Thomas Kluyver
c1c591336e
Some more event cleanup
12 years ago
Thomas Kluyver
cf828ccf4e
Cut out some superfluous events
12 years ago
Thomas Kluyver
c9bd254735
Make contents JS API consistent
12 years ago
Thomas Kluyver
29d88a91a6
Standardise JS checkpointing API, use it for notebooks
12 years ago
Thomas Kluyver
9538726b16
Don't do UI stuff in contents API module
12 years ago
Jeff Hemmelgarn
53463898eb
Move contentmanager to contents
12 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"
12 years ago
KesterTong
952ac7d0d8
Moves load_notebook to ContentManager and adds new_notebook to Google Drive version
12 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()
12 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.
12 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.
12 years ago
KesterTong
077ba397c1
Removes unnecessary parameter from ContentManager.delete_notebook
12 years ago
Jeff Hemmelgarn
99323b1173
Move saving to contentmanager
...
Make notebook.save_notebook call contentmanager.save_notebook.
12 years ago
Jeff Hemmelgarn
5b5e194082
Move notebook.rename to contentmanager
...
Make notebook.rename call contentmanager.rename
12 years ago
Jeff Hemmelgarn
7043aa1b9e
switch notebook.delete to use contentmanager
...
Make notebook.delete call contentmanager.delete_notebook
12 years ago
KesterTong
993833d018
Replace other methods with ContentManager.new_notebook
...
Replaces Notebook.new_notebook and NotebookList.new_notebook with ContentManager.new_notebook
12 years ago
MinRK
53ef8e1e1e
remove unused OuptutArea.rename_keys
12 years ago
MinRK
d979f4bedd
better regex replacement for MarkdownCell.set_heading_level
...
(c/o Matthias)
12 years ago
MinRK
dd95b1ef5f
remove heading cells in v4
12 years ago
MinRK
458dcd12e3
make markdown heading input match output size
12 years ago
MinRK
6ca260e611
output[mime/type] -> output.data[mime/type] in javascript
12 years ago
MinRK
a50042745f
semicolons, you guys!
12 years ago
MinRK
09acc6c854
msgspec: stream.data -> stream.text
12 years ago
MinRK
14cfb2efc1
s/prompt_number/execution_count in nbformat 4
12 years ago
MinRK
07079095a8
update html/js to nbformat 4
12 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
12 years ago
Thomas Kluyver
db6cd028ea
Merge pull request #6793 from takluyver/langinfo
...
Move language info from kernelspec to kernel_info_reply
12 years ago
Min RK
965102ba60
Merge pull request #6554 from Carreau/itsallaboutme
...
Add About IPython
12 years ago
Min RK
5ff9ded54a
Merge pull request #6614 from takluyver/nb-terminal-ui
...
Terminal emulator in the notebook
12 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.
12 years ago
Thomas Kluyver
659accf69e
Add event for Markdown cell rendered
12 years ago
Thomas Kluyver
8917e9951e
Move terminal CSS into LESS file
12 years ago
Bussonnier Matthias
1b200e5504
recompute dummy size dynamically + styling in css
12 years ago
Thomas Kluyver
9c7d73a05e
Move language info from kernelspec to kernel_info_reply
12 years ago
Thomas Kluyver
eacd05505c
Open download in a new window instead of changing the URL
...
Closes gh-6764
12 years ago
Thomas Kluyver
f0f6c0d29b
Merge pull request #6677 from minrk/services
...
remove unnecessary 'js' subdir from services
12 years ago
Thomas Kluyver
c39939869f
Merge pull request #6653 from mattpap/fix_ansispan
...
Fix IPython.utils.ansispan() to ignore stray [0m
12 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.
12 years ago
Matthias Bussonnier
103d5dc9b7
Merge pull request #6720 from takluyver/kernelspec-pygments-lexer
...
Respect kernelspec metadata for syntax highlighting in nbconvert
12 years ago
MinRK
e36df49c5f
tweak collapsed navbar style
...
- notification and indicators appear above menu on small screen
- collapsed menu button floats left
12 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)
12 years ago
Matthias Bussonnier
7ae250bbeb
Merge pull request #6693 from minrk/please-no-jsonp
...
set contentType='application/json'
12 years ago
Thomas Kluyver
ddbe427dfa
Add pygments_lexer key to kernelspec
12 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.
12 years ago
Matthias Bussonnier
6766daa397
Merge pull request #6705 from jhamrick/celltoolbar-justify
...
Right-justify celltoolbar instead of reversing
12 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
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
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
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
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
Min RK
63a7969123
Merge pull request #6416 from Carreau/foobarcode
...
Unify Text/CodeCell code.
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
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
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
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
c43e06bbc4
Add test for kernel_dead.Session
12 years ago
Jessica B. Hamrick
fa718fc8d2
Use Session.restart in Notebook.start_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
2dbfc30934
Add no_kernel.Kernel event
12 years ago
Jessica B. Hamrick
cf98a0a5a0
Better respect for abstraction barriers
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
3f00b88baa
Fix reference to session in notebook.js
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
Jessica B. Hamrick
27562308b1
Fix button alignment/size
12 years ago
Jessica B. Hamrick
9ee37de1db
Fix icons and typos in ui tour
12 years ago
Matthias Bussonnier
ffc574d4dd
Merge pull request #6596 from minrk/stream-text
...
msgspec 5: stream.data -> stream.text
12 years ago
Matthias Bussonnier
eeb9cb0209
Merge pull request #6558 from jhamrick/kernel-start-failure
...
Handle kernel start failures more gracefully
12 years ago