Command line for PyCharm and edutool local course?

Answered

Hello,

Using the edutool plugin in Pycharm (community edition)  and as a new user of the IDE (I'm currently testing this for potential use in the futur), I would like to know if there is some way to launch from a command line an exported ZIP-course from my disk?
I saw that files can be openned with "pycharm.sh <Path-To-The-File>" but it doesn't seems to work for zipped course (it's opening the editor and handle the zip file like a .txt or .py).

So I'm questioning myself, is this possible or should I try something else like making a github repo?

Bonus Question1: How can I print all the options available from pycharm command line?
Bonus Question2: Where should I start if I want to use some github repo for my course?

Thank's in advance!

0
3 comments

Hi T0byte,

Thank you for contacting PyCharm support.

Here is an instruction on how to open files from common line https://www.jetbrains.com/help/pycharm/opening-files-from-command-line.html

Is it necessary to run something from this zip file? Is there some .py file? (if so, then you need to extract this zip file first because PyCharm).

>How can I print all the options available from pycharm command line?

Please clarify what exactly you would like to do.

>Where should I start if I want to use some github repo for my course?

Please have a look at this article https://www.jetbrains.com/help/pycharm/manage-projects-hosted-on-github.html. I believe it can guide you.

Looking forward to your reply.

Kind regards,

Sergey

https://www.jetbrains.com

The Drive to Develop

0
Avatar
Permanently deleted user

Hi Sergey,

>Is it necessary to run something from this zip file? Is there some .py file? (if so, then you need to extract this zip file first because PyCharm).
Yes, it seems important to process the zip file, since it contains only a "course.json" in it (independently on what the course contains).
But extracting this one file from the archive and launch it with PyCharm command line doesn't allow us to open it as a course (or in "course mode").
As I said in my previous post this just open the editor and display the JSON file (same for the zip file) as it would do for any other file, but it doesn't launch it as a course which change the interface.
It seems that the JSON file is somehow processed by the plugin and can't be opened with a basic line command style (<PyCharm> [--line <number>] path).

> >How can I print all the options available from pycharm command line?
> Please clarify what exactly you would like to do.
Since I can't open this zip-file with the "normal" command line style, I'd like to know if a list of the command parameters that PyCharm takes is available. If so, perhaps i could find something (like how to open a project in command line) avoiding me the "reverse-engineering" on how the edutool plugin process the "course.json" contained in the zip-file to open it as a course project.

Hope these details will shed some light on what I'm trying to do.

Best regards,
T0byte

PS: thank you for the link on how to manage projects hosted on github. I will check this out.

0

Hi,

unfortunately, it's impossible to open a zip course from the command line. The command line utility has a pretty limited functionality (see https://www.jetbrains.com/help/pycharm/working-with-the-ide-features-from-command-line.html for more details). Please feel free to file a feature request for PyCharm Edu team: https://youtrack.jetbrains.com/issues/EDU

>Bonus Question2: Where should I start if I want to use some github repo for my course?

PyCharm Edu has no "import course from Github" functionality, you have to manually create a course in the IDE with the resources you have. Could you please describe the course format in more details? What exactly do you have in the repo?

0

Please sign in to leave a comment.