Help with Pycharm

Benedict

Well-Known Forumite
I have recently decided to re learn code,[74 yrs old] the last time i did any programming was with Dbase iV which ran on DOS pre Windows. I am learning Python with Pycharm text editor, I have coded three small projects but now suddenly i cannot get the pycharm text command prompt, it only shows python or windows prompts. I have deleted and re downloaded but I seem some how to have changed the configuration or something. I would be enormously grateful if someone could help me get it back to normal. or could recommend someone,., Cheers.


(Moved to C&G forum.)
 
Last edited by a moderator:

Cue

Well-Known Forumite
Bit of an obscure one for here perhaps...




(Moved to C&G forum.)
 
Last edited by a moderator:

RichardB

A few posts under my belt
I've used it a little bit - when you say "pycharm text command prompt" do you mean going into the terminal window and typing "python"

Code:
20:07 $ python
Python 3.7.4 (default, Jul  9 2019, 18:13:23)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print("hello")
hello
>>>
 

hop

Well-Known Forumite
If you are starting from scratch and just learning I would probably just use Jupyter notebooks, in particular I would recommend you download the anaconda distribution. This includes Jupyter a python core as well as scikit, numpy, matplotlib etc...

Jupyter notebooks run inside a browser and are basically a REPL (read, eval, print, loop). Note it isn’t limited to python and you can install other kernels although if you want to write scala I would recommend apache zeppelin (if your doing big data then start with python to get your algorithm and then port to scala for scale)

The reason I recommend Jupyter is it allows you to create a block of code, execute and store it into a variable. Then in a another block you can reference the variable etc... so you can perform iterative development eg query a database and store the values in an array.
When you are ready to perform the next task you just add another cell. You don’t have reconnect to the database and perform another request etc... Although you probably know the advantages of a repl if you have ever used a language like Perl or ruby.

You can use them to quickly learn a new library or to perform introspection on existing code, throw in matplotlib and you have a great exploratory environment where you can chart data and quickly discover the shape, outliers, trends etc..

Jupyter integrates well with pandas for data exploration and charting libraries for data science type workflows.
When you create a large sheet you can easily pull that code out into an IDE and refactor it into classes and other such abstractions, if you so desire.

I’m not sure of what you are trying to achieve but you can perform most tasks in Jupyter.

In addition you can run a jupyter server on Linux box and access it via a windows based browser or even mobile phone. There is a lot be said for using the ! Command allows which allows you perform shell commands on the box from a single place eg on mobile.

Let me know what your trying to achieve. Do you want to interact with twitter ? Use Artifical intelligence, create a website etc.. I have a few twitter bots you can have a look at as well as extension to Jinja2 for web stuff.
 
Last edited:
Top