Commit Graph

2171 Commits

Author SHA1 Message Date
Jonathan Frederic
c1c03a1c83 Merge pull request #6153 from jasongrout/container-children-arg
Make Container widgets take children as the first positional argument
2014-07-21 13:18:49 -07:00
MinRK
98ac874131 cell toolbar and modal dialog fixes
- name conflict in modal
- cell.cell_type in cell toolbar

prevented edit metadata from working properly.
2014-07-21 11:11:53 -07:00
Min RK
3e66b9f52c Merge pull request #6174 from Carreau/pagemain
remove pagemain.js
2014-07-20 13:28:30 -07:00
Min RK
70bc0704c2 Merge pull request #6099 from takluyver/check-nbservers-pid
Check process existence when listing nbserver processes
2014-07-20 13:20:48 -07:00
Matthias BUSSONNIER
17afb5a71f remove pagemain.js
It does not seem to be usefull anymore.

The different main.js of /tree /notebook /etc do create an instance of
`page` themselves, error pages do have hardcoded styles that show header
and sites.
2014-07-20 21:40:14 +02:00
Tarun Gaba
fb540c52f5 Added jquery in define 2014-07-19 09:10:12 +05:30
Sylvain Corlay
a2e9d90bd0 incorrect comment 2014-07-18 22:28:08 +00:00
Sylvain Corlay
8bc4ea37a1 unnecessary context variable specify 2014-07-18 22:26:21 +00:00
Sylvain Corlay
1eb2a30efb once-displayed 2014-07-18 22:08:17 +00:00
Jason Grout
3235f42d12 Container assumes the children attribute is not None
Thanks to @SylvainCorlay for pointing this out.
2014-07-18 16:59:41 +00:00
Pierre Gerold
ac6808b884 Update celltoolbar.js
I want to write an extension with multiple select bar. They are supposed to be displayed inline, not in block mode. The better way is to use span instead of div.
2014-07-18 12:44:23 +02:00
Jason Grout
06084e996c Change serialization terminology to serialize/deserialize 2014-07-17 20:57:10 +00:00
Jason Grout
eed0715a09 Prepend a sentinel value to model ids to distinguish them from normal UUIDs (from Sylvain Corlay). 2014-07-17 20:55:27 +00:00
Jason Grout
14f3897b56 Make Container widgets take children as the first positional argument
This makes creating containers less cumbersome: Container([list, of, children]), rather than Container(children=[list, of, children])
2014-07-17 20:07:37 +00:00
MinRK
792f21be5a remove rackcdn https workaround for mathjax cdn
cdn.mathjax.org works over https now
2014-07-14 15:55:36 -07:00
Min RK
748bcd67e0 Merge pull request #6120 from rgbkrk/no_iframe_embedding
Only allow iframe embedding on same origin by default.
2014-07-14 15:48:42 -07:00
Jonathan Frederic
20045a2f85 Merge pull request #6115 from SylvainCorlay/widget-area-show
Instances of WidgetView do not trigger widget_area.show anymore.
2014-07-14 12:09:54 -05:00
Jason Grout
0c72fddaba Update widget serializer/unserializer to allow custom serialization on a trait-by-trait basis.
Serializers/unserializers are given as the trait metadata keys `to_json` and `from_json`.
2014-07-12 23:32:34 -05:00
rgbkrk
88e52b2746 Only allow iframe embedding on same origin. 2014-07-12 00:20:24 -05:00
Min RK
7ce5bb8a37 Merge pull request #6026 from takluyver/kernelspec-rest-launching
Kernelspecs in REST API for kernels and sessions
2014-07-11 16:58:31 -05:00
Thomas Kluyver
5afc070910 Add default_kernel_name class level variable 2014-07-11 15:27:36 -05:00
Adam Hodgen
c695ba45bc Remove / from route of TreeRedirectHandler.
When base_url is set, navigating to http://{url}/{base_url} returns 404
This is due to the TreeRedirectHandler only picking up
http://{url}/{base_url}/ and the trailing slash handler being set to
{base_url}/.*/.

This change will cause http://{url}/{base_url} to correctly redirect to
http://{url}/{base_url}/tree, as expected.
2014-07-11 20:48:42 +01:00
Sylvain Corlay
70cacc642a Solving #5997: instances of WidgetView (that are not instances of DOMWidgetView) do not trigger widget_area.show anymore. 2014-07-11 12:55:56 -04:00
Thomas Kluyver
c37acf2ae7 Fix JS syntax 2014-07-11 11:07:42 -05:00
Thomas Kluyver
97c24d2920 Delete session rather than killing kernel in test cleanup 2014-07-10 23:54:32 -05:00
Thomas Kluyver
6efbe46b73 Update JS for kernels and sessions APIs 2014-07-10 23:54:31 -05:00
Thomas Kluyver
806432072a Add kernel name to sessions REST API
Also, some refactoring so that the relationship between session, kernels
and notebooks is managed in the SessionManager, not in the HTTP
handlers.
2014-07-10 23:50:00 -05:00
Thomas Kluyver
ae6309c122 Add support for different kernel specs to kernels REST API 2014-07-10 23:50:00 -05:00
Jonathan Frederic
904ed66bc2 Updated custom.js template to reflect IPython namespace changes 2014-07-10 15:47:23 -05:00
Jonathan Frederic
a226bd2d6e Fixed cell toolbars 2014-07-10 15:47:23 -05:00
Jonathan Frederic
b15633a89e Fix all the tests 2014-07-10 15:47:23 -05:00
Jonathan Frederic
2478fac032 More requirejs fixes 2014-07-10 15:47:23 -05:00
Jonathan Frederic
ee76005bc2 More review changes 2014-07-10 15:47:23 -05:00
Jonathan Frederic
669db572f2 Fix some dialog keyboard_manager problems 2014-07-10 15:47:23 -05:00
Jonathan Frederic
2d7a4a7879 Some JS test fixes 2014-07-10 15:47:23 -05:00
jon
70ffd96eb9 Added some nice comments,
so devs can easily figure out what options to pass
into the objects they want to construct.
2014-07-10 15:47:23 -05:00
jon
d9ab2d203a In person review with @ellisonbg 2014-07-10 15:47:23 -05:00
jon
1e098560b8 Revert "Google hangout review comments."
This reverts commit 4e120e76014b2630f957c01d17ba3926d4848872.
2014-07-10 15:47:22 -05:00
Jonathan Frederic
eb2b1ab4a4 Google hangout review comments. 2014-07-10 15:47:22 -05:00
Jonathan Frederic
c2c87e1a76 nbconvert api tests fixes 2014-07-10 15:47:22 -05:00
Jonathan Frederic
188072d190 @carreau review changes 2014-07-10 15:47:22 -05:00
Jonathan Frederic
2ba8945cab Fix all the bugs! 2014-07-10 15:47:22 -05:00
Jonathan Frederic
c7961ae2db Fix imports of "modules",
required after converting everything into dictionary returns.
2014-07-10 15:47:22 -05:00
Jonathan Frederic
0edfdbc703 Return dicts instead of classes,
this makes require.js more Python import like.
2014-07-10 15:47:22 -05:00
Jonathan Frederic
0e9e1dd5a3 MWE,
Fixed LOTS of bugs
2014-07-10 15:47:22 -05:00
Jonathan Frederic
0da779d101 Done with major changes,
fixed widget IPython. references
2014-07-10 15:47:22 -05:00
Jonathan Frederic
516958ac07 Almost done!
Still need to check IPython uses in the widgets.
2014-07-10 15:26:25 -05:00
Jonathan Frederic
ca2014ad06 Pager 2014-07-10 15:25:09 -05:00
Jonathan Frederic
152e23dc76 Progress... 2014-07-10 15:25:09 -05:00
Jonathan Frederic
e6b7cc9ff9 Fixed events 2014-07-10 15:25:09 -05:00
Jonathan Frederic
8d511b2ff5 Finished moving code into final(?) resting modules 2014-07-10 15:25:09 -05:00
Jonathan Frederic
9bfe5fc06c Use ipython namepsace for instances. 2014-07-10 15:25:09 -05:00
Jonathan Frederic
fb32b6561f Start of work to make notebook.html requirejs friendly. 2014-07-10 15:25:08 -05:00
Jonathan Frederic
629204a2bb Fixed global IPython namespace. 2014-07-10 15:25:08 -05:00
Jonathan Frederic
b1c8d2662c Finished making tree.html requirejs friendly 2014-07-10 15:25:08 -05:00
Jonathan Frederic
9f4a03ce79 Started work to make tree requirejs friendly. 2014-07-10 15:25:08 -05:00
Jonathan Frederic
855815d207 Make page.html require.js friendly. 2014-07-10 15:25:08 -05:00
Min RK
3e3be268f9 Merge pull request #5963 from jdfreder/viewids
Allow widgets to display more than once within container widgets.
2014-07-10 09:59:01 -05:00
MinRK
55f455ab55 only set allow_origin_pat if defined
fixes the default behavior to be as intended (require Origin == Host)
2014-07-09 16:25:36 -05:00
Thomas Kluyver
2bcbd3c5cb Check for pids when listing nbserver processes 2014-07-09 00:03:16 -05:00
Jonathan Frederic
1a30a12302 Ahhh bug fix! 2014-07-08 13:43:18 -05:00
Jonathan Frederic
df47869fb0 Move displayed event to view. 2014-07-08 11:58:14 -05:00
Jonathan Frederic
fa39d91446 Review comments 2014-07-08 11:24:24 -05:00
Jonathan Frederic
988fd1b5f9 Reverted strange change that I don't remember making to update method. 2014-07-08 10:57:57 -05:00
Jonathan Frederic
3a9d888f02 Removed respect_order and finally removed the children dict of the containerview 2014-07-08 10:57:57 -05:00
Jonathan Frederic
f51903ca03 Bug fixes 2014-07-08 10:57:56 -05:00
Jonathan Frederic
f1269d3de3 Add order respecting method 2014-07-08 10:57:56 -05:00
Jonathan Frederic
636362787b Fixed buggy behavior 2014-07-08 10:57:56 -05:00
Jonathan Frederic
14ff754cdf Allow a widget to be displayed more than once within a parent widget. 2014-07-08 10:57:56 -05:00
Min RK
7af9f5f1f8 Merge pull request #6061 from minrk/cors
make CORS configurable
2014-07-06 22:57:12 -05:00
MinRK
0d9ba93307 persist notebook server cookie secret in security dir
prevents loss of login after relaunching the notebook server

closes #6075
2014-07-06 22:21:59 -05:00
MinRK
1edc97e34a s/cors_/allow_/
add notes about Tornado 4, and comments, updates per review
2014-06-30 10:40:31 -07:00
Jonathan Frederic
336a49eb18 Merge pull request #5995 from Carreau/clean-backward-compat
remove backward compat `container` in output area as planed.
2014-06-29 16:27:05 -07:00
Matthias BUSSONNIER
db5b58360e remove backward compat container in output area as planed. 2014-06-28 12:41:18 +02:00
MinRK
2460879e81 Remove a sleep no longer needed with the current base zmq version 2014-06-27 17:53:14 -07:00
MinRK
acf0da01d9 make CORS configurable
allows setting CORS headers.

- cors_origin sets Access-Control-Allow-Origin directly
- cors_origin_pat allows setting Access-Control-Allow-Origin via regular expression, since the header spec itself doesn’t support complex access[1]
- cors_credentials sets Access-Control-Allow-Credentials: true

To allow CORS from everywhere:

    ipython notebook —NotebookApp.cors_origin='*'
2014-06-27 17:47:56 -07:00
MinRK
78a8cb877f remove KernelApp.parent_appname
This allowed the Kernel to load config from ipython_qtconsole_config.py
or ipython_notebook_config.py, depending on the parent that started the kernel.
This is of limited usefulness, and can add weird, unexpected side effects.
2014-06-26 16:28:32 -07:00
Min RK
9f1dc1b99f Merge pull request #5803 from Carreau/ulh
unify visual line handling
2014-06-26 15:33:32 -07:00
Min RK
3fd6d371d7 Merge pull request #6015 from jcjaskula/dashboardExtensions
Creating an entry point for notebook manager extensions
2014-06-26 11:59:06 -07:00
Thomas Kluyver
85733cafa1 Merge pull request #6046 from minrk/raw-input-invalid
fix stream output created by raw_input
2014-06-25 18:13:05 -07:00
MinRK
ad4cb2c35a fix stream output created by raw_input
was using incorrect 'name', when it should have been 'stream',
creating invalid content in notebook documents.
2014-06-25 15:20:13 -07:00
MinRK
de0a7d7850 use utils.log.get_logger where appropriate 2014-06-24 20:16:46 -07:00
MinRK
e64f689374 don’t import IPython.parallel until it’s used
in IPython.html.notebookapp
2014-06-24 15:53:27 -07:00
Jean-Christophe Jaskula
9c2c680e8f Creating an entry point for notebook manager extensions
- Firing app_initialized.DashboardApp event when loaded the notebook manager
- Updating tree.html template to load nbextensions through custom.js
2014-06-24 15:03:29 -04:00
Min RK
c9961b44b6 Merge pull request #6000 from AlbertHilb/FloatWidgetValueFix
Validate initial value of "_BoundedFloatWidget".
2014-06-21 13:20:57 -05:00
Thomas Kluyver
3b92c7c24f Merge pull request #6011 from minrk/no-jsonapi
only use zmq.jsonapi when talking to zmq sockets
2014-06-18 14:45:31 -07:00
Min RK
99f52dee68 Merge pull request #5827 from takluyver/kernelspec-rest-api
Kernel specs REST API
2014-06-18 13:53:41 -07:00
MinRK
44d2a5b62a only use zmq.jsonapi when talking to zmq sockets
use stdlib json otherwise
2014-06-18 13:41:40 -07:00
Thomas Kluyver
ebf0ea32ef Use stdlib json, not zmq jsonapi 2014-06-18 12:51:41 -07:00
Steven Anton
f937045395 Set kernel_id before checking websocket
If websocket attempt fails and cross origin attempt is detected, a HTTPError(404) error is raised. However, in the process of closing connections because of this 404 error, an unhandled Attribute exception (kernel_id not an attribute) is raised. Setting the kernel_id first avoids this.
2014-06-17 12:29:55 -07:00
Raffaele De Feo
694f33e2ba Validate initial value of "_BoundedFloatWidget". 2014-06-17 15:02:28 +02:00
Thomas Kluyver
85ce34bc66 Kernel resource handlers now require authenticated user 2014-06-16 15:24:30 -07:00
Matthias BUSSONNIER
7128ff5148 add instruction to pin lessc 2014-06-13 21:56:39 +02:00
Matthias BUSSONNIER
fd4dd9246e inherit style instead of duplicating it 2014-06-13 21:56:39 +02:00
Jonathan Frederic
63f136af2b Fixed test to reflect new Bootstrap3 toggle button behavior. 2014-06-10 17:32:17 -07:00
Jonathan Frederic
22812d36b3 Use waits instead of sleeps. 2014-06-10 17:23:21 -07:00
Jonathan Frederic
5acb525c43 Wait for keyboard help fadein and fadeout. 2014-06-10 16:36:02 -07:00
Brian E. Granger
eab07229ef Merge pull request #5617 from jdfreder/bootstrap3
Migrate from Bootstrap 2 to Bootstrap 3
2014-06-10 10:51:50 -07:00
Jonathan Frederic
dba9a04f27 Removed block commented tour step (never worked anyways) 2014-06-10 10:50:34 -07:00
Jonathan Frederic
e31fa6cf2c Fix bootstrap tour 2014-06-10 10:14:14 -07:00