repositioning panes in Spyder panes - python

New to Python and Spyder. How do I reposition the panes in Spyder. I had them set with the editor in the upper left, the object inspector in the upper right, and the ipython console in the lower left. Somehow I messed it up, and can't figure out how to reposition them. Have crawled all over the web, but no joy.
Thanks
jpl

In the Spyder 4.0+ version, go to View menu, unselect "lock panes and toolbars" then you can drag the top area of each pane and move them freely.

Other answers are correct that you can recover past arrangements of the panes via the View/Window layouts menu, but if you want to actually create a new layout, that's another matter.
The fact is, it's pretty easy, once you know how. To move Help to the same pane that File explorer is in (in the picture below), the steps are:
Find Help in the same pane that Variable explorer is in, and click its tab to bring it to the front
Click the multiple windows icon in the upper right corner of the Help pane (see where the red arrows point?)
Help will detach from the rest of the window and you can now click & drag it to whatever pane - whether already existing or new - that you want to put it in

For Spyder IDE just go to View -> Reset window layout

just go to view->click on spyder default layout
that should work

The best way is to select what panes you want to view under the "View" tab.
To stack panes simply drag and drop over each other. More details on http://www.southampton.ac.uk/~fangohr/blog/spyder-the-python-ide.html
Section 6 Multiple windows.

On windows click on the 3 bars at the upright corner of the pane, undock and move the pane where you want. On Linux unselect View > lock panes and toolbars and move your pane.

Related

Qt Creator - How to get rid of "line too long" warning in python scripts

As the title suggests I wonder if it is possible to set the length of a line in python scripts when someone uses Qt Creator as an IDE, in order to get rid of this annoying warning:
I found at least how to hide these annotations (for Mac Os users): First method is to go with the mouse on the top-left corner of the screen and to sequentially click Qt Creator->Preferences. Immediately the Preferences Dialog Window will appear inside the Qt Creator working window. There, have to go to Text Editor in the left panel and in the right panel associated with Text Editor, in the horizontal tabs have to click on Display tab. Scroll down and uncheck Line annotations. The second and the third methods imply to place the mouse over one particular annotation (second method) or over one of the small yellow triangles which are shown in the left column of the "lines numbers column" (third method) and in both cases after one or two seconds will appear a floater and inside that floater with blue letters will be the "Annotation settings" message. Clicking on that message will open the same Preferences Window like in first case. And there will be repeated the procedure described in the first case.

Remove question mark and Enter/Exit Button in RISE (Jupyter Notebook)

When using RISE in Jupyter Notebook, is there any possible way to not display the question mark (lower left corner) and the Exit/ Enter Button (upper left corner)?
Found a solution. Go to main.js located in /jupyter/nbextensions/rise, there delete both
buttonExit();
buttonHelp();
Pressing the comma (,) will actually hide/reveal the x and ? buttons, as well as the chalkboard buttons. To hide the controls, you need to uncheck the box in the settings with 'controls':
You can use shift + C or the Nbextensions menu from the main jupyter page to get to the RISE settings.
You can also set the slidenumber as blank to not show any slide numbers, and uncheck the option for the progress bar. Then with controls, menu items, progress bar, and slide numbers gone, you have a clean presentation.
Related github issue: https://github.com/damianavila/RISE/issues/244
May be you are asking How to get
from
you just need to press "," in command mode

How to have a separate output window in PyCharm?

If you look at the picture inserted You'll see the output window is at the bottom in PyCharm so is there a way to get the PyCharm output window at the top.
You can do both -- separate window to pinned to top:
To make a separate window, choose floating mode from the tools menu (little gear symbol upper right of the output windows). There you can move it anywhere you like.
But to just move it to the top. simply open the same tools menu and choose "Move To..." and it'll go where you want without making it a separate window. Your choice!
Click on the "Top" option, this will move it to the top of the screen.

PyCharm - always show inspections

PyCharm displays little bars on the scroll bar for things like code warnings. This feature is called "inspection".
If you move the mouse cursor over a bar, it shows a preview of the code annotated with the inspection.
I find this really fiddly, and I'd actually like full inspection notices to be displayed all the time in the normal editor, just like it appears in the small preview.
Is there any way I can achieve this?
Using the default keymap, you can use F2 to jump to the next highlighted error and then Ctrl+F1 to show the tooltip.
According to this PyCharm's documentation there seems to be an Inspection Tool Window which displays inspection results on separate tabs..
You can access the tool window through menu Code | Inspect Code.
I just tried it and it showed a tab like this:
Press Alt+6
Or, click "Problems" on the bottom-left
Or click the error icons at the top-right of the text editor.
This gives a list of problems for the file open in the currently active tab. It automatically updates when you change tabs:

Focus-follows-mouse in wxPython?

I'm developing an application that contains a number of panes. See the screenshot:
The left settings pane is a wx.ScrolledPanel that contains a number of wx.Panels.
The top events pane is a wx.grid.Grid.
The bottom data pane is a wx.Panel that contains a wx.grid.Grid.
The middle plot pane is a wx.Panel containing an enthought chaco plot.
The right detector pane is a wx.Panel.
I would like to implement focus follows mouse so that when I move my mouse over the plot I can immediately zoom in or out using my scroll wheel without first clicking on the plot to give it the focus.
Similarly when I move my mouse over the left settings , the top events or the bottom data panes I would like to be able to immediately scroll the window using the scroll wheel without first clicking on the window.
Currently I defined a function:
def focusFollowsMouse(window):
window.Bind(wx.EVT_ENTER_WINDOW, lambda event: window.SetFocus())
I would like to apply this function only on the four top-level panes: plot, settings, events and data.
However I need to call this function for each sub-panel or control in each of the top-level panes to get this to work. For example I need to apply this function individually to the Measurement Settings, Analysis Parameters, View Settings etc. panels.
Most likely the EVT_ENTER_WINDOW event is not propagated to parent windows.
Is there a way to get this to work without applying focusFollowsMouse to each and every sub-panel or control?
Thanks
This is Windows' behaviour - it works as you expect under GTK. Personally, I'd leave your app as it is, for consistency with other Windows applications, and install WizMouse

Categories