-
-
Notifications
You must be signed in to change notification settings - Fork 416
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
Deployment of Julia-ipython for web usage #1
Comments
@ViralBShah, the IJulia stuff is getting close to being usable (I would also like to use it this fall). Can you look into what we have to do to get this on a server? |
I've been doing some work with Docker containers. Potentially useful here. |
Does ipython provide anything for user/session management, so that you can deploy it behind a apache or nginx, which forks off a new session for every new user? |
Not really, currently we make the assumption that the person that start the server wil own all the kernels. There is a simple https/password (no username) mechanisme to prevent other users from logging into others' notebook. There are tools like hydra and other I forgot the names that spawn one server/user + setup auth on a per user basis. Real development for multi-user loggin in planed for next year (if nobody outside of core team tackle it :-) ) |
@yarapavan Would it be possible for you to try this out, and see how far we can get in providing a hosted IJulia based on hydra or notebookcloud? |
@aculich was it you that showed me another tool to deploy IPython notebook ? Can't remember the name. |
Of course 5 min later, I find it : https://github.com/UnataInc/ipydra. I also drafted that some time ago. |
@ViralBShah Interesting. Let me try out this week. |
@yarapavan, any progress? |
@stevengj Planned for weekend. will have an update by Monday |
Folks, I've tried 3 different approaches this weekend.
Here is a brief summary:
|
Thanks for the summary of everything you've investigated! I need to loop all of you into a much wider discussion that we've been On Sun, Aug 11, 2013 at 9:12 AM, Pavan [email protected] wrote:
|
I'd love to have something working for classes in the fall, ~100 students. What would be our best bet in the near term? |
I believe @alanedelman will also want something this fall for his classes. We really need to make this work. Is JiffyLab likely to be ready in the next 2-3 weeks? @yarapavan I think there are other issues open where micro instances are trouble for julia. Best to use a small or medium instance. If you need API keys, I have some for julia, and I can send those to you. Also, rather than compiling, why not use @staticfloat 's deb packages? In your opinion of the options 1-3, which one is most likely that is likely to work in the near term? |
Also pinging @amitmurthy with whom I had discussed these ideas at one point. |
@ViralBShah Thanks. Learnt the hard way, t1.micro doesn't work for Julia! The problem seems to be that the CPU availability varies dramatically and unpredictably (Ref: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts_micro_instances.html). Tried using @staticfloat 's packages but had issues occasionally in other instance types too. Perhaps, these issues are specific to VMs? @stevengj, @ViralBShah IMO, NotebookCloud is easier to deploy if the backend environment is EC2 (uses python boto library) although Docker-based approach would be the right way to do in near future. Cannot say much about StarCluster (http://star.mit.edu/cluster/index.html) with out evaluating. |
The relevant issue was: JuliaLang/julia#3263 I believe @JeffBezanson (and perhaps even @stevengj) knows the guys who are doing StarCluster at MIT, and it may be worth investigating that. |
I don't know the StarCluster folks. |
Did any one try this -> JQuery Terminal connecting to a 'real' shell running in a EC2/server host to parse/work over http/websockets, or have customized parsing of user commands on the client side. |
JQuery terminal seems really cool. However, IJulia offers graphical capabilities and among others, it is also good for teaching. |
Does anyone have a working solution here? I've been trying to get ipydra to work and am way over my head. After adjusting some environment variables through trial and error and copying a profile-julia to the right place, I can get an IJulia notebook to open, but can't do any work. The kernel dies and the apache log has: ERROR: key not found: HOME I guess I'm not quite sure how to set the HOME variable for the www-data user so that julia recognizes it (I'm using Ubuntu + apache2 + wsgi + ipydra) |
Try editing /etc/apache2/envvars. You can put HOME is typically set from /etc/passwd, (the second to last field, each On Tue, Aug 27, 2013 at 4:00 PM, john verzani [email protected]:
|
Oh, wait, you're using uwsgi. Do you have a separate uwsgi master process On Tue, Aug 27, 2013 at 4:04 PM, Elliot Saba [email protected] wrote:
|
That HOME trick worked, though now it is dying for some other reason that On Tue, Aug 27, 2013 at 4:06 PM, Elliot Saba [email protected]:
John Verzani |
Does anyone have a working solution here? Despite the help above, I still couldn't get ipydra + apache to work to show IJulia notebooks. Is it just me? I was hoping to have something in place for about 25 students by the end of next week. |
@yarapavan Were you able to get the jquery terminal to work? It would be great if we can get something to work for use in classes. |
I'm working on something. Stay tuned. |
Total Newby question: |
You are running Python, not Julia. See the troubleshooting section of my Tutorial notes. In any case, this issue is not the place to ask questions about installation. |
Seems to be closed by JuliaBox. |
This is perhaps a bit of an umbrella issue. I would like to have julia-ipython be ready for the classes this Fall. With stuff such notebookcloud, hosting such a solution for general use on tryjulia.org through EC2 seems like a possibility. As discussed on the mailing list, the earlier web-repl used to get about 50 trials a day and a few hundred a day whenever there was a mention on hackernews etc.
It would be nice to have a list of all the things that have to be done, so that they can be tracked for such a solution to be taken live in the next few months.
So far, I thought JuliaLang/julia#2775 was a bottleneck, but that has been resolved.
The text was updated successfully, but these errors were encountered: