-
Notifications
You must be signed in to change notification settings - Fork 52
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
ipython notebook using oct2py.ipython extension hangs #55
Comments
Thanks for the report, I'll take a look. |
Okay, I can replicate the behavior. I should have a fix and a new release today. |
That's great to hear! Thank you very much for the effort. will it also be
|
That is the plan. |
Great
|
The problem is Octave 3.8 is being a bugger and not letting me override the |
I tracked it down to not using the |
Released, thanks again. I added you to |
Thank you very much. I suppose I am the first one testing the new version ;) The following are The first obvious change is that if I do pip install oct2py, pip does not I then tried my octave notebook and indeed it does not hang any longer! I %%octave plot(1:10, sin(1:10)) And right, now comes the but... hold all title("prior distributions"); ylabel("probability"); xlabel("phi") the above outputs no figure with all different colored plots on it, I uninstalled the new scipy version (using now the ubuntu python-scipy) Hoping that you can regard these new comments rather as help than bad news best, On Sep 14, 2014 1:49 PM, "Steven Silvester" notifications@github.com
|
I use Anaconda for testing, which only has scipy >= 0.12. I changed it to not install the libraries during install, while still signalling that only scipy >= 0.12 is officially supported. I tried your code on Windows, and it works. I'll try it on Ubuntu 14.04. I'm not sure if I can get rid of the return statement, that is part of the hassle of using |
Hmm, here's what I get:
|
Ah, nevermind. I had removed your inline comment. That is what breaks it. |
Okay, comments are stripped now prior to sending to Octave, and the above code works now. I will release this afternoon. |
2.3 is shipped! Thanks again for the bug reports. |
Thank you for all the work. I now tested the new version and everything now in the end, I want to make a wish for a new feature for some future So thank you once again and have a good start into the week. On 14 September 2014 20:47, Steven Silvester notifications@github.com
|
I took a stab at it, but have not yet had a chance to test it in the notebook. If you do not specify the size now, it will not arbitrarily assign it one when saving. |
gorgeous do I get it if I clone github and run "python setup.py install"? On 15 September 2014 05:16, Steven Silvester notifications@github.com
|
Yep, I'm going to wait a little bit before releasing again. |
I installed the new version with the following impressive behaviour: running for example this code: %%octave -f svg hold all title("likelihood distributions"); ylabel("probability"); xlabel("k") will first draw a plot with a correctly aligned legend flying above On 15 September 2014 12:39, Steven Silvester notifications@github.com
|
The figure above was from a notebook output on Windows. I'll try on Ubuntu tonight. |
1 similar comment
The figure above was from a notebook output on Windows. I'll try on Ubuntu tonight. |
I just recognized, that the legend I get is left-right reversed to the one the same holds by the way for the first plot with correct legend "flying On 15 September 2014 13:46, Stephan Sahm Stephan.Sahm@gmx.de wrote:
|
Yes, it looks like they are swapped between Operating Systems, just one of those things I guess... |
Are we good to close this Issue? |
now that you ask, I indeed went back to oct2py version1.6 because the v2.3 just outputs seemingly arbitrary commands, even if they end by ";" On 21 September 2014 03:52, Steven Silvester notifications@github.com
|
Thanks again for the candid feedback. I removed the arbitrary output, would you mind testing again? |
I just tried it. I cloned the current github master version. just executing %%octave imshow(rand(10,10), interpolation="none"); will first open a new window (indended?), close it again and then print an On 21 September 2014 13:05, Steven Silvester notifications@github.com
|
Hmm, I'm not seeing that on Windows, I'll try Ubuntu 14.04. |
I fixed the window opening issue. The huge size is a direct result of not enforcing a size up front anymore (which allowed us to get a nice-looking SVG earlier). If you specify the size, it should look good now. |
I pulled today
further, it is just the same as long ago, the svg-alignment in linux still %%octave -f svg hold all title("likelihood distributions"); ylabel("probability"); xlabel("k") [image: Inline images 2] On 21 September 2014 21:34, Steven Silvester notifications@github.com
|
Fixed in 3.0. |
this bug was already reported in some earlier version, see http://stackoverflow.com/questions/24999313/octave-hangs-in-ipython
it appeared now again to me with the new oct2py version 2.1
When I use ipython 2.2, octave 3.8, oct2py 2.1 on my Ubuntu 14.04 (everything well linked) simple tests like
hang in ipython notebook. The kernel is busy and nothing happens
I uninstall oct2py and installed version oct2py version 1.6 like it was said to work in the above stackoverflow-link, and indeed everything works fine now (of course still not in oct2py 2.1).
The text was updated successfully, but these errors were encountered: