MinRK
a6de5947de
add read-only view for notebooks
...
When using a password, read-only mode allows unauthenticated users
read-only access to notebooks. Editing, execution, etc. are not
allowed in read-only mode, but save/print functions are available.
No kernels are started until an authenticated user opens a notebook.
15 years ago
Brian Granger
a6c9123018
Adding space between paragraphs in rendered html in the notebook.
15 years ago
MinRK
9a7fda926d
Allow notebook server to run in read-only mode
...
Kernels are never started, and all save/delete/execution handlers raise
403: Forbidden.
/cc @fperez
15 years ago
MinRK
268c5e778d
Show invalid config message on TraitErrors during initialization
...
implemented via @catch_config decorator
Now, the event that was triggered by invalid app config (see `--log-level 5`) is triggered by bad config at any point during initialization.
This *will* catch TraitError bugs in IPython itself, but only during initialization.
closes gh-908
15 years ago
MinRK
dd8761ea1d
Allow IPython to run without sqlite3
...
The History will always appear empty, so history magics, etc. don't do anything. Readline history for a single session works fine.
Test suite should now pass without sqlite
15 years ago
MinRK
89f11475da
dashboard page title -> IPython Dashboard
15 years ago
MinRK
76650e316d
Restore kernel status to header
15 years ago
MinRK
48c344ecf5
fix --no-browser flag in notebook after rename
15 years ago
MinRK
30c45c517d
fix Cell->Help header typo
15 years ago
Fernando Perez
38af53d027
Merge pull request #899 from minrk/nbwork
...
Internal notebook refactoring and cleanup, plus fixing a bug that prevented Tornado from authenticating users with password.
15 years ago
MinRK
9be2911296
style Sign In button with jQuery
15 years ago
Brian E. Granger
970742c267
Using self.request._cookies in WS handlers.
15 years ago
Brian E. Granger
9b945e7bc2
Added kill_kernel to notebook template.
15 years ago
MinRK
6c5f69e97a
Moving status widget to Kernel section of L panel.
15 years ago
MinRK
139fe52832
Renaming user cookie to username to better match usage.
15 years ago
Brian E. Granger
fd06bd1610
Minor changes to the notebook handlers.
15 years ago
Brian E. Granger
d26a7e5fcc
Removed save widget delay.
15 years ago
Brian E. Granger
5f3fd837a4
Renaming NBBrowserHandler->ProjectDashboardHandler.
15 years ago
Brian E. Granger
05729f7c0c
Further cleanup and renaming of notebook.
15 years ago
Brian E. Granger
2318fe4ef5
Renaming things in the notebook.
...
* nbbrowser -> projectdashboard.
* Getting rid of underscores on .js filenames.
15 years ago
Brian E. Granger
ae37e2fe2c
Simplifying logic on login page.
15 years ago
Brian E. Granger
1f699c8c23
Further work updating JS URL scheme to use data-base-project-url.
15 years ago
Brian E. Granger
cc3516be01
Updating notebook list to use data-base-project-url.
15 years ago
Brian E. Granger
1f06a280ca
Updating JS URL scheme to use embedded data.
...
All ajax requests from JS now use the data-base-project-url
and data-base-kernel-url data attributes set on the body.
15 years ago
Brian E. Granger
36e15cb5c2
Adding data-project to the body data attribs.
15 years ago
Brian E. Granger
c900979a80
Misc changes to the notebook.
...
* IPythonNotebookApp->NotebookApp.
* Cleaned up html templates of unused stylesheets.
15 years ago
Brian E. Granger
7611a38721
Minor changes to handlers.
15 years ago
MinRK
4f26dae311
don't present meaningless username option in notebook
...
username isn't used for anything other than hash input
for authentication, so remove the field in the login form
and just use a uuid.
15 years ago
Brian E. Granger
66d5c9f8a6
Adding base_project_url and base_kernel_url as HTML data attribs.
...
* Also saving the notebook_id using that as well.
15 years ago
Fernando Perez
986f2e7223
Merge pull request #893 from minrk/clearoutput
...
Adding clear_output to kernel and HTML notebook.
This enables the clearing of output during the execution of a cell. It can be used for simple forms of animation in the notebook.
15 years ago
MinRK
033c9d9848
Add tooltips to the notebook via 'title' attr.
...
All buttons, show/hide clickable areas, etc. should have some tooltip describing
what they do. There are jQuery plugins for enhanced tooltips, but this gets
the lightest version working.
closes #436
15 years ago
MinRK
24d37b6bcc
add channel-selection to clear_output
...
example notebook updated accordingly
15 years ago
Brian Granger
10deb3b744
Adding clear_output to kernel and HTML notebook.
15 years ago
Fernando Perez
9fa9f0b15f
Merge pull request #884 from fperez/nb-usability
...
Various Notebook usability fixes:
- add kernel restart dialog confirmation (it destroys the user session)
- add missing keybindings
- change language from 'terminal mode' to 'in-place execution' which is more descriptive
- adjust spacing/padding and colors slightly for readability and better use of space in small screens.
- add line numbering toggle to code cells. Triggered with C-m-l.
- show keybindings in monospaced font.
- add QuickHelp button that is always visible and at the top.
- add missing keybindings for kernel interrupt/restart from the kbd.
15 years ago
Fernando Perez
55223d0414
Adjust title area sizes to improve alignment.
15 years ago
MinRK
a42f678fd1
Merge PR-883
...
Notify user if notebook save fails.
closes #883
15 years ago
Fernando Perez
781c5ad281
Underline quick help button key accelerator (h).
15 years ago
MinRK
8d139492ce
show_keyboard_shortcuts -> toggle_keyboard_shortcuts
...
Now multiple calls no longer show multiple instances of the shortcut dialog. Rather, clicking the quick help, or invoking `C-m h` will hide
the dialog if shown.
15 years ago
MinRK
53d10a61ab
fix quickhelp widget
...
Move header.js -> quickhelp.js, as it not longer acts on whole header.
15 years ago
Thomas Kluyver
74771e4037
Add ability to open the notebook in a browser when it starts.
15 years ago
Fernando Perez
b06d0f03c6
Adjust cell background and number color after review with @minrk.
15 years ago
Fernando Perez
77c62893bc
Keep kernel-related bindings together in code.
15 years ago
Fernando Perez
1a109765b8
Clean up accidentally introduced hard tabs in JS code.
15 years ago
Fernando Perez
83790b7e29
Fix text cell color, was too light to be seen on certain monitors/browsers.
15 years ago
Fernando Perez
e9d744f06c
Add quick help button: broken ATM, style and binding aren't working.
...
Help needed here, will discuss during pull request before merging.
15 years ago
Fernando Perez
6d0715988f
Change button labels in restart dialog to action words.
15 years ago
Fernando Perez
e852a86669
Add confirmation dialog to kernel restart action.
15 years ago
Fernando Perez
e41ba5a75c
Refactor line num. toggle into proper function, access via C-m-l.
...
This makes the keybinding consistent with the rest, updated help dialog.
15 years ago
Fernando Perez
8fb9f71e42
Use monospaced font for keybinding display.
15 years ago
Fernando Perez
e8326241eb
Add C-m-{'i', '.'} as keybindings for kernel interrupt/restart.
15 years ago
Fernando Perez
3db974a4f4
Padding adjustments to better use vertical and horizontal whitespace.
...
Verified that all prompts align correctly on linux/chrome + ffox, and
that input prompts up to 4 digits long still fit.
15 years ago
Fernando Perez
e00e604144
Add Ctrl-L as a way to toggle line-numbers for any individual code cell
15 years ago
MinRK
7041224f96
fix typo in stripping kernel args in nb and qt
...
closes #885
15 years ago
Felix Werner
a4bec7e65d
Fixed testing of new notebook name before saving.
15 years ago
Felix Werner
f5b52442aa
Notify the user of errors when saving a notebook.
15 years ago
Felix Werner
a89d947322
Update document title and last_saved_name only after a successful save.
15 years ago
Fernando Perez
13377a2d23
Merge branch 'carreau-mathjax-warning'
...
Warn user if MathJax can't be fetched from notebook
Closes #744 .
15 years ago
Fernando Perez
87462b4259
Minor fixes to text and formatting of error message.
15 years ago
Fernando Perez
df43150509
Merge pull request #850 from fperez/codemirror
...
Update codemirror to 2.15 and make the code internally more version-agnostic.
Added our own README file with information about what changes we carry to upstream CodeMirror and what version we currently use.
15 years ago
Matthias BUSSONNIER
85ea4222fb
Hide warning message about matjax when page load
...
also fix Matjax->MathJax
15 years ago
Matthias BUSSONNIER
b05d2c21a9
Matjax Warning message improvement.
...
merge '<script>' balises.
Improve message text and style.
Remove instead of hide
15 years ago
Fernando Perez
00af93da43
IPython-specific changes to CodeMirror: recognize '?' in Python mode.
15 years ago
MinRK
52592d47b1
fix missing trailing comma in kernel.js
15 years ago
Matthias BUSSONNIER
4d5e605082
Warn user if MathJax can't be fetched from notebook
...
closes #744
15 years ago
MinRK
4d7ef4899e
enable HMAC message signing by default in notebook kernels
...
This is separate from previous, because it is more likely to be rejected.
It requires the the Session objects in Handlers get a reference all the way back up to the IPython App that started the environment.
15 years ago
MinRK
b01c6ef0c4
use zmq.KernelManager to manage individual kernels in notebook
...
This means that proper restart is now available, rather than
killing and starting a new kernel, breaking connections to
secondary frontends.
15 years ago
MinRK
e38729c9b2
fix kernel_argv scrubbing to cover args passed with space
...
$> ipqt --shell 12345
would not scrub the port, previously
15 years ago
MinRK
4eb4926812
use ROUTER/DEALER sockets for stdin
...
stdin requests are now directed to the frontend that made the execution
request that called raw_input.
allow_stdin flag added to execution_request to indicate whether stdin_requests are allowed.
StdInNotImplementedError exception class added to IPython.core.error, and is raised if raw_input is called from execute requests where allow_input is undefined.
closes gh-673
15 years ago
Fernando Perez
b8bab4a051
Update templates to new directory name for codemirror.
15 years ago
Fernando Perez
9cca38f452
Do not use version # in codemirror directory name.
...
Simply call it 'codemirror', so we don't have explicit version numbers
inside a bunch of files.
A file called ipython-version-N.NN will be kept to easily let us know
which version we're shipping with IPython.
15 years ago
Fernando Perez
6b0fdf2356
Update CodeMirror code to v2.15
15 years ago
Fernando Perez
99c90f43c9
Merge pull request #845 from takluyver/py3-tests
...
This gets the bulk of the test suite passing on Python 3 - there's just a few isolated cases where it still doesn't.
15 years ago
Fernando Perez
43a4db17e6
Merge pull request #830 from minrk/stream
...
Several improvements to stdout/stderr handling and visual layout of cells.
Now stdout and stderr are kept contiguous (in a single div) if they are being written to continuously, and stderr is shown with a light red background to help distinguish from stdout.
Further, input cells now have a light gray background to help distinguish them from plain stdout areas.
15 years ago
Thomas Kluyver
c61d455a77
Various fixes to tests in IPython.utils.
15 years ago
MinRK
940d636656
fix Input prompt/code alignment
...
with note for future reference
15 years ago
MinRK
30028c3ca0
round corner and light bg on code areas
...
c/o @fperez
15 years ago
Fernando Perez
eba1a8c796
Merge pull request #801 from takluyver/py3-notebook
...
Gets the notebook working under Python3.
15 years ago
MinRK
c022dca01a
small CSS adjustments in notebook
...
* add think border around input area
* change background instead of foreground on stderr
* only stderr/stdout are output_stream, general text (including streams) is output_text
* reduce vertical padding on stream output, per @fperez
15 years ago
Bernardo B. Marques
8e32204222
remove all trailling spaces
15 years ago
Thomas Kluyver
609e4134ff
Decode data for saving notebook, allowing saving in Python 3.
15 years ago
MinRK
788d7e6348
allow stdout/stderr to have distinct css
...
make stderr output darkred
15 years ago
MinRK
a9d9a8b72c
support contiguous stream output in notebook
...
Consecutive messages to stdout or stderr will not be split
into separate divs, until a new message to different stream
arrives.
Appending will only occur when the latest output is the same
as the new one. Interleaving messages will still result in
multiple divs.
15 years ago
MinRK
56c8403ac0
allow more processing in test_for
...
* test_for uses import_item, instead of __import__
* test_for now allows a callback, for processing the result of import_item prior to comparison with min_zmq
* callback is only called when min_zmq is defined
* callback's default is to just return mod.__version__
* use this to check tornado version, and zmq as a version tuple
* fix pexpect check to use external.pexpect
15 years ago
MinRK
50f9bd9ceb
update tornado dependency to 2.1
...
The notebook server will no longer try to launch with 2.0.
Test imports and install doc updated to match.
15 years ago
Thomas Kluyver
0f5c0f67c9
Fix for notebook in Python 3.
15 years ago
MinRK
5dd7dce0b2
fix installation of zmq IOLoop into tornado
...
incorrectly overrode the module, rather than the class in the module, which is more reliable.
15 years ago
Brian Granger
b7ab64f304
fixConsole no longer trims the final text.
15 years ago
MinRK
88236a7ab8
always use StringIO, never cStringIO
...
cStringIO is not unicode-safe
15 years ago
MinRK
3ee19c6563
only store hashed user_id in notebook cookie
...
hashed user_id is used for authentication, rather than hashed password. Thus, user cookie is only set after authentication succeeds.
15 years ago
Brian E. Granger
98393e9a28
Merge branch 'enh/httpauth' of https://github.com/satra/ipython into satra-enh/httpauth
15 years ago
Brian E. Granger
1ae92b2d88
Merge pull request #748 from ellisonbg/tornado-iptest
...
Check for tornado before running frontend.html tests.
15 years ago
MinRK
d11ef986a4
authenticate Websockets with the session cookie
...
Now all Notebook connections are authenticated.
15 years ago
MinRK
152fe1b6f1
Authenticate all notebook requests (except websockets)
...
* BaseHandler renamed AuthenticatedHandler
* also clears cookies if invalid, to prevent repeated 'Invalid cookie signature' warning messages.
15 years ago
MinRK
dbfe19f6e2
notebook auth adjustments
...
* keyword -> password
* removed password alias
* add login.html as template
* new cookie key for each Server instance
15 years ago
Brian E. Granger
8c76fcf71c
Fixing Ctrl-Enter on Firefox.
15 years ago
Brian E. Granger
408fde5aa3
Check for tornado before running frontend.html tests.
15 years ago
Satrajit Ghosh
00986be4f8
fix: added keyword to notebook aliases
15 years ago
Satrajit Ghosh
546a0147fb
fix: changed keyword input field to type password
15 years ago
MinRK
549cf4ee2a
fix undefined 'session_id' member in kernel.js
15 years ago
Satrajit Ghosh
c4d90c8a08
enh: added authentication ability for webapp
15 years ago
Brian E. Granger
1021c3dc88
Merge branch 'fix/https' of https://github.com/satra/ipython into satra-fix/https
15 years ago
Brian E. Granger
c6d030761e
Merge branch 'placeholder' of https://github.com/minrk/ipython into minrk-placeholder
15 years ago
MinRK
3aed0a0b94
use null char to start text cell placeholders
15 years ago
Satrajit Ghosh
7d0467df1c
fix: applied fernando's if simplification fix
15 years ago
Satrajit Ghosh
1ae18b5be7
fix: display secure url with proper protocol
15 years ago
Fernando Perez
d1cfedaf16
Leave commented-out stable url code for reference, with TODO.
15 years ago
Brian E. Granger
f1e4a59777
Adding messages to HTTPError raising.
...
These messages are not returned to the browser, but are printed
to the server logs and will help the code readability.
I have also used a more specific code in some cases.
15 years ago
Brian E. Granger
acc81dfbee
Ctrl-Enter now does not delete input, but selects it.
15 years ago
Brian E. Granger
fa8ab6f37d
Going back to using uuid.uuid4() for notebook ids.
...
We were having problems with notebook renaming when using uuid5,
as there are many places in the code where we assume that the
notebook id is unique and unchanging as long as the notebook
server runs.
15 years ago
Brian E. Granger
706819d81c
Merge branch 'htmlnotebook'
15 years ago
Brian E. Granger
0b19dd7bfe
Temporary fix for placeholder related CM bug.
15 years ago
Brian E. Granger
c2df8a9005
Merge branch 'mathjax' of https://github.com/minrk/ipython into minrk-mathjax
15 years ago
MinRK
ba1df9be55
underline keyboard shortcut letter on buttons
15 years ago
Fernando Perez
b8c1ab1ada
Fix above/below keybinding mismatch and rename api to use above/below
15 years ago
Stefan van der Walt
3a8811e115
Add code highlighting to markdown cells.
15 years ago
MinRK
638bc02a8f
update notebook template to prefer offline mathjax
15 years ago
Stefan van der Walt
dfeb4342ed
Align colons in help dialog.
15 years ago
Brian E. Granger
d60edf973d
Changing prev/next keyboard shortcut to use p/n.
15 years ago
Brian E. Granger
b89d656a3c
Fixing console.log messages related to keyboard shortcuts.
15 years ago
Brian E. Granger
cf0c66fe4e
Adding keyboard shortcut help dialog.
15 years ago
Brian E. Granger
d3e67106a1
Adding keyboard shortcuts.
15 years ago
Fernando Perez
2522a651d9
Right-align prompts to remove spurious whitespace.
15 years ago
Brian E. Granger
5b19a85fa4
Adjusting width of prompt area.
15 years ago
Brian E. Granger
6798c5cc97
All output types are not indented.
15 years ago
Brian E. Granger
919a393622
Fixing bug in new metadata implementation.
15 years ago
Brian E. Granger
5cb8bb1f27
Reorganize the L panel buttons.
15 years ago
Brian E. Granger
ab384fc787
Cell collapse/expand is not called "Toggle".
15 years ago
Brian E. Granger
133b96d086
Changing CodeMirror-scroll to overflow-y: hidden.
...
* It seems that our old setting of visible was causing scroll bars
to appear if font sizes change in Chrome.
* Also changed json -> xml in Download UI.
15 years ago
Brian E. Granger
ea8b4de42d
Implemented metadata for notebook format.
15 years ago
Brian E. Granger
7e7a6ab50b
Notebook upload handles filenames with periods.
15 years ago
Brian E. Granger
d5fe8328e5
Converting notebooks to JSON format.
15 years ago
Brian E. Granger
0784df1b9d
Making JSON the default .ipynb format.
15 years ago
Brian E. Granger
4d15c8b8e5
Fixing logic for rename behavior.
15 years ago
Brian E. Granger
8f149a2623
Help links work on Firefox.
15 years ago
Brian E. Granger
cbe3563d8d
Save button becomes Rename when the notebook name changes.
15 years ago
Brian E. Granger
f35f9323e6
Better tabindex support.
15 years ago
Brian E. Granger
1293556dde
Double clicking on the end space will insert a new cell.
15 years ago
Brian E. Granger
b17100a63b
Merge branch 'htmlnotebook_list_notebooks' of https://github.com/stefanv/ipython into stefanv-htmlnotebook_list_notebooks
15 years ago
Brian E. Granger
7d53b7a7b2
Merge branch 'stefanv-htmlnotebook_publish' into htmlnotebook
15 years ago
Brian E. Granger
1d43249604
Adding page break logic to the print css.
...
* I have added page-break-inside logic to div.input and
div.output_area.
* Fixed a bug in CodeCell that was putting the output_area class
on the wrong div.
15 years ago
Stefan van der Walt
55ffc1c083
Move glob to global level import.
15 years ago
Stefan van der Walt
fb2c31b2ea
Allow period characters in notebook names.
15 years ago
Brian E. Granger
6243652cfd
Changing notebook uuid algorithm to preserver across sessions.
15 years ago
Brian E. Granger
69d2e18f7a
Merge branch 'htmlnotebook_publish' of https://github.com/stefanv/ipython into stefanv-htmlnotebook_publish
15 years ago
Brian E. Granger
b5b4cf260f
Modifying CodeMirror focus hack to work better.
...
I had removed a text area focus event earlier today and that
broke the . key. We are still having problems with CodeMirror
elements gaining focus, but this seems to fix the issue.
15 years ago
Stefan van der Walt
823124215c
Refactor static printing.
15 years ago
Brian E. Granger
cff986a539
Removed HTMLCell from UI and added better placeholder logic.
15 years ago
Brian E. Granger
0f3bc468e3
Better alert message if no WebSockets are detected.
15 years ago
Brian E. Granger
e08bdc3d6f
Better WebSocket detection added.
15 years ago
Brian E. Granger
164ef7c9cb
Adding code to handle MozWebSocket for FF 6.
15 years ago