1

Are there any performance difference between a code run on a IPython (Jupyter for example) and the same code run on "standard" Python (PyCharm for example)?

I'm working on a neural network for a project where I need some kind of presentation and Jupyter + IPython does the job, but i was wondering if there are any kind of differences in the performances between Python and IPython, since i need to train my network and I obviously prefer the faster method.

6
  • Have you tried measuring the performance yourself? Commented May 4, 2020 at 13:09
  • Not yet, since I should go through the whole training of my network 2 times in this case. I was wondering if there's some "prior" knowledge that allows IPython or Python to be faster/slower than the other one. Such as C language is usually faster than Python (because it's compiled ecc...) Commented May 4, 2020 at 13:14
  • 2
    if you're using 3rd-party libraries like TensorFlow, the actual training code will be running natively (not in the Python interpreter), so Python's speed won't matter Commented May 4, 2020 at 13:43
  • Yes, i'm using Keras + Tensorflow Commented May 4, 2020 at 13:46
  • 1
    then all the heavy-lifting is being done in C++ or on your GPU. Python only sets things up and monitors the training process Commented May 4, 2020 at 13:48

1 Answer 1

2

According to this link

There shouldn't be a difference between both of them if you are running a fresh run of the script. Although IPython has enhanced features compared to the normal python interpreter (I would be stuck with it).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.