Skip to content
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

zeromq/IPython notebook integration. #1675

Closed
Carreau opened this issue Dec 4, 2012 · 9 comments
Closed

zeromq/IPython notebook integration. #1675

Carreau opened this issue Dec 4, 2012 · 9 comments

Comments

@Carreau
Copy link

Carreau commented Dec 4, 2012

Hi guys,

As seen in #1330 we discussed integrating Julia in IPython notebook.

In ipython/ipython#2643 I was able to do the basics for ruby, based on an already existing work.

So i'm trying to do it in Julia.

Right now, I'm hitting the issue that I can't figure out how to use the zmq module wich tells me :

$ ./julia                                                                            
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.0.0+103613846.r4df9
 _/ |\__'_|_|_|\__'_|  |  Commit 4df9f62631 (2012-12-04 10:16:32)
|__/                   |

julia> require("ui/zeromq/zmq")
error in method definition: function Base.convert must be explicitly imported to be extended
 in load_now at util.jl:228
 in load_now at util.jl:240
 in require at util.jl:176
at /Users/matthiasbussonnier/julia/ui/zeromq/zmq.jl:391

I googled around, read the doc and grep'ed in the source tree, but so far no luck.

I hope it will only be second for you to solve it. I already apologize, this is certainly a newbies question as this is my first julia program.

Thanks !

@StefanKarpinski
Copy link
Sponsor Member

Great to have you trying this! cc: @aviks, @timholy for ZMQ expertise.

@timholy
Copy link
Sponsor Member

timholy commented Dec 4, 2012

I think this is a casualty of recent changes to modules; I haven't used it myself in a few weeks. @aviks has just packaged this, perhaps he's fixed it already? I think the plan is for the code in ui/ to go away.

@aviks
Copy link
Member

aviks commented Dec 4, 2012

Yes, ui/zeromq/zmq has been broken since the Module/method import changes. The packaged version is correct.

@Carreau, try the packaged version from https://github.com/aviks/ZMQ.jl

essentially, in a julia REPL,

require("pkg")
Pkg.init()
Pkg.add("ZMQ")

require("ZMQ")

Let me know if you have any problems. It'll be great to have iPython notebook integration

@Carreau
Copy link
Author

Carreau commented Dec 4, 2012

Thanks for the answer !

Initialized empty Git repository in /private/var/folders/qt/k86gsxpj3qx64wm5d87y2t0h0000gn/T/tmpcr60Zs/.git/
Cloning into 'METADATA'...
fatal: unable to connect to github.com:
github.com[0: 207.97.227.239]: errno=Connection refused

Clone of 'git://github.com/JuliaLang/METADATA.jl.git' into submodule path 'METADATA' failed
failed process: `git submodule add git://github.com/JuliaLang/METADATA.jl.git METADATA` [ProcessExited(1)]
 in run at process.jl:661
 in anonymous at no file:51
 in cd at file.jl:176
 in init at /Users/matthiasbussonnier/julia/base/pkg.jl:35
 in init at /Users/matthiasbussonnier/julia/base/pkg.jl:58

But that's for sure because my work blocks git protocol.. (any way to ask it to do it with https ?)

Otherwise i'll do it from home and keep you informed...

I guess I'll be bothering you for the next few weeks :-)

Thanks.

@StefanKarpinski
Copy link
Sponsor Member

I need to implement an easy way of switching all our git protocol URLs at once. Sorry about the hassle. I really wish that GitHub would implement access controls for their SSH protocol so that everyone could just use ssh:// urls for everything.

@Carreau
Copy link
Author

Carreau commented Dec 4, 2012

I really wish that GitHub would implement access controls for their SSH protocol so that everyone could just use ssh:// urls for everything.

Github guy are competent, and they already did a lot of stuff with the ability to push over https (as some firewall block port 22... hum) but ssh would be nice too.

I really wish the IT guy wouldn't respond "have you tried start menu> reboot" when you just told them just made kernel upgrade and that with ssh tunnel it does works.
and
"we don't know why it is not booting" after bringing a computer 2 day earlier and tell "can you reinstall the MFT is corrupted". ( and BTW they couldn't because they didn't had any floppy disk to put the raid driver on it...sight)

@Carreau
Copy link
Author

Carreau commented Dec 4, 2012

require("pkg")
Pkg.init()
Pkg.add("ZMQ")

require("ZMQ")

Works !
Great ! I'll see what I can do with that !

@StefanKarpinski
Copy link
Sponsor Member

Excellent. (It's nice when someone tells me this works since otherwise all I see is breakage.)

@ViralBShah
Copy link
Member

Further discussion on zeromq/ipython integration can continue in #1330. Closing this since the zmq issue seems like it is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants