-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding more general configuration mechanism.
- Loading branch information
Showing
7 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,5 +86,6 @@ executable IHaskell | |
shelly ==1.3.*, | ||
system-argv0, | ||
directory, | ||
here, | ||
system-filepath, | ||
text ==0.11.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{-# LANGUAGE QuasiQuotes #-} | ||
module IHaskell.Config (ipython, notebook, console, qtconsole) where | ||
|
||
import Data.String.Here | ||
import ClassyPrelude | ||
|
||
ipython :: String -> String | ||
ipython executable = [template|config/ipython_config.py|] | ||
|
||
notebook :: String | ||
notebook = [template|config/ipython_notebook_config.py|] | ||
|
||
console :: String | ||
console = [template|config/ipython_console_config.py|] | ||
|
||
qtconsole :: String | ||
qtconsole = [template|config/ipython_qtconsole_config.py|] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Available Subsitutions: | ||
# ${executable}: Path to IHaskell kernel. | ||
c = get_config() | ||
exe = '${executable}'.replace(' ', '\\\\ ') | ||
c.KernelManager.kernel_cmd = [exe, 'kernel', '{connection_file}'] | ||
c.Session.key = b'' | ||
c.Session.keyfile = b'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Empty. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Empty. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Empty. |