Commit 03c5a956 authored by Andrew Gibiansky's avatar Andrew Gibiansky

Changing tooltip trigger to space, making duration 800ms.

parent 0ba3c8e7
......@@ -270,7 +270,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
"Out[1] * 2"
"zip "
],
"language": "python",
"metadata": {},
......
{-# LANGUAGE QuasiQuotes #-}
-- | Description : IPython configuration files are compiled-into IHaskell
module IHaskell.Config (ipython, notebook, console, qtconsole, customjs, tooltipjs) where
module IHaskell.Config (ipython, notebook, console, qtconsole, customjs, notebookJavascript) where
import Data.String.Here
import ClassyPrelude
......@@ -20,5 +20,6 @@ qtconsole = [template|config/ipython_qtconsole_config.py|]
customjs :: String
customjs = [template|config/custom.js|]
tooltipjs :: String
tooltipjs = [template|deps/tooltip.js|]
notebookJavascript :: [(FilePath, String)]
notebookJavascript = [("tooltip.js", [template|deps/tooltip.js|]),
("codecell.js", [template|deps/codecell.js|])]
......@@ -39,7 +39,8 @@ debug :: Bool
debug = True
ignoreTypePrefixes :: [String]
ignoreTypePrefixes = ["GHC.Types", "GHC.Base", "GHC.Show", "System.IO"]
ignoreTypePrefixes = ["GHC.Types", "GHC.Base", "GHC.Show", "System.IO",
"GHC.Floating"]
typeCleaner :: String -> String
typeCleaner = useStringType . foldl' (.) id (map (`replace` "") fullPrefixes)
......
......@@ -96,7 +96,8 @@ writeConfigFilesTo profileDir ihaskellPath = do
-- The notebook/js directory many not exist, in which case we'll create it.
mkdir_p (conf "static/notebook/")
mkdir_p (conf "static/notebook/js")
writeFile (conf "static/notebook/js/tooltip.js") Config.tooltipjs
forM_ Config.notebookJavascript $ \(file, content) ->
writeFile (conf "static/notebook/js/" ++ file) content
where
conf filename = fromText $ profileDir ++ filename
......
This diff is collapsed.
......@@ -30,7 +30,7 @@ var IPython = (function (IPython) {
// tooltip constructor
var Tooltip = function () {
var that = this;
this.time_before_tooltip = 1200;
this.time_before_tooltip = 800;
// handle to html
this.tooltip = \$('#tooltip');
......@@ -379,4 +379,4 @@ var IPython = (function (IPython) {
return IPython;
}(IPython));
\ No newline at end of file
}(IPython));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment