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
891cfe41
Commit
891cfe41
authored
Feb 28, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert to
e08963c7
parent
e447663d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
20 deletions
+15
-20
ihaskell.cabal
ihaskell.cabal
+1
-1
Test.ipynb
notebooks/Test.ipynb
+5
-16
IPython.hs
src/IHaskell/IPython.hs
+9
-3
No files found.
ihaskell.cabal
View file @
891cfe41
...
...
@@ -79,7 +79,7 @@ library
parsec -any,
process >=1.1,
random >=1.0,
shelly >=1.
4
,
shelly >=1.
3
,
split >= 0.2,
strict >=0.3,
system-argv0 -any,
...
...
notebooks/Test.ipynb
View file @
891cfe41
...
...
@@ -18,7 +18,7 @@
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
"prompt_number": 1
2
},
{
"cell_type": "code",
...
...
@@ -30,7 +30,7 @@
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number":
2
"prompt_number":
13
},
{
"cell_type": "code",
...
...
@@ -41,19 +41,8 @@
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<span class='err-msg'>Ambiguous interface for `Control.Monad.Identity': it was found in multiple packages: monads-tf-0.1.0.1 mtl-2.1.2</span>"
],
"metadata": {},
"output_type": "display_data",
"text": [
"Ambiguous interface for `Control.Monad.Identity': it was found in multiple packages: monads-tf-0.1.0.1 mtl-2.1.2"
]
}
],
"prompt_number": 3
"outputs": [],
"prompt_number": 14
},
{
"cell_type": "code",
...
...
@@ -69,7 +58,7 @@
"output_type": "display_data"
}
],
"prompt_number":
3
"prompt_number":
1
},
{
"cell_type": "code",
...
...
src/IHaskell/IPython.hs
View file @
891cfe41
...
...
@@ -55,9 +55,15 @@ ipython which suppress args = do
runCmd
<-
liftIO
$
Paths
.
getDataFileName
"installation/run.sh"
venv
<-
fpToText
<$>
ipythonDir
let
cmdArgs
=
[
pack
runCmd
,
venv
]
++
args
unpack
<$>
if
suppress
then
silently
$
run
"bash"
cmdArgs
else
run
"bash"
cmdArgs
runHandles
"bash"
cmdArgs
handles
doNothing
where
handles
=
[
InHandle
Inherit
,
outHandle
suppress
,
errorHandle
suppress
]
outHandle
True
=
OutHandle
CreatePipe
outHandle
False
=
OutHandle
Inherit
errorHandle
True
=
ErrorHandle
CreatePipe
errorHandle
False
=
ErrorHandle
Inherit
doNothing
_
stdout
_
=
if
suppress
then
liftIO
$
StrictIO
.
hGetContents
stdout
else
return
""
-- | Run while suppressing all output.
quietRun
path
args
=
runHandles
path
args
handles
nothing
...
...
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