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

Changing tooltip trigger to space, making duration 800ms.

parent 0ba3c8e7
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
"cell_type": "code", "cell_type": "code",
"collapsed": false, "collapsed": false,
"input": [ "input": [
"Out[1] * 2" "zip "
], ],
"language": "python", "language": "python",
"metadata": {}, "metadata": {},
......
{-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE QuasiQuotes #-}
-- | Description : IPython configuration files are compiled-into IHaskell -- | 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 Data.String.Here
import ClassyPrelude import ClassyPrelude
...@@ -20,5 +20,6 @@ qtconsole = [template|config/ipython_qtconsole_config.py|] ...@@ -20,5 +20,6 @@ qtconsole = [template|config/ipython_qtconsole_config.py|]
customjs :: String customjs :: String
customjs = [template|config/custom.js|] customjs = [template|config/custom.js|]
tooltipjs :: String notebookJavascript :: [(FilePath, String)]
tooltipjs = [template|deps/tooltip.js|] notebookJavascript = [("tooltip.js", [template|deps/tooltip.js|]),
("codecell.js", [template|deps/codecell.js|])]
...@@ -39,7 +39,8 @@ debug :: Bool ...@@ -39,7 +39,8 @@ debug :: Bool
debug = True debug = True
ignoreTypePrefixes :: [String] 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 :: String -> String
typeCleaner = useStringType . foldl' (.) id (map (`replace` "") fullPrefixes) typeCleaner = useStringType . foldl' (.) id (map (`replace` "") fullPrefixes)
......
...@@ -96,7 +96,8 @@ writeConfigFilesTo profileDir ihaskellPath = do ...@@ -96,7 +96,8 @@ writeConfigFilesTo profileDir ihaskellPath = do
-- The notebook/js directory many not exist, in which case we'll create it. -- The notebook/js directory many not exist, in which case we'll create it.
mkdir_p (conf "static/notebook/") mkdir_p (conf "static/notebook/")
mkdir_p (conf "static/notebook/js") 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 where
conf filename = fromText $ profileDir ++ filename conf filename = fromText $ profileDir ++ filename
......
This diff is collapsed.
...@@ -30,7 +30,7 @@ var IPython = (function (IPython) { ...@@ -30,7 +30,7 @@ var IPython = (function (IPython) {
// tooltip constructor // tooltip constructor
var Tooltip = function () { var Tooltip = function () {
var that = this; var that = this;
this.time_before_tooltip = 1200; this.time_before_tooltip = 800;
// handle to html // handle to html
this.tooltip = \$('#tooltip'); this.tooltip = \$('#tooltip');
...@@ -379,4 +379,4 @@ var IPython = (function (IPython) { ...@@ -379,4 +379,4 @@ var IPython = (function (IPython) {
return IPython; return IPython;
}(IPython)); }(IPython));
\ No newline at end of file
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