Min RK
fbaae651ad
remove UI for setting default kernel
...
can be set with:
IPython.new_notebook_widget.set_default_kernel('kernel_name')
11 years ago
Min RK
8eb6ec00d8
store current kernel selection in frontend config
...
instead of localStorage
11 years ago
Min RK
11ef669ec6
kernelspecs is a dict
...
sort menus client-side
11 years ago
Min RK
d9767e8c94
separate selecting default kernel from new notebook with specified kernel
...
adds checkmark to indicate selection
11 years ago
Min RK
0cfd8731a0
include current kernel name in new notebook dropdown
11 years ago
Min RK
d312486840
Add kernel-select dropdown to new notebook button
...
most recent choice is remembered in localStorage
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
Osada Paranaliyanage
bc55f3c16e
Refresh terminal list. closes #7018 .
11 years ago
Scott Sanderson
16b9150151
DEV: Add various events.
11 years ago
Min RK
5eff21f3c6
simplify NotebookList.duplicate with recent changes
...
- contents service + futures
- remove no-longer-necessary parent_item
11 years ago
Min RK
036c47d032
set min-width on tree-list buttons
...
avoids misaligned buttons when the content changes
11 years ago
Min RK
8bad784ce5
update add_duplicate_button with API changes
...
- allow duplicating regular files
- update with contents service API changes
- fix some path/name bugs found in session and kernel list
11 years ago
David Neto
6aae1e219f
Add the "Duplicate" button in the main dashboard
...
so we can copy an existing notebook without having to start it's instance
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
287d572fb3
Merge pull request #6855 from takluyver/new-notebook-async
...
Open new windows before creating new notebooks
closes #6849
11 years ago
Min RK
a257e580a0
Merge pull request #6854 from takluyver/post-new-terminal
...
Create new terminals with POST request to API
11 years ago
Thomas Kluyver
b046af083c
Fix some bugs in deleting notebooks from the dashboard
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
Thomas Kluyver
538fcbc025
Close new window on error creating terminal
11 years ago
Thomas Kluyver
8da4e89e3a
Make a window immediately, and set its location on response
...
Avoids the need for async:false
11 years ago
Thomas Kluyver
b7a558d5b9
Use synchronous request for creating new notebooks
...
To get round popup blockers
11 years ago
Thomas Kluyver
1f2e4cc6c3
Fix passing empty list to draw_notebook_list()
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
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
e1cbaf3d3c
Fix spelling
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
c9bd254735
Make contents JS API consistent
11 years ago
Thomas Kluyver
9538726b16
Don't do UI stuff in contents API module
11 years ago
Jeff Hemmelgarn
dab99c599f
Remove unnecessary backwards compatibility code
11 years ago
Jeff Hemmelgarn
53463898eb
Move contentmanager to contents
11 years ago
Jeff Hemmelgarn
09e0ff93d8
Fix a few problems with cherry-picked commits
...
api/notebooks => api/contents
add type to JSON model
fix a few things in notebooklist.js
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
e3ef5d3b70
Moves list_notebooks to ContentManager
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
0aada3ac5d
Remove deleted notebook from notebook list
...
Uses events to notify the NotebookList when the content manager deletes a notebook, and remove the deleted notebook in response to such an event.
11 years ago
KesterTong
077ba397c1
Removes unnecessary parameter from ContentManager.delete_notebook
11 years ago
Jeff Hemmelgarn
728c6f005f
Move deleting a notebook to contentmanager.js
...
Move code to handle deleting a notebook from notebooklist to
contentmanager.
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
Min RK
96183a60a0
create new terminals with POST /api/terminals
...
instead of GET terminals/new
to be consistent with creating new notebooks.
We had to stop using GET notebooks/new
because browsers would create new notebooks when making preview thumbnails for commonly visited pages, etc.
I assume the same issue would apply to terminals
11 years ago
Thomas Kluyver
d32322e332
Show terminals as terminals/name
...
Bigger click target
11 years ago
Thomas Kluyver
4025b57ed8
Only display terminals in dashboard if terminals are available
11 years ago
Thomas Kluyver
65e664b143
Add list of available terminals in the dashboard
11 years ago