Commit Graph

6742 Commits

Author SHA1 Message Date
Min RK
f971cad223 use translateZ(0) to avoid repaints of #site on scroll. 2015-01-23 15:11:59 -08:00
Min RK
f499104d75 don't use flexbox to size #site
The approach in #7517 didn't work on Safari
(as in the entire page was invisible).

This is the same mechanism used to size the CodeMirror div on the edit page, and should work more reliably.
2015-01-23 15:11:59 -08:00
Min RK
99faeddf36 wait for new-notebook button to arrive
before clicking it.

Race condition was causing intermittent test failures.
2015-01-23 15:07:25 -08:00
Min RK
5dfece0a2a Merge pull request #7514 from minrk/border-markdown
add border to rendered markdown with cell toolbar
2015-01-22 21:42:37 -08:00
Min RK
57d5f7a4e0 Indicate that terminals are unavailable
rather than hiding any evidence of their existence
2015-01-22 18:43:18 -08:00
Thomas Kluyver
0dba8bd7e3 Update date picker widget example
Closes gh-6610
2015-01-22 17:07:41 -08:00
Min RK
3d96dfc6fb Merge pull request #7523 from jdfreder/outputwidgetfix
Fix the output widget
2015-01-22 17:02:59 -08:00
Thomas Kluyver
70d57aac76 Fix widget dropdown example
Thanks to @parente in #7350 for spotting this.
2015-01-22 16:51:09 -08:00
Andrew Dawes
98e77906e4 removed tab backward 2015-01-22 16:37:04 -08:00
Jason Grout
009dcf43cf change filename to unicode string 2015-01-22 23:06:18 +00:00
Thomas Kluyver
306ced6ac7 Merge pull request #7541 from minrk/no-no-default
remove preventDefault on menubar
2015-01-22 14:57:43 -08:00
Jonathan Frederic
374be802c0 Merge pull request #7517 from minrk/scroll-offset
don't use fixed header
2015-01-22 14:50:07 -08:00
Jason Grout
ad35813576 Make nbextension test a little clearer about the intent. 2015-01-22 22:33:45 +00:00
Min RK
e2c48d6df7 Merge pull request #7526 from jdfreder/editscroll
Explicitly size codemirror editor in Edit app
2015-01-22 14:25:02 -08:00
Jason Grout
9701ce1752 Add some unit tests for the new dictionary syntax for installing nbextensions 2015-01-22 21:49:33 +00:00
Jonathan Frederic
efe654e59d Use longer version of document.ready 2015-01-22 13:23:27 -08:00
Jason Grout
996d77cc89 Add documentation to check_nbextension, and switch order of parameters to be consistent with install_nbextension. 2015-01-22 21:23:12 +00:00
Jason Grout
25b475bc0a Refactor the logic to get the nbextension directory
We do this so that check_nbextension corresponds to install_nbextension.
2015-01-22 21:18:09 +00:00
Min RK
76624b9a93 remove preventDefault on menubar
no longer needed after removing fixed header
2015-01-22 13:08:01 -08:00
Jason Grout
6b4c986407 Work around a bug in setting and getting the mtime in python 2
See http://bugs.python.org/issue12904.  Basically, we can get the mtime in
nanosecond precision, but only set it in microsecond precision.  This means
that the shutil.copy2 will not set the destination's mtime to exactly the same
mtime as our source.  The end result is that we can *always* end up copying
the extension because the source always appears newer.  We add a microsecond of fudge time when checking to see
if the source is newer than the destination to get around this.

This bug is fixed in Python 3.3+, I believe.
2015-01-22 20:49:51 +00:00
Jason Grout
3beb707717 Copy as much of the nbextension as we can, even if there are errors for some of the files. 2015-01-22 20:47:10 +00:00
Jason Grout
a3d0a1764b Fix the path we use when walking to include the path separator
This is so that parent[len(path):] isn't an absolute path, so the pjoin doesn't throw dest away.
2015-01-22 20:46:42 +00:00
Jason Grout
fc5a3bb304 Don't overwrite the dest variable 2015-01-22 20:41:27 +00:00
Jonathan Frederic
c248211ed6 Don't build message twice. 2015-01-22 11:15:43 -08:00
Jonathan Frederic
6eda2d80f9 Add support for Message class. 2015-01-22 10:45:06 -08:00
Jonathan Frederic
273a8030d9 Hook the output the right way. 2015-01-22 10:34:17 -08:00
Jason Grout
bf4a20f382 Initial take on implementing configurable destinations for nbextensions.
This allows for a directory in a package to be called 'nbextensions', but be installed to an nbextension named after the package, for example.
2015-01-22 18:23:39 +00:00
Jonathan Frederic
6b9558c613 Be a little more clear about sizing logic. 2015-01-22 09:51:49 -08:00
Matthias Bussonnier
c296186380 Merge pull request #7530 from parente/bump-dockerfile-less
Bump less to @<3.0 so setup.py css works
2015-01-22 16:00:08 +01:00
Andrew Dawes
8ed28bf57d cleaned up new function and removed comments 2015-01-21 21:03:06 -08:00
Andrew Dawes
09818e6b02 working function to build modifier key list 2015-01-21 20:54:19 -08:00
Peter Parente
0a57949cce Bump less to @<3.0 so setup.py css works 2015-01-21 22:08:39 -05:00
Min RK
cf25b8a93c fix printing 2015-01-21 17:14:53 -08:00
Thomas Kluyver
3c8ca375f3 Merge pull request #7525 from tbittner/document-interact-5637
Document interact 5637
2015-01-21 13:26:14 -08:00
Jonathan Frederic
bdd40e2734 Explicitly size codemirror editor in Edit app 2015-01-21 13:19:52 -08:00
Jonathan Frederic
526071cadb Remove superfluous return 2015-01-21 12:33:28 -08:00
Torsten Bittner
d5a7879a26 Add documentation for interactive function. 2015-01-21 12:25:28 -08:00
Jonathan Frederic
39b99340ed Finished changing output widget logic. 2015-01-21 11:27:19 -08:00
Min RK
ab221f09f9 toggle scroll from auto based on current scroll
rather than always `false`
2015-01-21 11:13:05 -08:00
Min RK
66450cf2b3 allow users to set scroll state
and persist that state in metadata.

When user toggles the scroll state,
the choice is remembered and persisted.

There are three states:

- 'auto' (default, only state in master)
- true (always scroll if above minimum_scroll_threshold)
- false (never scroll)

true or false is persisted in cell.metadata.scrolled.
"auto" may be persisted, but isn't currently because it's the default state.
2015-01-21 11:12:29 -08:00
Andrew Dawes
1a10511143 new function build_key_names to automate 2015-01-21 11:01:23 -08:00
Andrew Dawes
471c1c9bba layout key modifiers in alert-warning box 2015-01-21 09:46:30 -08:00
Andrew Dawes
f37edd7eef rough draft of formatting 2015-01-21 07:44:26 -08:00
Andrew Dawes
c011dd9bfd first shot at adding list of key symbols, need to format nicely 2015-01-20 23:30:56 -08:00
Min RK
e1926b2f12 Merge pull request #7515 from jhamrick/fix-tour
Fix user interface tour

closes #5570 
closes #7418
2015-01-20 21:23:55 -08:00
Torsten Bittner
080f926c8e Add documentation for interact function. 2015-01-20 17:51:04 -08:00
Min RK
b84ad79b2f don't use fixed header
instead, use static header and flex box to accomplish the same thing.

fixes various issues related to scrolling, anchors, etc.
2015-01-20 17:11:51 -08:00
Min RK
bfc9908b75 Merge pull request #7516 from minrk/empty-language-info
don't set language_info to an empty dict
2015-01-20 16:12:21 -08:00
Min RK
4fe63dd38f don't set language_info to an empty dict
delete it from metadata if language_info is undefined
2015-01-20 15:47:02 -08:00
Brian E. Granger
918d13200a Merge pull request #7271 from jdfreder/remove-term-page
Try moving terminal page contents into the running tab.
2015-01-20 15:29:25 -08:00