IHaskell和IPython可以共存吗? [英] Can IHaskell and IPython coexist?

查看:114
本文介绍了IHaskell和IPython可以共存吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了IPython和IPython Notbook,并正在通过IHaskell安装说明。我已经安装了所有IHaskell先决条件,但在我提交之前安装IHaskell本身的最后一步

I have IPython and IPython Notbook installed and am working my way through the IHaskell installation instructions. I have all the IHaskell prerequisites installed, but before I commit to the final step of installing IHaskell itself with

cabal install ihaskell --reorder-goals

我想确认一个 - 也许是显而易见的 - 我还能使用 Python 笔记本吗?以上步骤中的说明似乎在说只需输入

I want to confirm one — perhaps obvious — thing: Will I still be able to use Python Notebooks? The instructions following the step above seem to say that simply entering

ipython notebook

将运行Haskell而不是Python,就像Haskell在IPython笔记本中替换了 Python一样。是这样的吗?如何指定我是想在笔记本中运行Haskell还是Python,还是在IPython本身中运行?我可以在两者之间自由切换吗?

will run Haskell rather than Python, as if Haskell has replaced Python in IPython Notebooks. Is this the case? How do I specify whether I want to run Haskell or Python in a notebook, or in IPython itself for that matter? Can I switch freely between the two?

OS X 10.10.4; Xcode 6.4; CLT:6.4.0.0.1; Clang:6.1; Haskell平台 7.10.2-a。 Python 2.7.10(Homebrew)。一般使用Homebrew,但是,遵循看似 Homebrew的推荐,而不是Haskell。

OS X 10.10.4; Xcode 6.4; CLT: 6.4.0.0.1; Clang: 6.1; Haskell Platform 7.10.2-a. Python 2.7.10 (Homebrew). Using Homebrew in general, but, following what appears to be Homebrew's recommendation, not for Haskell.

推荐答案

像其他内核,IHaskell可以添加到IPython / Jupyter而不会干扰其他内核。一旦添加,笔记本将识别(适当标记的)笔记本中使用的语言,并将在新笔记本菜单中添加一个条目,允许选择用于新笔记本的语言。

Like other kernels, IHaskell can be added to IPython/Jupyter without interfering with other kernels. Once added Notebooks will recognize the language used in (suitably tagged) notebooks and will add an entry to the 'New' notebook menu that allows selection of the language to be used for new notebooks.

每个内核都有自己的命令,可以将自己添加到IPython / Jupyter。对于IHaskell,这个只是

Each kernel will have its own command for adding itself to IPython/Jupyter. For IHaskell this is simply

ihaskell install

这篇关于IHaskell和IPython可以共存吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆