Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
959085d0
Commit
959085d0
authored
Jan 05, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smaller charts :)
parent
354cffca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
57 deletions
+4
-57
Charts.hs
ihaskell-display/ihaskell-charts/IHaskell/Display/Charts.hs
+2
-2
profile.tar
profile/profile.tar
+0
-0
custom.js
profile/static/custom/custom.js
+2
-55
No files found.
ihaskell-display/ihaskell-charts/IHaskell/Display/Charts.hs
View file @
959085d0
...
@@ -14,10 +14,10 @@ import System.IO.Unsafe
...
@@ -14,10 +14,10 @@ import System.IO.Unsafe
import
IHaskell.Display
import
IHaskell.Display
width
::
Width
width
::
Width
width
=
60
0
width
=
45
0
height
::
Height
height
::
Height
height
=
4
00
height
=
3
00
instance
IHaskellDisplay
(
Renderable
a
)
where
instance
IHaskellDisplay
(
Renderable
a
)
where
display
renderable
=
do
display
renderable
=
do
...
...
profile/profile.tar
View file @
959085d0
No preview for this file type
profile/static/custom/custom.js
View file @
959085d0
// leave at least 2 line with only a star on it below, or doc generation fails
/**
*
*
* Placeholder for custom user javascript
* mainly to be overridden in profile/static/js/custom.js
* This will always be an empty file in IPython
*
* User could add any javascript in the `profile/static/js/custom.js` file
* (and should create it if it does not exist).
* It will be executed by the ipython notebook at load time.
*
* Same thing with `profile/static/css/custom.css` to inject custom css into the notebook.
*
* Example :
*
* Create a custom button in toolbar that execute `%qtconsole` in kernel
* and hence open a qtconsole attached to the same kernel as the current notebook
*
* $([IPython.events]).on('notebook_loaded.Notebook', function(){
* IPython.toolbar.add_buttons_group([
* {
* 'label' : 'run qtconsole',
* 'icon' : 'ui-icon-calculator', // select your icon from http://jqueryui.com/themeroller/
* 'callback': function(){IPython.notebook.kernel.execute('%qtconsole')}
* }
* // add more button here if needed.
* ]);
* });
*
* Example :
*
* Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );`
* to load custom script into the notebook.
*
* // to load the metadata ui extension example.
* $.getScript('/static/js/celltoolbarpresets/example.js');
* // or
* // to load the metadata ui extension to control slideshow mode / reveal js for nbconvert
* $.getScript('/static/js/celltoolbarpresets/slideshow.js');
*
*
* @module IPython
* @namespace IPython
* @class customjs
* @static
*/
// end of IPython unmodified version
$
([
IPython
.
events
]).
on
(
'notebook_loaded.Notebook'
,
function
(){
$
([
IPython
.
events
]).
on
(
'notebook_loaded.Notebook'
,
function
(){
// add here logic that should be run once per **notebook load**
// add here logic that should be run once per **notebook load**
// (!= page load), like restarting a checkpoint
// (!= page load), like restarting a checkpoint
...
@@ -88,7 +37,7 @@ $([IPython.events]).on('app_initialized.NotebookApp', function(){
...
@@ -88,7 +37,7 @@ $([IPython.events]).on('app_initialized.NotebookApp', function(){
IPython
.
CodeCell
.
options_default
[
'cm_config'
][
'mode'
]
=
'haskell'
;
IPython
.
CodeCell
.
options_default
[
'cm_config'
][
'mode'
]
=
'haskell'
;
});
});
var
highlightCodes
=
function
()
{
$
([
IPython
.
events
]).
on
(
'shell_reply.Kernel'
,
function
()
{
// Add logic here that should be run once per reply.
// Add logic here that should be run once per reply.
$
(
'.highlight-code'
).
each
(
function
()
{
$
(
'.highlight-code'
).
each
(
function
()
{
var
$this
=
$
(
this
),
var
$this
=
$
(
this
),
...
@@ -107,6 +56,4 @@ var highlightCodes = function() {
...
@@ -107,6 +56,4 @@ var highlightCodes = function() {
readOnly
:
true
readOnly
:
true
});
});
});
});
};
});
$
([
IPython
.
events
]).
on
(
'shell_reply.Kernel'
,
highlightCodes
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment