Matthias Bussonnier
c1d9f4d436
Merge pull request #7283 from minrk/kernel-spec-model
...
add resource URLs to kernelspec model
11 years ago
Matthias Bussonnier
4e2dfe2527
Some code cleanup in javascript and python
...
change patern that are prone to error, like function redifinition
and other.
11 years ago
Min RK
96a5661648
fix scroll actions
...
div#notebook no longer scrolls at all.
Instead, only the body scrolls.
This may be a problem, but at least scroll actions work now.
11 years ago
Min RK
83f51e877c
move Python-specific help links to kernel_info
...
help_links in kernel_info were already in the msg spec,
but not implemented.
Python-specific docs are now linked to the Python version.
11 years ago
Brian E. Granger
df578b8835
Merge pull request #7307 from Carreau/remove-white
...
remove whitespace below menubar when toolbar hidden.
11 years ago
Brian E. Granger
87ab53bcfe
Merge pull request #7311 from Carreau/reform-css-2
...
Reform css 2
11 years ago
Matthias Bussonnier
031e829daf
stack vertically keyboard shortcut on narrow viewport.
11 years ago
Matthias Bussonnier
0165e97c7c
unify submenu style with menu style
...
closes #7303 .
Also change the arrow that indicate submenu for a fontawesoem icon,
instead of the ugly hack that show only the left border of a rectangle element
which with is twice the one of its border to get a triangle.
11 years ago
Min RK
729c233f7d
Merge pull request #7308 from Carreau/reform-css
...
reformat css
11 years ago
Matthias Bussonnier
160690f50a
reformat css
...
cause I want to inject some variable in it after (like border radius)
and a few other thigs.
This is just a reformating that does not change the generated css.
11 years ago
Min RK
d94479ad29
Merge pull request #7251 from Carreau/unregister-preset
...
add ability to unregister a preset
11 years ago
Matthias Bussonnier
54a3f47905
remove whitespace below menubar when toolbar hidden.
...
closes #7292
11 years ago
Min RK
47b41d980b
Merge pull request #7287 from Carreau/mistake
...
binary or is rare in JS
11 years ago
Jonathan Frederic
09b289d932
Merge pull request #7274 from Carreau/global-command
...
make global css change on command/edit mode
11 years ago
Matthias Bussonnier
1dfdda6e97
binary or is rare in JS
11 years ago
Min RK
43da311f5e
add Notebook.ensure_extension
...
allows override of file-extension logic in notebook extensions
11 years ago
Min RK
a417785c5e
add resource URLs to kernelspec model
...
- move kernelspec itself to model.spec
- add resources top-level key with resource URLs
- no more 404s or HEAD requests under normal circumstances
11 years ago
Bussonnier Matthias
15ab64e884
make global css change on command/edit mode
11 years ago
Jonathan Frederic
028b79b385
Move kernel logo to right margin.
11 years ago
Jonathan Frederic
2c714357c4
Review comments
11 years ago
Jonathan Frederic
cda53215ba
Improve edit app
11 years ago
Jonathan Frederic
972065ad22
Additional aesthetic clean-up
11 years ago
Jonathan Frederic
fbc2adf2d5
Make things consistent
11 years ago
Bussonnier Matthias
2b0147c21a
no shadow on print media
...
Also hide celltoolbars
11 years ago
Matthias Bussonnier
6e9ef7abeb
Style notebook as a document
11 years ago
Jonathan Frederic
3969f0ec84
Move terminal less into better location
11 years ago
Thomas Kluyver
01331514bd
Load common_config, and load extensions specified therein
11 years ago
Thomas Kluyver
c719d2fe83
Refactor out load_extensions_from_config function
11 years ago
Min RK
9f9714e11f
remove kernel logo text placeholder
11 years ago
Min RK
da88bff678
add text placeholder for kernels with no logo
...
capital first initial on gray field
11 years ago
Min RK
d5f6aaa1f6
remove kernel selector from header
...
- add kernel name to indicator
- float kernel logo where indicator used to be
11 years ago
Brian E. Granger
6c55690994
Merge pull request #7227 from jdfreder/undead
...
Add visual cue for widgets with dead comms
11 years ago
Thomas Kluyver
5a5f621591
Merge pull request #7247 from Carreau/fix-restore-checkpoint
...
fix restore checkpoint add an empty cell
11 years ago
Thomas Kluyver
2dbc8f5304
Merge pull request #7248 from Carreau/config-ctm
...
pass config to contentsManager
11 years ago
Bussonnier Matthias
f0c5de7c7e
make method private
11 years ago
Bussonnier Matthias
ddbd7aa4fa
add ability to unregister a preset
...
fix #7218
11 years ago
Bussonnier Matthias
3bce53e32e
fix logo on base_url prefix
11 years ago
Bussonnier Matthias
51f1cad6e4
pass config to contentsManager
11 years ago
Bussonnier Matthias
df418c6a62
fix restore checkpoint add an empty cell
11 years ago
Matthias Bussonnier
449384e85f
Merge pull request #7224 from jasongrout/fix-toolbarjs
...
Fix javascript iteration through array
11 years ago
Matthias Bussonnier
7eb4d1b84d
Merge pull request #7225 from Carreau/fix-actions
...
fix leading underscore
11 years ago
Jonathan Frederic
9e67a34891
Bubble event and implement logic in CodeCell
11 years ago
Min RK
26136f44d2
Merge pull request #7088 from Carreau/kernel.js
...
Load the per kernel kernel.js and kernel.css
11 years ago
Bussonnier Matthias
737064d9db
fix leading underscore
...
mering object with itself is stupid otherwise
11 years ago
Jason Grout
efc1fee242
Fix javascript iteration through array
...
for(var k in config) was assigning k to the properties of Array, not just the numeric indices
the second argument of add_buttons_group, k[1], should be config[k][1]
11 years ago
Matthias Bussonnier
031252d44f
Merge pull request #7207 from takluyver/rm-nb-user-config
...
WIP: Remove js user_config module
11 years ago
Matthias Bussonnier
791676006d
Merge pull request #7186 from minrk/moment
...
moment.js-related fixes
11 years ago
Thomas Kluyver
7f221537d4
Fix default_cell_type option for notebook
11 years ago
Thomas Kluyver
938630b475
Remove user_config js module
11 years ago
Brian E. Granger
e090b609d1
Merge pull request #7169 from jdfreder/pager-style
...
Make the new pager look better
11 years ago
Jonathan Frederic
12366e8e8d
Clean up comments
11 years ago
Jonathan Frederic
1e0acbeb31
Write a plugin to handle private function automatically.
11 years ago
Jonathan Frederic
c703b3f3f5
Some clean-up
11 years ago
Jonathan Frederic
beb5ea6deb
Make sure every function appears in the Notebook class.
11 years ago
Jonathan Frederic
d756816e2b
Some typo fixes
11 years ago
Jonathan Frederic
5802309151
Make notebook.js jsdoc compatible
11 years ago
Jonathan Frederic
1aa280d9c9
Start JSDoc integration
11 years ago
Min RK
6661a0a301
fix regular checkpoint updates in notebook
...
in master, this was updating every 10 hours,
regardless of the value, due to a variety of bugs,
including using relativeTimeThreshold getters
that do not exist in moment.js 2.7.
11 years ago
Min RK
982a742112
Merge pull request #6700 from Carreau/actions-2
...
Use notebook actions in toolbar
11 years ago
Bussonnier Matthias
cd67e1aca7
return elements instead of append them directly
...
+ jshint fixes
11 years ago
Jonathan Frederic
12ef806b58
Thinner handle, single handlebar
11 years ago
Bussonnier Matthias
07c6dd8b5d
move setting nb.kernelselector inside kernelselector itself
11 years ago
Bussonnier Matthias
7a3a61fe81
make pseudo action in their own dcit.
...
make test more reliable by adding data-attributes to buttons.
11 years ago
Bussonnier Matthias
08dbdb1640
note to self
11 years ago
Matthias Bussonnier
199483b82d
fix rebase after kill of layout manager
11 years ago
Jonathan Frederic
eb34a4c6c2
Add shadow to pager handle
11 years ago
Jonathan Frederic
9879a3c16c
Make the pager look better
11 years ago
Jonathan Frederic
b1b88a7855
Merge pull request #7147 from jdfreder/print
...
Meta-p for print
11 years ago
Matthias Bussonnier
2d51cec3c8
adresses Min comments x2
11 years ago
Bussonnier Matthias
fc6f562317
complete unicode mac symbol
11 years ago
Bussonnier Matthias
e292a82dff
Fix comments
...
move humanize-map out of function call to have only one instance
11 years ago
Bussonnier Matthias
5be62ba538
fix john coments
11 years ago
Matthias Bussonnier
f43d8585d1
Add notion of actions to celltoolbar
...
modify toolbar.js to be able to deal with actions.
modify maintoolbar to deal with the new action architecture
add a way to triger notification widget hiding
11 years ago
Matthias Bussonnier
f1a167ee19
add an humanize function that prettify shortcut on macos
11 years ago
Jonathan Frederic
bdb0e9dd7a
Move header styles into base less
11 years ago
Jonathan Frederic
f497d06d0c
Avoid using important
11 years ago
Min RK
73c33f402c
remove references to defunct layout_manager in ToolBar
11 years ago
Matthias Bussonnier
912c4bb683
adresses Min comments
11 years ago
Matthias Bussonnier
47822187c1
Fix typos, rephrase english. Thanks Kyle.
11 years ago
Matthias BUSSONNIER
4239dc03f3
load the per kernel kernel.js and kernel.css
...
As per discussion, each kernel can provide a file name kernel.js that
we try to load at kernel switching. If such a file exist we assume that
the kernel pathches the javasscript and that this javascript cannot be
unpatched, and further switching of the kernel cannot be undone without
reloading the page. (separate PR for UI)
if a kernel provide kernel.js, the it should consist into a AMD module
definition that uses require.js the module shoudl define a function name
`onload` that will be called at the appropriate moment before the kernel
starts.
11 years ago
Min RK
e890122c3e
Merge pull request #6537 from takluyver/kernelspec-logos
...
Initial support for supplying kernel logos in kernel spec
11 years ago
Jonathan Frederic
b29d81ee23
Add LESS that enables meta-p printing
11 years ago
Thomas Kluyver
3e2f6dba98
logo-64 -> logo-64x64
11 years ago
Thomas Kluyver
4cee2f5f3a
Merge pull request #7128 from minrk/more-v-less-m
...
A little more V, a little less M in the text editor
11 years ago
Thomas Kluyver
7cc07251e4
Use double resolution logo to support hires displays
11 years ago
Thomas Kluyver
cad0c32137
Hide kernel logo if it's missing
11 years ago
Thomas Kluyver
f123b0d2ad
Initial support for supplying kernel logos in kernel spec
11 years ago
Jonathan Frederic
5d4b83ba4a
Add an event that fires before the notebook saves
11 years ago
Jonathan Frederic
8a5770b811
Add convenience API
11 years ago
Jonathan Frederic
e02a5ec201
Promises...
11 years ago
Jonathan Frederic
d466601dbb
Persistence API,
...
This is a combination of 10 commits.
Enable widget instanciation from front-end.
Address @minrk 's review comments.
Make API that allows users to persist widget state easily.
Added support for view persistence
Started adding support for model persistence.
Half way there!
Finished persistence API.
Move persistence code into the widget framework.
Fin.
Bug fixes
11 years ago
Min RK
c58070a702
make savewidget css a little more generic
...
- use classes instead of IDs
- use .filename instead of #notebook_name
11 years ago
Min RK
2452c0c2f7
checkpoint
11 years ago
Min RK
0b46e2aff2
remove some custom css
...
mainly in navbars, where we were doing custom
things that bootstrap already did with classes.
This did require the removal of multiple class LESS inheritance for
navbar buttons, because it doesn't work properly. Seems like a LESS bug, but I'm not sure.
11 years ago
Nicholas Bollweg (Nick)
c72ad2754c
more fidgeting before starting over
11 years ago
Nicholas Bollweg (Nick)
5858350cc3
handling explicitly provided modes from kernelspec.language_info
11 years ago
Nicholas Bollweg (Nick)
8f5b447eaf
removing monkeypatch, importing rest of codemirror default theme
11 years ago
Nicholas Bollweg (Nick)
68c4714338
using codemirror mode/meta for detection
11 years ago
Matthias Bussonnier
a9fffc41ab
Merge pull request #6950 from minrk/new-new-dropdown
...
Add kernel-select dropdown to new notebook button
11 years ago
Thomas Kluyver
615f5dd13a
Merge pull request #7118 from minrk/script-dispatch
...
Dispatch to custom exporter in ScriptExporter
11 years ago
Min RK
93bbf6d52e
remove nbconvert_exporter handling from frontend
...
dispatch happens in the script exporter,
frontend doesn't need to know about it anymore.
11 years ago
Min RK
befb16ebe3
Merge pull request #6948 from bollwyvl/graceful-mathjax-widgets
...
Ignore failure of widget MathJax typesetting
11 years ago
Min RK
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