Commit Graph

7765 Commits

Author SHA1 Message Date
Jonathan Frederic
f5296808ff Load modules individually, so a missing module doesn't 💩 on everything. 2015-07-11 10:36:57 -05:00
Min RK
b001be2c82 check origin of API requests
protects agains CSRF on POST endpoints via forms.
2015-07-09 16:10:00 -05:00
Min RK
cead281f26 Merge pull request #187 from niole/master
updated keyboard.js to throw errors instead of strings.
2015-07-08 01:05:06 -05:00
Niole Nelson
3db5083b4a updated keyboard.js to throw errors instead of strints: #145 2015-07-07 17:04:48 -04:00
Niole Nelson
3e5e4a9293 updated keyboard.js to throw errors instead of strings, #145 2015-07-07 17:02:39 -04:00
Min RK
e8b3c17693 Merge pull request #182 from frederikhermans/master
Properly render newlines etc. in raw_input() prompt
2015-07-04 14:34:29 -07:00
Frederik Hermans
7c119caae6 Explicitly set monospace font on input.raw_input
Also do not explicitly set monospace font in raw_container_input,
because that the container's width to be inconsistent with the (later)
output div's width.
2015-07-03 22:50:47 +02:00
Frederik Hermans
a31a64ad69 Replace raw_input_prompt span tag with a pre tag
Also, the input tag becomes a child of the pre tag.
2015-07-03 22:49:13 +02:00
Min RK
b79c6ade71 Merge pull request #148 from Carreau/restart-and-clear
Add ability to restart and clear all.
2015-07-02 11:24:48 -07:00
Matthias Bussonnier
92b9699338 Merge pull request #177 from minrk/string-types
handle _template_path being unicode on py2
2015-07-01 16:08:24 -07:00
Min RK
83367684e1 Merge pull request #164 from techtonik/patch-1
Write notebooks with Unix newlines on Windows
2015-07-01 14:34:42 -07:00
Frederik Hermans
65ca37e6b7 Proper line-height for raw_input() prompt 2015-06-30 23:09:54 +02:00
Frederik Hermans
0ee6a87cae Render newlines etc. in raw_input() prompt
This commit addresses https://github.com/ipython/ipython/issues/8532.

The output of raw_input() is rendered in a <pre>, but the prompt is
rendered as a span.raw_input_prompt. With white-space:pre, the span
renders \t, \n, etc. as expected.
2015-06-30 22:20:17 +02:00
Nikhil S
1b7316e781 remove non-functional codemirror override 2015-06-29 21:37:38 -04:00
nsonnad
0fbdd745ab apply themes in separate file from theme defs 2015-06-29 19:55:42 -04:00
nsonnad
8ced23308e add two themes and configure styles for them 2015-06-29 19:48:01 -04:00
Min RK
b122b52dc5 handle _template_path being unicode on py2
check string_types instead of str
2015-06-27 20:52:15 -07:00
Min RK
3ee4efdc5d Merge pull request #176 from takluyver/subcmd-nbextension-install
install-nbextension -> nbextension install
2015-06-27 20:29:03 -07:00
Thomas Kluyver
70885bd5ba Update some references to NBExtensionApp 2015-06-26 14:38:47 -07:00
Thomas Kluyver
dee5462fca install-nbextension -> nbextension install
We decided the other week to namespace it like this to avoid having to
change the way subcommands are found.
2015-06-26 14:28:32 -07:00
Jason Grout
a690e6c059 Serve API from the handlers directory 2015-06-26 20:01:18 +00:00
Jason Grout
ad25d33808 Add an api discovery url 2015-06-26 15:04:18 -04:00
Jason Grout
19c6905769 Move API yaml docs to the static/ directory so they are served with the notebook
We do this because there are plenty of machine-driven tools to read this and generate nice docs, etc.
2015-06-25 20:01:31 -04:00
Jason Grout
11ae4d7ff5 Rough draft of documentation for the notebook REST API for kernels, kernel specs, and sessions 2015-06-25 19:17:23 -04:00
Min RK
0ceeb5ce75 forward-port security fixes from 3.2
- APIHandler for mime-type and Content-Security-Policy
- next_url confined to base_url
2015-06-21 20:07:20 -07:00
Min RK
e4cc3a6ea2 FileFindHandler inherits from IPythonHandler
in order to get default CSP headers
2015-06-21 19:43:33 -07:00
Min RK
5403d2479d make content_security_policy a property
and *add* `default-src: 'none'` to API handlers

custom CSP applies to all handlers
2015-06-21 19:43:19 -07:00
Min RK
709ed0d04b Add APIHandler base class
- ensures all API responses are json
- sets CSP to prevent js execution on all API replies
2015-06-21 19:43:14 -07:00
Min RK
acbe5cc442 restrict login redirect to notebook app
prevents redirect to other websites from login page
2015-06-21 19:28:27 -07:00
anatoly techtonik
535a04da42 Fix tests and allow atomic_writing with CRLF if needed
Per review comments in https://github.com/jupyter/notebook/pull/164
2015-06-20 20:10:24 +03:00
anatoly techtonik
5842156d82 Write notebooks with Unix newlines on Windows
This avoids unnecessary notebook linefeed conversions
when working with version control from different systems.
2015-06-20 15:53:11 +03:00
Kyle Kelley
0dcfc79b92 Merge pull request #162 from jasongrout/api-docs
Add links to the REST API documentation (what there is on the wiki)
2015-06-19 20:33:49 -05:00
Jason Grout
a016e42cf7 Add links to the REST API documentation (what there is on the wiki) 2015-06-19 22:34:02 +00:00
Thomas Kluyver
cee1a9ae47 Merge pull request #161 from jdfreder/docs
Fix the "original notebook" links in the docs
2015-06-19 13:00:00 -07:00
Jonathan Frederic
b19a4eab3f Update link 2015-06-19 12:49:37 -07:00
Jonathan Frederic
90fce8db85 Correct link 2015-06-19 12:48:47 -07:00
Min RK
6902409dbc Merge pull request #157 from SylvainCorlay/new_comm
Allow passing a comm_id to new_comm
2015-06-19 10:33:19 -07:00
Jonathan Frederic
719f9acadb Merge pull request #159 from jdfreder/docs
Move examples into docs folder, and integrate with docs.
2015-06-19 07:13:19 -07:00
Jonathan Frederic
cc551ea657 Check in built rst 2015-06-18 14:08:59 -07:00
Jonathan Frederic
b41e33ae3a Add custom template to notebook conversion, which adds a nbviewer link, and corrects internotebook links. 2015-06-18 14:07:52 -07:00
Jonathan Frederic
5c05a0d720 Update index 2015-06-18 13:09:24 -07:00
Jonathan Frederic
a0e20c7706 Add ability to compile notebooks to restructured text. 2015-06-18 13:03:34 -07:00
Jonathan Frederic
4671bb9cb7 Moved example files into docs folder 2015-06-18 13:01:38 -07:00
Jonathan Frederic
9a924963b1 Use correct log call. 2015-06-17 10:32:39 -07:00
Sylvain Corlay
0e18fd7ae2 allow passing a comm_id to new_comm 2015-06-17 11:07:34 -04:00
Min RK
46d19cfc8f Merge pull request #153 from Carreau/userfriendly
Better message when the on disk notebook have changed.
2015-06-12 11:35:14 -07:00
Matthias Bussonnier
d54caf1d37 Better message when the on disk notebook have changed.
Closes ipython/ipython#8456
2015-06-12 11:14:14 -07:00
Thomas Kluyver
de9d45f438 Merge pull request #152 from Carreau/cache-node
[Test PR] Cache node
2015-06-11 15:05:17 -07:00
Matthias Bussonnier
10a5017f4c Cache bower cache. Speed up build by 1min/matrix item 2015-06-11 13:04:36 -07:00
Matthias Bussonnier
66a9f50468 Fix missing comma 2015-06-11 11:58:03 -07:00