how to run Pycharm twice OR many times from terminal Ubuntu? [duplicate] - python

I have just installed IntelliJ 9.0.2 on a machine running 64-bit Ubuntu 10.04.
How do I get another window to put on my second screen?
I would like to have both an editor and some tool windows on both screens.

All 'windows' inside of IntelliJ other than the code editor tabs have a "Float" option which pops open an independent window which you can drag to anywhere on your screen. This will allow you to manage your IDEA windows however you like.
IntelliJ also allow you to open multiple projects at once. When opening a project with one already opened, you are prompted as to wether you would like it in your current window or a "New Instance". If you choose new instance, it will open up a completely new IntelliJ with the other project in it. This will work for you if you have many projects you work on at once.

IntelliJ 14 and onwards you can select the settings cog and tick floating mode to detach menus, or drag editor tabs off the main window to detach them
If you're running on OSX you'll need to make sure it's not treating the screens as separate spaces, otherwise they'll snap back onto the same window as the main editor when switching between windows.
To do this untick Displays have separate Spaces in the Mission Control System Preferences.

IntelliJ 10 will have draggable & dockable editor tabs. A very nice feature. It's already present in the early access versions.

Related

In PyCharm is there a way to unify the run and debug windows?

I often like to work with multiple monitors when coding in PyCharm on OSX. It's nice to have an editor window(s) on monitor A, and debug tools in monitor B, so I don't have to switch windows as much and so the debug windows have more real estate.
I'll switch back and forth between Run and Debug modes, sometimes quickly, depending on the task at hand. The main problem I find, is the tool windows for Run and Debug are separate. I have to stagger the tool windows so I can select one or the other. This requires an extra click and is an awkward arrangement on the screen.
Another option I have is to split the screen between Run and Debug tools, in which case I'm loosing real-estate.
Either way I find it's cumbersome to find the window I'm looking for. Sometimes these are hiding on a separate hidden desktop so I have to take the time to find the desktop, open the desktop, then switch to the correct tool window.
Is there any option in PyCharm to merge these two windows, either as separate tabs on the same window, or some option to have them share the same console output window?
Is there any option in PyCharm to merge these two windows
No. In the PyCharm nomenclature Run and Debug are "tool windows", not just windows. You can open each "tool window" in its own window but you can't merge 2 "tool windows".
Another thing are the "toolbars" of which you have 3, left, right and bottom. You can pin "tool windows" to the toolbars and they show like tabs but they are still separate and not merged, just tabs.
The main problem I find, is the tool windows for Run and Debug are separate.
That's a PyCharm rule an there's no way around it. Each of those "tool windows" works as a separate application/plugin. They aren't meant to be merged. The windows don't have that functionality.
The easy way to do this is using the keyboard shortcuts, Alt+4 or Alt+5 takes you to Run or Debug, Shift+F10 launches the Run config and switches focus to the Run tool window, same with Shift+F9 for the Debug tool window.
If you right-click on the toolbar and choose View Mode > Window for both tool windows you can put them on the 2nd screen over each other. That gives you maximum real-estate with 1-keyboard stroke switch and running, but not tabbed clicking.
That's as good as it gets, you can't have both tool windows tabbed on a single window outside the toolbars.
on a separate hidden desktop so I have to take the time to find the desktop, open the desktop, then switch to the correct tool window.
Having the 1-keystroke solution working would depend if the OS allows you to configure the Desktops to gain focus and come to the forefront if any of the windows in them have activity.
If not, an alternative would be a coinciding key bind where you set the Desktop containing the Run and Debug "window toolbars" to gain focus when you press Alt+4, Alt+5, Shift+F9, Shift+F10. Or changing the PyCharm shortcuts to coincide with the OS keyboard shortcuts that focus the designated Desktop.

Is it possible to split the output console in PyCharm?

Is it possible to have multiple python consoles side to side or as independent windows in PyCharm?
Note: I am already using Windowed Mode to have the console panel as a window, but I want to have separate consoles on separate windows.
I am using PyCharm Professional 2018.1
I open a Python console via View -> Tool Windows -> Python console. Clicking on the green "plus" symbol I can open multiple consoles, but they are showed as different tabs.
What I would like it being able to see the "content" of multiple console at the same time, hence having them side to side or as independent windows I can arrange as I want.
How can I achieve this?
Unfortunately, splitting console is still a feature in request right now for Pycharm 2018.2.3 as mentioned in this question.

Python freezes when configuring IDLE

So, recently I was using the Python theme function for the IDLE program itself. I downloaded three themes and built my own one, which is selected now. The problem is, I forgot to set colours for the blinker and highlighting, which is hugely problematic. When I went to see if I could change back to the default setting, Python IDLE simply froze up when I selected 'Configure IDLE' under options. I can still scroll through the file, attempt to close the window and minimise it etc, but it has just frozen up. I can't close it or continue working with the file. I've removed Python and then reinstalled it but that hasn't worked, should I just manually delete the themes and force IDLE to use the original one, or is there a way to fix this?
I am running Python 2.7 on Windows 8.1.
Thanks
Turns out one way is manually deleting the faulty theme. This allows the Configure IDLE menu to open. Whoops.

Debug with internal command window Python Tools and Vistual Studio 2013

I just installed Python Tools with Visual Studio 2013 (Shell) and whenever I run a debug of the program, a separate window pops up for the interpreter:
I can however run the program using the internal interactive console:
However this doesn't seem to stop at any breakpoints that I set in the code. Is there a way to force the system to use the internal console for debugging instead of using a separate windowed console?
You can hide the shell by changing Environment options in Python Tools with Visual Studio, change the default path to point pythonw.exe.
Here is the steps:
TOOLS -> Python tools -> Python Environment
Open Environment options, Add Environment, Enter whatever you want to name it.
Copy all the options in the default Environment except change "Path:" to path of pythonw.exe. Hit OK and made the new Environment as the default environment.
There's no way to hide the console window entirely, but all output from it should be tee'd to Output window, so you can use that if you don't like the console.
There's also a Debug Interactive window (Debug -> Windows -> Python Debug Interactive) that you may find of help, if what you want specifically is being able to stop at breakpoints and then work with variables etc in a REPL environment. Once enabled, this window will provide you a live REPL of the debugged process, and when you're stopped anywhere, you can interact with it. Like Output window, it does not suppress the regular console window, but it mirrors its output.
Although this seems old, solution pasted elsewhere can help someone searching an answer.
I cannot comment since I don't have rep.
Here is the solution: https://stackoverflow.com/a/22486749/4809808
As far as the console window it will generally open unless you mark your app as a Windows application in project properties (this will launch pythonw.exe which doesn't include a console window).
If you right click on your project and choose Properties in the "General" tab there's a "Windows Application" checkbox below Working Directory.

Changing window size of Geany's execute (F5) option

I'm using Geany 0.18 for python developing and am in general really satisfied, but there is one little thing, that's still bugging me:
I usually use the F5 (Build-->Execute) option to test my scripts, the appearing window is rather small, and if my script prints lines which are too long they are hard to read. I would like to change the default-window size of the little one popping up if I hit F5, but I haven't found anything to accomplish this.
Is this possible at all ?
Thanks
Mischa
To solve that problem I added additional parameters to terminal command that geany runs.
In Geany go to preferences (Edit->Preferences).
Open Tools tab.
There is an input field named Terminal where you can specify terminal program to use.
I changed that to "gnome-terminal --maximize" to open terminal maximized.
For Gnome-Terminal you can find more window options running "gnome-terminal --help-window-options" from terminal.
In the window that pops up (if using windows) click on the white bar at the top (right click) this will open a menu, choose defaults then change font/font size etc.

Categories