2
0
mirror of https://github.com/jupyter/notebook.git synced 2025-02-23 12:49:41 +08:00
Commit Graph

1439 Commits

Author SHA1 Message Date
sylvain.corlay
972fbb5f34 widget simplification continued 2014-07-24 00:26:41 -04:00
Paul Ivanov
294df0e623 changing the text should reset rendered flag 2014-07-23 21:13:35 -07:00
sylvain.corlay
8e8e6291d4 Partial updates of css and visible + simplification of widget_container 2014-07-24 00:12:33 -04:00
MinRK
01e1d1d40f regen css (non-minified)
via `setup.py css`
2014-07-23 14:57:17 -07:00
Brian E. Granger
29d67ed8a3 Merge pull request from SylvainCorlay/once-displayed
once-displayed
2014-07-23 14:17:38 -07:00
Jason Grout
3fc4442053 Move shim to the standard location 2014-07-23 21:13:42 +00:00
Brian E. Granger
372507e3f1 Merge pull request from jasongrout/widget-trait-serialization
Widget trait serialization
2014-07-23 14:13:24 -07:00
Sylvain Corlay
cd7942eb06 renaming once_displayed into after_displayed 2014-07-23 20:26:44 +00:00
Sylvain Corlay
cfc4a62a85 one more bit 2014-07-23 20:15:37 +00:00
MinRK
9ff7d264ab note loaded, unused dependencies in require 2014-07-23 11:06:01 -07:00
MinRK
c72cd05cf3 fix docstring in events.js
example shows registering a handler, not triggering an event.
2014-07-23 11:05:36 -07:00
MinRK
4097da724b preserve backward-compatible $([IPython.events]) 2014-07-23 11:05:36 -07:00
Jason Grout
abf86d5324 Trigger app_initialized event *after* the 'global' IPython object is initialized 2014-07-23 11:05:34 -07:00
MinRK
b1291df14a return global events from require(['base/js/events']).
In master, it is impossible to load code on IPython events without setting timeouts.
2014-07-23 11:05:06 -07:00
Min RK
2fe0687097 Merge pull request from jasongrout/less-upgrade
Less upgrade
2014-07-23 10:06:42 -07:00
Matthias Bussonnier
cb810bad86 Merge pull request from minrk/bootstrap-shim
add bootstrap shim for require
2014-07-23 16:59:59 +02:00
MinRK
d345546d15 add bootstrap shim for require
it was possible for bootstrap js to load before jquery,
causing failures in the dashboard.
2014-07-22 15:53:16 -07:00
MinRK
137f98014a pass ws_url to kernel constructor
via session constructor via notebook constructor…
2014-07-22 15:24:20 -07:00
MinRK
e17c636e18 coalesce stream output in the notebook
This merges consecutive outputs on one stream into a single output.

Essentially, it applies the same merging that we do visually to the content stored in the notebook document.

This results in a massive performance improvement in load-time and storage size
for notebooks that have many calls to `sys.stdout.flush()`.
2014-07-22 15:21:14 -07:00
MinRK
579f5101f0 restore websocket_url configurable
allows ws to be handled via separate proxies,
as appears to be the case on OpenShift and some other hosting services.
2014-07-22 14:43:40 -07:00
Jason Grout
ab9e4b600e Add a requirejs shim for highlight.js
Before this, highlighting code in markdown cells was broken since hljs wasn't available.

A better solution might be to build the highlight.js amd module (i.e., build the highlight.js module with `--target=amd`) so that we don't need the shim.
2014-07-22 20:49:52 +00:00
Jason Grout
4c5f4e750a Compile less files 2014-07-22 14:50:11 +00:00
Jason Grout
33f256a195 abstract hard-coded style values to be variables for different theming 2014-07-22 14:46:59 +00:00
MinRK
112c4083e9 add comments for style blocks in less
separates each component into individual line in compiled css,
reducing some churn in minified css files.
2014-07-22 14:46:59 +00:00
Sylvain Corlay
b4d5094645 correction in widget.js 2014-07-22 14:36:22 +00:00
Matthias Bussonnier
f3e599e0c4 Merge pull request from parleur/patch-2
Span in CellToolBar instead of div
2014-07-22 14:44:19 +02: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 from Carreau/pagemain
remove pagemain.js
2014-07-20 13:28:30 -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
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
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
Jonathan Frederic
20045a2f85 Merge pull request from SylvainCorlay/widget-area-show
Instances of WidgetView do not trigger widget_area.show anymore.
2014-07-14 12:09:54 -05:00
Thomas Kluyver
5afc070910 Add default_kernel_name class level variable 2014-07-11 15:27:36 -05:00
Sylvain Corlay
70cacc642a Solving : 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
6efbe46b73 Update JS for kernels and sessions APIs 2014-07-10 23:54:31 -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
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
Jonathan Frederic
336a49eb18 Merge pull request 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
Min RK
9f1dc1b99f Merge pull request from Carreau/ulh
unify visual line handling
2014-06-26 15:33:32 -07:00
Min RK
3fd6d371d7 Merge pull request from jcjaskula/dashboardExtensions
Creating an entry point for notebook manager extensions
2014-06-26 11:59:06 -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
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
Matthias BUSSONNIER
fd4dd9246e inherit style instead of duplicating it 2014-06-13 21:56:39 +02: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
Jonathan Frederic
99b1747c60 Bootstrap Tour related fixes 2014-06-09 17:46:20 -07:00
Jonathan Frederic
bccb7ddaea Fab CSS 2014-06-09 16:14:07 -07:00
Jonathan Frederic
ea29056e7c Review 2014-06-09 16:13:59 -07:00
Jonathan Frederic
63350a4d54 Fab CSS 2014-06-09 12:13:31 -07:00
Jonathan Frederic
1224af6028 Fixed cell toolbar select font size 2014-06-09 12:13:21 -07:00
Jonathan Frederic
cd289b6bdf Fab CSS 2014-06-09 12:06:29 -07:00
Jonathan Frederic
83eee97e95 Review comments 2014-06-09 12:05:40 -07:00
Jonathan Frederic
3bb8c472cd Modal fixes for BS3 2014-06-09 12:05:40 -07:00
Jonathan Frederic
4917aba5e4 Fab CSS 2014-06-09 12:05:40 -07:00
Jonathan Frederic
2d8afab3d4 Fix widget widths for Bootstrap3 2014-06-09 12:05:40 -07:00
Jonathan Frederic
33f7f4457f Widget bootstrap3 fixes 2014-06-09 12:05:39 -07:00
Jonathan Frederic
29de556b94 Fab CSS 2014-06-09 12:05:39 -07:00
Jonathan Frederic
8fd3515794 Post discussion with @ellisonbg 2014-06-09 12:05:39 -07:00
Jonathan Frederic
ceff3db0a2 Fab CSS 2014-06-09 12:05:39 -07:00
Jonathan Frederic
616bdcee81 Make maintoolbar select dropdowns look nice 2014-06-09 12:05:39 -07:00
Jonathan Frederic
32c7aea922 Fab CSS 2014-06-09 12:05:39 -07:00
Jonathan Frederic
73f68f9b93 Revert 2em notebook header space 2014-06-09 12:05:39 -07:00
Jonathan Frederic
5584eb06a9 Fab CSS 2014-06-09 12:05:39 -07:00
Jonathan Frederic
45ebf12371 Left align "File" instead of menu edge. 2014-06-09 12:05:39 -07:00
Jonathan Frederic
6834cb95bc Rebase cleanup, comments and nesting 2014-06-09 12:05:39 -07:00
Jonathan Frederic
dec962194f Update components to point to right branch 2014-06-09 12:05:39 -07:00
Jonathan Frederic
ff2e317fff Fab CSS 2014-06-09 12:05:38 -07:00
Jonathan Frederic
22c94ab404 Lots of small alignment tweaks to get Bootstrap3 looking better 2014-06-09 12:05:38 -07:00
jon
0b5a42fca6 Fab CSS 2014-06-09 12:05:38 -07:00
jon
ef19b962b5 Fix cell toolbar 2014-06-09 12:05:38 -07:00
jon
8dbf3afa7d Fixed cell toolbar dropdown 2014-06-09 12:05:38 -07:00
jon
0cc924e5e3 Fixed IPython dialog 2014-06-09 12:05:38 -07:00
jon
68cfaeb7c9 Fixed status indicator region 2014-06-09 12:05:38 -07:00
jon
9bce946f2e Added function to create Bootstrap specific drop down. 2014-06-09 12:05:38 -07:00
Jonathan Frederic
ade308803e Added dropdown submenu CSS 2014-06-09 12:05:38 -07:00
Jonathan Frederic
e30ff19ca8 Move header padding removal to base page style 2014-06-09 12:05:38 -07:00
Jonathan Frederic
778db574ed Removed static height from selects in toolbar 2014-06-09 12:05:37 -07:00
Jonathan Frederic
96b19ae598 Removed low margin from header. 2014-06-09 12:05:37 -07:00
Jonathan Frederic
697cc58655 Change the nav bar to nav-pills 2014-06-09 12:05:37 -07:00
Jonathan Frederic
0689830c4b Fixes to make spinners in cluster list display correctly. 2014-06-09 12:05:37 -07:00
Jonathan Frederic
0483bb2ed8 Fixed cluster list. 2014-06-09 12:05:37 -07:00
Jonathan Frederic
3635272119 Removed margin from row element 2014-06-09 12:05:37 -07:00
Jonathan Frederic
88a129eab3 Fab CSS 2014-06-09 12:05:37 -07:00
Jonathan Frederic
204130d292 Re-enabled nav bar height 2014-06-09 12:05:37 -07:00
Jonathan Frederic
242318be9b Fab CSS 2014-06-09 12:05:37 -07:00
Jonathan Frederic
365aafdaa2 Automated pass on LESS variables 2014-06-09 12:05:37 -07:00
Jonathan Frederic
329a387f4f Fix automation errors. 2014-06-09 12:05:37 -07:00
Jonathan Frederic
d88daf1bb7 Ran jdfreder/bootstrap2to3 2014-06-09 12:05:37 -07:00
Jonathan Frederic
5c47651786 Get notebook running with Bootstrap3 2014-06-09 12:05:36 -07:00
Min RK
2c8a53aca1 Merge pull request from jdfreder/i5943
Markdown rendering bug fix.
2014-06-04 15:54:06 -07:00
Brian E. Granger
c9f9f5bbd2 Merge pull request from jdfreder/i5709
Add latex support in widget labels,
2014-06-04 14:21:34 -07:00
Brian E. Granger
648bb51758 Merge pull request from jdfreder/i5135
Mixed gfm/latex parsing in codemirror
2014-06-04 13:37:54 -07:00
Min RK
724109454b Merge pull request from jdfreder/i5688
Remember cursor position on cell type change
2014-06-04 12:22:16 -07:00
Min RK
3badefd651 Merge pull request from jdfreder/i5821
Change widget css dict to a list,
2014-06-04 12:21:43 -07:00
Min RK
4a84a809a0 Merge pull request from ellisonbg/widget-fixes
Widget fixes
2014-06-04 12:12:10 -07:00
Jonathan Frederic
d84c8fa863 Fixed mardown rendering bug.
The wrong signature of `$()` was being used
wrong: http://api.jquery.com/jQuery/#jQuery1
right: http://api.jquery.com/jQuery/#jQuery2

Instead of implictly calling parseHTML, call it explicitly.
closes 
2014-06-03 14:04:56 -07:00
Jonathan Frederic
19d12e3025 Remember cursor position on cell type change 2014-06-03 10:34:43 -07:00
Jonathan Frederic
33a0a3cc87 Add latex support in widget labels,
This PR even adds support to use latex in PopupWidget titles.
2014-06-02 16:06:01 -07:00
Jonathan Frederic
74483d77da Change css dict to a list,
even though this introduces O(N) complexity, it fixes a bug
where path dependent css traits could be executed out of order,
making it impossible to actually set the traits from the back-end.
2014-06-02 15:00:33 -07:00
Ramiro Gómez
2215ddefca Change z-index of ipython_tooltip
I experienced the problem stated in . Giving the ipython_tooltip class a higher z-index indeed solves the problem. I intentionally set it to a high value so it likelier remains on top when styles are changed in the future.
2014-05-28 23:45:44 +02:00
MinRK
88be381b00 forcefully hide CodeMirror scrollbars
workaround for CodeMirror issue 2562

less drastic but more gross alternative to 
2014-05-22 12:32:51 -07:00
Jonathan Frederic
802f74e190 Create ipythongfm mode 2014-05-21 11:00:47 -07:00
Min RK
9794017dee Merge pull request from ivanov/preserve-cell-type
inserting new cells preserves cell type
2014-05-20 21:04:55 -07:00
Paul Ivanov
7778aed8a8 inserting new cells preserves type closes 2014-05-20 15:40:32 -07:00
Paul Ivanov
f2f1726cad use current cell's type when inserting
this preserve all previous behavior, but simply adds the ability to
insert cells without specifying a cell type, in which case the cell type
is inferred from the currently selected cell
2014-05-20 15:40:26 -07:00
Min RK
a540078d8d Merge pull request from AlbertHilb/CellToolbar
Two cell toolbar fixes.
2014-05-16 09:56:46 -07:00
watercrossing
fe37c14bdf add page-up and page-down functionality to the autocomplete dropdown 2014-05-15 14:35:59 +01:00
MinRK
970863331b remove Firefox-specific CSS workaround
The bug being worked around appears to be fixed either in CodeMirror or Firefox (tested with FF 29).

Importantly, the workaround appears to *introduce* incorrect behavior

closes 
closes 
2014-05-12 14:17:01 -07:00