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
Brian E. Granger
e176318797
More review changes.
...
* Favicon.ico is served.
* Test suit now passes.
* Help links work for for me.
* Other changes made to address inline comments.
* The printing of long lines is an extremely subtle issue and I will open an issue for it.
* zmqws.py is completely gone so the naked print is not an issue.
* ipython-notebook removed from scripts.
* Updated copyright and authors of files.
* Fixed missing docstrings in IPython.nbformat.
15 years ago
Brian E. Granger
63a148fad5
Don't scroll to bottom when last cell is selected.
15 years ago
Stefan van der Walt
49ad421c8b
htmlnotebook: Suppress cell boundary when publishing.
15 years ago
Stefan van der Walt
201999642f
Implement static publishing of HTML notebook.
15 years ago
Brian E. Granger
70cf4b80ba
Stripping notebook server flags from kernel's argv.
15 years ago
Brian E. Granger
1271cfcfcd
Removing old CodeMirror version.
15 years ago
Brian E. Granger
dfac7eca2b
WebSocket url is now passed to browser when a kernel is started.
15 years ago
Matthew Brett
acf85b0824
BF - allow nose with-doctest setting in environment
...
IPDoctest replaces the normal doctest plugin. Previously we did this by
initializing the builtin plugins but skipping the doctest plugin.
However, if the user has a noserc file with 'with-doctest=1' or the
environment variable 'NOSE_WITH_DOCTEST', then nose will try and
initialize the doctest plugin when it isn't there, and barf. This
commit defers the removal of the doctest plugin to the configuration
stage, so doctest can be enabled before it is thrown away by us.
15 years ago
Brian E. Granger
e45e339344
Kernel/notebook mapping is removed when a kernel dies.
...
* Previously, when a kernel died due to an external cause, the
notebook/kernel mapping was not removed, so the kernel would
be resused even though it was dead.
* The heartbeat now properly removes the notebook/kernel mapping.
15 years ago
Brian E. Granger
3602f7f023
Date is properly removed from JSON reply before WebSocket forward.
...
* Both the header and parent_header have a date field that cannot
be json serialized. This field is just removed for now, but
in the future, we will covert the date to a ISO8601 field.
* Better error handling around this code has also been added
to prevent the server from crashing due to malformed messages.
15 years ago
Brian E. Granger
726f8c1780
Pager is not activated if the pager text is empty.
...
* Things like asdf.*? used to open the pager even though there
was nothing to show.
15 years ago
Brian E. Granger
a086fc6d83
I like ClearAll better than Clr All.
15 years ago
Brian E. Granger
c7a12effa1
Export works with filenames having spaces.
...
* The fix was to put the filename in double quotes in the
Content-Disposition header.
* Export As/Clear All have been renamed to Export and Clr All
15 years ago
Brian E. Granger
bf8ba0889e
Code cell gets focused after "To Code" is triggered.
15 years ago
Brian E. Granger
dcd25caf9a
Adding additional whitespace at botton of notebook for TAB comp.
15 years ago
Brian E. Granger
0790979100
Fixing tab completion edge cases.
15 years ago
Brian E. Granger
60147f495f
A single tab-completion match is now automatically selected.
15 years ago
Brian E. Granger
e445ad1796
Fixing latex rendering bug.
15 years ago
Brian E. Granger
75c54c887e
Notebook id removed from the notebook format.
15 years ago
Brian E. Granger
3d7d0f8b0b
Added a notebook dirty flag that is used when exiting page.
15 years ago
Brian E. Granger
e911393836
Browser window title follows the name of the notebook.
15 years ago
Brian E. Granger
3be2ace4f2
Autotry additional ports if 8888 if already in use.
15 years ago
Brian E. Granger
63de9cd719
Fixing bug that caused plots to not be saved.
...
CodeCell.append_mime_type needed a default element.
15 years ago
Brian E. Granger
a9d6f2eb2d
Major refactor of kernel connection management in the notebook.
...
* Full kernel heartbeating is working.
* Connections between the notebook and server and now created
a new each time there is a WebSocket connection. Each channel is
also handled separately. This dramatically simplifies the
server code and makes for a more scalable system.
15 years ago
Brian E. Granger
b264e21a6d
Clear all output is implemented.
15 years ago
Brian E. Granger
24a3464921
Disabling auto-save at exit.
15 years ago
Brian E. Granger
058c0b4767
HTML output cells are now styled with the rendered_html class.
15 years ago
Brian E. Granger
c72b41883f
Adding tracebacks, evalue and etype to the nbformat and notebook.
15 years ago
Brian E. Granger
0c3bba9641
Adding time delay to show the notebook saving more clearly.
15 years ago
Brian E. Granger
1abacb4fce
HTML/Markdown cells no longer saved their rendered output.
15 years ago
Brian E. Granger
0b5b3ed341
Added collapsed field to the code cell.
15 years ago
Brian E. Granger
0529d43ae7
Fixing padding of output cells.
15 years ago
Brian E. Granger
c2ce42121b
%loadpy works in the notebook and bug with inline plotting fixed.
15 years ago
Brian E. Granger
3db421fb73
Autoindentation fixed and enabled by default.
15 years ago
Brian E. Granger
0db7ab16a3
Finishing display system work.
...
* Added image/jpeg MIME type to notebook format, the core display
logic and the notebook.
* Finished HTML, SVG, Image, Math, Javascript, JSON classes.
15 years ago
Brian E. Granger
3ad866c73d
Reducing/adjusting the padding of cells to make the notebook more
...
compact.
* Reduced padding between cells from 15px to 5px.
* Prompt width is now dynamic to grow/shrink as the prompt number
increases in width.
* Reduced padding between input and output from 15px to 5px.
15 years ago
Brian E. Granger
90a20054a0
Updating notebook configuration.
...
* ipython_notebook_config.py is now created and staged.
* New certfile/keyfile config=True attributes for enabling SSL/TLS.
* Examples of usage added.
* New handling for --ip=*
* Aliases added.
15 years ago
Brian E. Granger
8a55d6bf22
Adding minor help strings for keyboard shortcuts.
15 years ago
Brian E. Granger
da63e8cbe8
Minor fixes to config system for notebook.
15 years ago
Brian E. Granger
20adfc4ced
Updates to the css style of rendered html text cells.
15 years ago
Brian E. Granger
217616a505
Fixed text cell rendering bug.
15 years ago
Brian E. Granger
a70cbfc382
Implemented smart autoindenting.
15 years ago
Brian E. Granger
bc5dd6d359
Markdown cells are now saved and restored in notebooks.
15 years ago
Brian Granger
c56f76980e
Reordering Export button and renaming Export->Export As
15 years ago
Brian Granger
f90b5761a2
Refactoring of text/markdown/rst/html cells.
15 years ago
Brian E. Granger
81a1099f87
Starting work on a Markdown cell.
15 years ago
Brian E. Granger
b62857f151
Fixing HTML cell syntax highlighting.
15 years ago
Brian E. Granger
b7bcdabc9a
Updating CodeMirror to v 2.12.
...
For now I am keeping the old codemirror2 directory in here until
we finish debugging the new version.
15 years ago
Brian E. Granger
9964704b73
New HTMl cell working with CodeMirror editing.
15 years ago
Brian E. Granger
a003af7977
Starting to rename text cell to html cell.
15 years ago
Brian E. Granger
875e7da94b
Added saving and loading of output of all types.
15 years ago
Brian E. Granger
188e6271e1
Using beforeunload to save at exit and kill the kernel.
15 years ago
Brian E. Granger
8cf1812395
Fixed subtle bug in kernel restarting.
...
* Old routers were not being shutdown and removed.
* We were incorrectly associating the new kernel with the notebook
(we were using the *old* kernel_id for this).
* General clean ups in the kernel manager.
15 years ago
Brian E. Granger
a0cbccaa03
Adding kernel/notebook associations.
15 years ago
Brian E. Granger
ad84abcf36
Improvements to file uploaded, mime types and .py reader.
...
* The .py notebook reader now uses that ast module to split
a plain python file into blocks. These blocks become cells in
the notebook.
* Proper mime types are used for xml (application/xml), json
(application/json) and python (application/x-python).
* Other fixes to file uploading.
15 years ago
Brian E. Granger
458c48b229
File upload/import working from notebook browser.
15 years ago
Brian E. Granger
e0cc1a6c48
Implemented delete functionality in nb browser.
...
* Dialog confirms the notebook delete.
* Notebook element is removed from list upon deletion.
15 years ago
Brian E. Granger
c106630a2f
Implemented basic notebook browser and fixed numerous bugs.
15 years ago
Brian E. Granger
b11824ef1b
Massive work on the notebook document format.
...
* Finished nbformat work and debugged the versioning API.
* Integrated the nbformat with the notebook. Save/New/Open/Export
are all now working.
15 years ago
MinRK
8e64e13bbb
support html representations in the notebook frontend
...
html gets highest priority, because it is the native language
of the frontend.
15 years ago
Brian E. Granger
59a9cd1777
Updates to basic notebook format.
...
* The format now handles multiple output blocks.
* XML now as worksheets, cells and outputs tags.
15 years ago
Brian E. Granger
10963a588e
Adding Cell.grow back to fix bug.
...
This can go away once we star to use CodeMirror for TextCells.
15 years ago
Brian Granger
8207ecc086
Fixing minor resize bug on the Mac.
15 years ago
Brian E. Granger
cad3c34d62
Hacks to prevent FLOUC (flash of unformatted content).
15 years ago
Brian E. Granger
4f57e3c7fe
Fixes to terminal mode execution (ctrl-enter).
15 years ago
Brian E. Granger
b6b4107e59
Notebook now uses tab for autocompletion.
15 years ago
Brian E. Granger
96be322070
Removing default input prompt number.
...
In a notebook setting being able to delete and add cells makes it
virtually impossible to correctly guess what the next input
prompt number should be. We now follow the convention that our
prompts look like "In [ ]:" before execution.
15 years ago
Brian E. Granger
5519c01de3
CTRL-ENTER now runs a cell in "terminal mode"
...
In this mode, a new cell is not created after the current cell
is run. Once the cell is run, the current input is cleared, so
it acts just like the terminal.
15 years ago
Brian E. Granger
64273fa929
Autocompletion working with CTRL-SPACE.
15 years ago
Brian Granger
e09906c1a8
Added complete method of JS kernel object.
15 years ago
Brian Granger
f24bd4f635
Colors now working in tracebacks and the pager.
...
For now I am just converting ANSI color escape sequences to HTML
<span> tags that have css classes for coloring.
15 years ago
Brian E. Granger
4558e8af5f
Prevent shift-enter from propagating and performing default.
15 years ago
Brian E. Granger
239b087e8f
Updating font-sizing to use the YUI protocol.
15 years ago
Brian E. Granger
27b5357678
Fixing execution related things.
...
* Extra enter on FF is fixed by hooking into CodeMirror's
onKeyEvent hook. We now have CodeMirror ignore shift-enter
completely as we handle it ourselves.
* The cell execution logic in notebook.js has been refactored and
the Run All/Selected buttons have been hooked up.
15 years ago