Plotting Inline with IPython Console in PyDev - pydev

Just installed pyDev and eclipse. I see that the console is an IPython console, but when Im trying to plot, I need to use the show() command instead of the plots just appearing inline like a regular IPython console. I've tried to use %pylab inline but there is no such magic.
The console loads IPython 1.1.0. What do I need to do to get inline figures?

Actually, that's correct, the PyDev console is not able to show images such as you'd have on IPython notebook (which is an HTML viewer in the end), so, you need to show the plot widget to see the results (note that the plot should be interactive and shouldn't halt the console in the latest version).
It should be possible to create a special view in PyDev where those results could be seen in an HTML viewer, but there are currently no plans to do so.

Related

Vscode .net interactive notebooks hide code when exporting to HTML

How do I hide the code cell when exporting .net interactive notebooks in visual studio code?
For instance,
I'd like to export the output, which is the latex display part of the example above,
while excluding the actual code cell from being exported.
I found this question for Jupyter notebook but I can't seem to make it work for vscode.
My best option, for now, is to export the whole file to HTML and then manually exclude the elements that are not needed.

VSCode displays source code again in interactive window

A question from a newbie here: when I run some python code in VSCode, there is always a display of source code in the interactive window. Thus I have to scroll all the way down before I can see the output. That makes the debug quite troublesome.
Please see the screenshot above. The code was displayed in the interactive window despite the editor just at left side over there. Any way to have VSCode, or maybe Jupyter extension, go directly to the output? (in my case starting from the 'Training Dataset shape......')

How to show output in a separate terminal on VScode similar to Atom Editor for C/C++

So I prefer VScode due to the added features and speed,but I have one problem.I prefer my output in a separate terminal like cmd.In atom the gpp compiler package does that for me.But in VScode,output is displayed in a in-built terminal below your code.I usually dont prefer that as it becomes difficult for me to see the output properly since I have a small screen.
So how can I do that in VSCode?

spyder Ipython console buffer

I'm using Spyder 3.5 and trying to change the number of IPython Console buffer line. The default is 500 lines. But no matter what number I change to, the limit is still 500, and I cannot scroll back beyond 500 lines. I also open a new console after changing the preference but it still doesn't work. Any idea why?
Change your settings in the IPython console rubric (Tools->Preferences->IPython console). Also make sure to reload spyder or open a new Ipython console for the changes to take effect.

When I run guide in matlab it opens a blank all gray window. Whats going on?

When I run guide in Matlab, the window that opens is completely grayed out with a title "GUIDE quick start". I am running R2012b in Ubuntu 12.04.2 LTS. Has anyone else run into this problem?
UPDATE 1
So I just discovered that if I press enter on that first blank grey window then it opens the Layout Editor window and everything seems to be fine. So I am guessing that on that first screen there is just an OK button (which I cannot see) so when I press enter it is like clicking on the OK button.
UPDATE 2
I built a quick GUI and there are issues. I can create axes and buttons and sliders on the layout tool. However, when I run the GUI tool it only displays the axes, the buttons, sliders are not there.
I believe some things in MATLAB are not yet compatible with Java 7, so stick with Java 6 for the moment.
In any case, you can have both versions installed at the same time, just instruct MATLAB to use the correct version by setting the $MATLAB_JAVA environment variable.
You can then verify which version is being used by issuing the command:
>> version -java
I had a similar problem in Ubuntu, got solved by skipping Unity and starting the session with "classic gnome" instead.