#🔒 Intellij Setup errors

73 messages · Page 1 of 1 (latest)

regal laurel
#

Hello everyone i work in java but i need to work in python for this next project. I got it working as in output but it marks my text as incorrect. can anyone help?

hot questBOT
#

@regal laurel

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

regal laurel
#

it says Unresolved reference 'print'

calm rover
regal laurel
#

Is there any benefit per se? I already am familiar with IntelliJ due to my developing

calm rover
#

PyCharm is also from JetBrains, but it's their IDE dedicated for Python, whereas IntelliJ is their IDE dedicated for Java

regal laurel
#

hmmm

#

fair

#

let me get it

calm rover
bright fern
meager plinth
#

until recently, intellij ultimate used an outdated python plugin

#

to provide python support

bright fern
calm rover
regal laurel
#

oh well i suppose this makes thing easier

meager plinth
#

yeah this change happened some two months ago I think?

bright fern
meager plinth
#

or 3

bright fern
#

last time I used PyCharm was a while ago so forgive me.

#

But the good news is that you can still download it and use it

calm rover
# regal laurel

The first half of the answer is basically saying:

Python devs were not smart enough to realize there's a paid version

bright fern
#

ouch.

regal laurel
#

I’m downloading it!

#

I tried to run python using like cmd lines and such but

#

It just didn’t work for me at all so

#

I’m hoping this will work

#

Also I need GitHub

#

For my project

calm rover
regal laurel
#

perfect!

#

im trying to do math stuff with this for astronomy

#

plots and outputs

#

it can handle all of that right?

#

physics sim

calm rover
#

sure

#

matplotlib will probably be the easiest plotting library to use

meager plinth
#

File -> Project from Version Control... lets you import your github project

bright fern
#

NumPy also for maths

calm rover
#

only if you need the performance though. Keep it in plain Python first

bright fern
#

true.

regal laurel
#

but i just need results really

#

its more of a one time calculation

calm rover
regal laurel
#

thank you jetbrains

bright fern
#

That C code does account for somethin' after all

regal laurel
#

i dont have any py experience actually

calm rover
visual storm
#

Java is a pretty solid language

bright fern
#

Maybe they needed Python for other things too?

regal laurel
calm rover
bright fern
visual storm
#

python has some very powerful libraries for math and graphical visualization.

bright fern
#

I can give code examples if you wish to

calm rover
#

I need libraries for some astrophysical calculations for orbits
Pretty sure there are also equivalents in Java (maybe even an API for the same thing as in Python)

Do you have any specific libraries in mind?

regal laurel
#

iD love that thank you

visual storm
#

python makes it easy to think about the question in problem and not about the code, for any serious or complex things though you should use java since you are more experienced. thats my take on it.

bright fern
#

Alright so the jist is

## normal py
numbers = [1, 2, 3, 4, 5]
squared = [x**2 for x in numbers]

## numpy (underhood C)
import numpy as np
numbers = np.array([1, 2, 3, 4, 5])
squared = numbers ** 2
visual storm
#

the both have their fortes :)

bright fern
#

now for simple maths NumPy isn't really needed but for your astronomy math thingy with heavier and lengthier calculations it'll help out

visual storm
#

also check out the decimal library, will help out for smaller numbers

calm rover
#

decimal in Python == BigDecimal in Java

hot questBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.