SOLVED Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-15 Thread Irv Kalb
I have come up with a simple way to do what I want to do - to open a PyCharm 
project from the Finder.

I have a reference to PyCharm in my dock.  When I want to open a PyCharm 
project, I drag the project folder and drop it onto the PyCharm icon in the 
doc.  

As long as the folder contains a previously created PyCharm project, that 
project opens in PyCharm!  No scripting needed.

Irv


> On Feb 1, 2018, at 4:54 PM, Irv Kalb  wrote:
> 
> I teach Python programming at different colleges.  In my courses I use IDLE 
> because of the simplicity of use for new programming students.
> 
> However, when I'm doing any significant development, I use PyCharm (I'm a big 
> fan of using a debugger, and I cannot understand or use the debugger in 
> IDLE.)  I can't seem to find the appropriate place to ask this question in 
> the PyCharm support pages, so I hope that there is a PyCharm user here who 
> can answer my question.
> 
> I have built a number of different projects in PyCharm where each project 
> consists of a number of Python files (main and class files).  This is all 
> working fine.  And I can certainly re-open projects from inside PyCharm.  
> However, what I would like to do, is to open a project from the Mac Finder.  
> That is, I have a project in a folder, and I've got the folder open, but I 
> don't have PyCharm running.  I want to double click on something in the 
> folder and have it bring up my project in a PyCharm window.  But I cannot 
> figure out how to do this - or even if it is possible.  
> 
> I know that there is a hidden folder called the ".idea" folder, and I know 
> how to make it show up in the Finder (command + shift + period).  But that is 
> a folder, and opening the folder shows three xml files and an "imi" file - 
> all of which are just text files.
> 
> So, the question is: How can I open a PyCharm project from the Mac Finder?
> 
> Thanks,
> 
> Irv 



Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-07 Thread Martin Kühne
As a heavy command line user, pycharm opens source files in an
existing editor window when I type `pycharm source.py`.

cheers!
mar77i


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-07 Thread Thomas Kluyver
In Linux, I can right click on a folder, go to 'open with' and select
Pycharm.

Doing the same and selecting the Jetbrains Toolbox app doesn't work for me
- I get a notification popup 'Failed to find application for URL...'.

On 6 February 2018 at 22:44, Greg Ewing  wrote:

> Alex Nordlund wrote:
>
>> No, that's the toolbox, the toolbox app is free.
>> It's also confusingly named :-)
>>
>
> But does it do anything on its own? According to the web
> page about it, it's just something for managing their
> other tools, which are not free.
>
> If I'm wrong about that, and it actually has functionality
> of its own, then it's not just confusingly named, but
> very badly advertised.
>
> --
> Greg
>


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-06 Thread Greg Ewing

Alex Nordlund wrote:

No, that's the toolbox, the toolbox app is free.
It's also confusingly named :-)


But does it do anything on its own? According to the web
page about it, it's just something for managing their
other tools, which are not free.

If I'm wrong about that, and it actually has functionality
of its own, then it's not just confusingly named, but
very badly advertised.

--
Greg


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-06 Thread Alex Nordlund

> On 4 Feb 2018, at 01:54, Greg Ewing  wrote:
> 
> Alex Nordlund wrote:
>> The toolbox app from jetbrains already does that but better :-)
> 
> Also a LOT more expensively, from the looks of their web site.

No, that's the toolbox, the toolbox app is free.
It's also confusingly named :-)


Best regards 
Alex


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-06 Thread Guillaume Paniagua
Hi Irv,

It's probably just one line script to be fair anyone that can use pycharm
could do it.
https://www.hastac.org/blogs/joe-cutajar/2015/04/21/how-make-simple-bash-script-mac

the command you want to run in the script is "pycharm.sh $PWD"
and then make that script executable so when you double click on it it
execute the command and start the project in the current directory.

Guillaume

2018-02-06 4:55 GMT+00:00 Irv Kalb :

> HI,
>
> Thanks to everyone for the proposed answers to my question.
>
> I am not a shell scripted and would not know where to start to write such
> a script.  I was just hoping that it was "built in", but that I was just
> missing something.  But it looks like the feature that I really want does
> not exist.  That's unfortunate.
>
> Thanks,
>
> Irv
>
> PS:  If someone else winds up building such a script where you can just
> right click on a folder and have that folder open as a project in PyCharm,
> I would be very interested.
>
> On Feb 2, 2018, at 10:23 AM, Leif Theden  wrote:
>
> I've never seen pycharm open a project from the Finder, or equivalent in
> Windows or Linux.  However, if you pass a full path to the project folder
> to the pycharm.sh (linux, i think also mac osx) it will open the project.
> I'm a daily user of pycharm, so it is almost never closed
>
> Using that information, you could maybe create a context menu helper (i'm
> not familar enough with os x to advise how to do that) that launches
> pycharm with the correct path appended to the pycharm launcher.
>
> Hope that helps.
>
> On Thu, Feb 1, 2018 at 6:54 PM, Irv Kalb  wrote:
>
>> I teach Python programming at different colleges.  In my courses I use
>> IDLE because of the simplicity of use for new programming students.
>>
>> However, when I'm doing any significant development, I use PyCharm (I'm a
>> big fan of using a debugger, and I cannot understand or use the debugger in
>> IDLE.)  I can't seem to find the appropriate place to ask this question in
>> the PyCharm support pages, so I hope that there is a PyCharm user here who
>> can answer my question.
>>
>> I have built a number of different projects in PyCharm where each project
>> consists of a number of Python files (main and class files).  This is all
>> working fine.  And I can certainly re-open projects from inside PyCharm.
>> However, what I would like to do, is to open a project from the Mac
>> Finder.  That is, I have a project in a folder, and I've got the folder
>> open, but I don't have PyCharm running.  I want to double click on
>> something in the folder and have it bring up my project in a PyCharm
>> window.  But I cannot figure out how to do this - or even if it is possible.
>>
>> I know that there is a hidden folder called the ".idea" folder, and I
>> know how to make it show up in the Finder (command + shift + period).  But
>> that is a folder, and opening the folder shows three xml files and an "imi"
>> file - all of which are just text files.
>>
>> So, the question is: How can I open a PyCharm project from the Mac Finder?
>>
>> Thanks,
>>
>> Irv
>
>
>
>


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-05 Thread Irv Kalb
HI,

Thanks to everyone for the proposed answers to my question.

I am not a shell scripted and would not know where to start to write such a 
script.  I was just hoping that it was "built in", but that I was just missing 
something.  But it looks like the feature that I really want does not exist.  
That's unfortunate.

Thanks,

Irv

PS:  If someone else winds up building such a script where you can just right 
click on a folder and have that folder open as a project in PyCharm, I would be 
very interested.  

> On Feb 2, 2018, at 10:23 AM, Leif Theden  wrote:
> 
> I've never seen pycharm open a project from the Finder, or equivalent in 
> Windows or Linux.  However, if you pass a full path to the project folder to 
> the pycharm.sh (linux, i think also mac osx) it will open the project.  I'm a 
> daily user of pycharm, so it is almost never closed
> 
> Using that information, you could maybe create a context menu helper (i'm not 
> familar enough with os x to advise how to do that) that launches pycharm with 
> the correct path appended to the pycharm launcher.
> 
> Hope that helps.
> 
> On Thu, Feb 1, 2018 at 6:54 PM, Irv Kalb  > wrote:
> I teach Python programming at different colleges.  In my courses I use IDLE 
> because of the simplicity of use for new programming students.
> 
> However, when I'm doing any significant development, I use PyCharm (I'm a big 
> fan of using a debugger, and I cannot understand or use the debugger in 
> IDLE.)  I can't seem to find the appropriate place to ask this question in 
> the PyCharm support pages, so I hope that there is a PyCharm user here who 
> can answer my question.
> 
> I have built a number of different projects in PyCharm where each project 
> consists of a number of Python files (main and class files).  This is all 
> working fine.  And I can certainly re-open projects from inside PyCharm.  
> However, what I would like to do, is to open a project from the Mac Finder.  
> That is, I have a project in a folder, and I've got the folder open, but I 
> don't have PyCharm running.  I want to double click on something in the 
> folder and have it bring up my project in a PyCharm window.  But I cannot 
> figure out how to do this - or even if it is possible.
> 
> I know that there is a hidden folder called the ".idea" folder, and I know 
> how to make it show up in the Finder (command + shift + period).  But that is 
> a folder, and opening the folder shows three xml files and an "imi" file - 
> all of which are just text files.
> 
> So, the question is: How can I open a PyCharm project from the Mac Finder?
> 
> Thanks,
> 
> Irv
> 



Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-03 Thread DiliupG
Is this a pycharm promotional campagin?


On 4 February 2018 at 06:24, Greg Ewing  wrote:

> Alex Nordlund wrote:
>
>> The toolbox app from jetbrains already does that but better :-)
>>
>
> Also a LOT more expensively, from the looks of their web site.
>
> --
> Greg
>



-- 
Kalasuri Diliup Gabadamudalige

https://dahamgatalu.wordpress.com/
http://soft.diliupg.com/
http://www.diliupg.com

**
This e-mail is confidential. It may also be legally privileged. If you are
not the intended recipient or have received it in error, please delete it
and all copies from your system and notify the sender immediately by return
e-mail. Any unauthorized reading, reproducing, printing or further
dissemination of this e-mail or its contents is strictly prohibited and may
be unlawful. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.
**


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-03 Thread Greg Ewing

Alex Nordlund wrote:

The toolbox app from jetbrains already does that but better :-)


Also a LOT more expensively, from the looks of their web site.

--
Greg


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-03 Thread Guillaume Paniagua
forget what i said i didn't read all the answer.

2018-02-03 10:54 GMT+00:00 Guillaume Paniagua :

> I've never used pycharm but if it is possible to open project by passing
> the full folder project to pycharm.sh then you could add a plugin that
> trigger when creating a new project and create a script file in the project
> folder that would call the pycharm.sh with the current directory (project
> directory). It would probably be of interest for the community. Otherwise
> just create a script that would call pysharm.sh  call it
> open_project.sh and copy it over when you create a new project. It's not
> out of the box but seems easilly feasible and achieve the feature you are
> looking for.
>
>
> 
>  Virus-free.
> www.avast.com
> 
> <#m_9033389530456354368_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> 2018-02-02 18:23 GMT+00:00 Leif Theden :
>
>> I've never seen pycharm open a project from the Finder, or equivalent in
>> Windows or Linux.  However, if you pass a full path to the project folder
>> to the pycharm.sh (linux, i think also mac osx) it will open the project.
>> I'm a daily user of pycharm, so it is almost never closed
>>
>> Using that information, you could maybe create a context menu helper (i'm
>> not familar enough with os x to advise how to do that) that launches
>> pycharm with the correct path appended to the pycharm launcher.
>>
>> Hope that helps.
>>
>> On Thu, Feb 1, 2018 at 6:54 PM, Irv Kalb  wrote:
>>
>>> I teach Python programming at different colleges.  In my courses I use
>>> IDLE because of the simplicity of use for new programming students.
>>>
>>> However, when I'm doing any significant development, I use PyCharm (I'm
>>> a big fan of using a debugger, and I cannot understand or use the debugger
>>> in IDLE.)  I can't seem to find the appropriate place to ask this question
>>> in the PyCharm support pages, so I hope that there is a PyCharm user here
>>> who can answer my question.
>>>
>>> I have built a number of different projects in PyCharm where each
>>> project consists of a number of Python files (main and class files).  This
>>> is all working fine.  And I can certainly re-open projects from inside
>>> PyCharm.  However, what I would like to do, is to open a project from the
>>> Mac Finder.  That is, I have a project in a folder, and I've got the folder
>>> open, but I don't have PyCharm running.  I want to double click on
>>> something in the folder and have it bring up my project in a PyCharm
>>> window.  But I cannot figure out how to do this - or even if it is possible.
>>>
>>> I know that there is a hidden folder called the ".idea" folder, and I
>>> know how to make it show up in the Finder (command + shift + period).  But
>>> that is a folder, and opening the folder shows three xml files and an "imi"
>>> file - all of which are just text files.
>>>
>>> So, the question is: How can I open a PyCharm project from the Mac
>>> Finder?
>>>
>>> Thanks,
>>>
>>> Irv
>>
>>
>>
>


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-03 Thread Guillaume Paniagua
I've never used pycharm but if it is possible to open project by passing
the full folder project to pycharm.sh then you could add a plugin that
trigger when creating a new project and create a script file in the project
folder that would call the pycharm.sh with the current directory (project
directory). It would probably be of interest for the community. Otherwise
just create a script that would call pysharm.sh  call it
open_project.sh and copy it over when you create a new project. It's not
out of the box but seems easilly feasible and achieve the feature you are
looking for.


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

2018-02-02 18:23 GMT+00:00 Leif Theden :

> I've never seen pycharm open a project from the Finder, or equivalent in
> Windows or Linux.  However, if you pass a full path to the project folder
> to the pycharm.sh (linux, i think also mac osx) it will open the project.
> I'm a daily user of pycharm, so it is almost never closed
>
> Using that information, you could maybe create a context menu helper (i'm
> not familar enough with os x to advise how to do that) that launches
> pycharm with the correct path appended to the pycharm launcher.
>
> Hope that helps.
>
> On Thu, Feb 1, 2018 at 6:54 PM, Irv Kalb  wrote:
>
>> I teach Python programming at different colleges.  In my courses I use
>> IDLE because of the simplicity of use for new programming students.
>>
>> However, when I'm doing any significant development, I use PyCharm (I'm a
>> big fan of using a debugger, and I cannot understand or use the debugger in
>> IDLE.)  I can't seem to find the appropriate place to ask this question in
>> the PyCharm support pages, so I hope that there is a PyCharm user here who
>> can answer my question.
>>
>> I have built a number of different projects in PyCharm where each project
>> consists of a number of Python files (main and class files).  This is all
>> working fine.  And I can certainly re-open projects from inside PyCharm.
>> However, what I would like to do, is to open a project from the Mac
>> Finder.  That is, I have a project in a folder, and I've got the folder
>> open, but I don't have PyCharm running.  I want to double click on
>> something in the folder and have it bring up my project in a PyCharm
>> window.  But I cannot figure out how to do this - or even if it is possible.
>>
>> I know that there is a hidden folder called the ".idea" folder, and I
>> know how to make it show up in the Finder (command + shift + period).  But
>> that is a folder, and opening the folder shows three xml files and an "imi"
>> file - all of which are just text files.
>>
>> So, the question is: How can I open a PyCharm project from the Mac Finder?
>>
>> Thanks,
>>
>> Irv
>
>
>


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-02 Thread Alex Nordlund
On 3 Feb 2018, at 00:11, Greg Ewing  wrote:
> 
> Leif Theden wrote:
>> you could maybe create a context menu helper (i'm not familar enough with os 
>> x to advise how to do that) that launches pycharm with the correct path 
>> appended to the pycharm launcher.
> 
> It looks like you should be able to do this using Automator:
> 
> https://davidwalsh.name/mac-context-menu
> 
> -- 
> Greg

The toolbox app from jetbrains already does that but better :-)

Best regards 
Alex

Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-02 Thread Greg Ewing

Leif Theden wrote:
you could maybe create a context menu helper 
(i'm not familar enough with os x to advise how to do that) that 
launches pycharm with the correct path appended to the pycharm launcher.


It looks like you should be able to do this using Automator:

https://davidwalsh.name/mac-context-menu

--
Greg


Re: [pygame] Opening Python project in PyCharm - Mac

2018-02-02 Thread Leif Theden
I've never seen pycharm open a project from the Finder, or equivalent in
Windows or Linux.  However, if you pass a full path to the project folder
to the pycharm.sh (linux, i think also mac osx) it will open the project.
I'm a daily user of pycharm, so it is almost never closed

Using that information, you could maybe create a context menu helper (i'm
not familar enough with os x to advise how to do that) that launches
pycharm with the correct path appended to the pycharm launcher.

Hope that helps.

On Thu, Feb 1, 2018 at 6:54 PM, Irv Kalb  wrote:

> I teach Python programming at different colleges.  In my courses I use
> IDLE because of the simplicity of use for new programming students.
>
> However, when I'm doing any significant development, I use PyCharm (I'm a
> big fan of using a debugger, and I cannot understand or use the debugger in
> IDLE.)  I can't seem to find the appropriate place to ask this question in
> the PyCharm support pages, so I hope that there is a PyCharm user here who
> can answer my question.
>
> I have built a number of different projects in PyCharm where each project
> consists of a number of Python files (main and class files).  This is all
> working fine.  And I can certainly re-open projects from inside PyCharm.
> However, what I would like to do, is to open a project from the Mac
> Finder.  That is, I have a project in a folder, and I've got the folder
> open, but I don't have PyCharm running.  I want to double click on
> something in the folder and have it bring up my project in a PyCharm
> window.  But I cannot figure out how to do this - or even if it is possible.
>
> I know that there is a hidden folder called the ".idea" folder, and I know
> how to make it show up in the Finder (command + shift + period).  But that
> is a folder, and opening the folder shows three xml files and an "imi" file
> - all of which are just text files.
>
> So, the question is: How can I open a PyCharm project from the Mac Finder?
>
> Thanks,
>
> Irv