-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find file "topfind" #61
Comments
You shouldn't need to use ipython
```
iocaml notebook.ipynb
```
If you really want to use ipython, does adding
```
let () = Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")```;;
```
into a cell in the notebook make topfind work?
…On Tue, Apr 25, 2017 at 1:58 PM, Cristian Prieto ***@***.***> wrote:
I am learning OCaml right now and using a Python notebook for that is
awesome, thanks iocaml exists!, so if I am doing something stupid please
tell me...
Installed a new ocaml/opam installation, created a new switch for iocaml:
opam switch -A 4.03.0 iocaml
eval `opam config env`
opam install iocaml
opam install core
To make sure everything is ok, I created a new virtualenv for Python and
installed the *supported IPython*:
mkvirtualenv iocaml && pip install 'ipython[all]==1.1.0'
Followed the instructions at the wiki
<https://github.com/andrewray/iocaml/wiki/ipython_install> and tried the
new kernel:
ipython notebook --profile=iocaml
It runs, it highlights, it evaluates my expressions, nice. Now, it doesn't
load/require/use core or anything, so #use "topfind" results in 'File not
found' error, so #require "core" is not going to work because #require is
not recognised and open Core.Std is unbound...
Yes, I created an ~/.iocamlinit file as suggested by #14
<#14> and it looks pretty much
like this:
(* Added by OPAM. *)
let () =
try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
with Not_found -> ()
;;
#use "topfind";;
#thread;;
#camlp4o;;
and no, it is not working.
What am I doing wrong?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#61>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFqzI_4uA0zcc1Wl8mgBbNkMs024CDUwks5rze3tgaJpZM4NHcck>
.
|
I was following the instructions in the wiki, do you still need to install IPython then? I will need to update the instructions in the Wiki, I was following them line by line 😞 |
I am learning OCaml right now and using a Python notebook for that is awesome, thanks iocaml exists!, so if I am doing something stupid please tell me...
Installed a new ocaml/opam installation, created a new switch for iocaml:
To make sure everything is ok, I created a new virtualenv for Python and installed the supported IPython:
Followed the instructions at the wiki and tried the new kernel:
It runs, it highlights, it evaluates my expressions, nice. Now, it doesn't load/require/use core or anything, so
#use "topfind"
results in 'File not found' error, so#require "core"
is not going to work because#require
is not recognised andopen Core.Std
is unbound...Yes, I created an
~/.iocamlinit
file as suggested by #14 and it looks pretty much like this:and no, it is not working.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: