Skip to content

Commit e23705a

Browse files
committed
added best practice
1 parent 83a8d53 commit e23705a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

text/main/packages/venvAndPycharm/venvAndPycharm.tex

+15-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,21 @@
118118
A popup menu appears, in which we click on \menu{Run \inSQuotes{numpy\_user.py}}.
119119
We could just as well have pressed \keys{\ctrl+\shift+F10}.
120120
Our program is executed and the expected output appears (\cref{fig:venvPycharm8}).
121-
All is well.%
121+
All is well.
122+
123+
However, it must be understood that the support for \pglspl{virtualEnvironment} and requirements files in \pycharm\ is for \emph{software development}.
124+
If you want to actually use the software you have developed, you should \emph{always} use the command line and \pglspl{terminal}, as discussed in \cref{sec:pipAndVenv}.
125+
\pycharm\ is not a runtime environment for the deployment of productive code.
126+
It is an \acrfull{IDE} for developing programs.%
127+
%
128+
\bestPractice{noPycharmForProductive}{%
129+
\pycharm\ must \textbf{never} be used for running an application in a productive setting. %
130+
It is \emph{only} to be used as \pgls{IDE} for software development. %
131+
For actually executing programs, always use a \pglspl{virtualEnvironment} in the \pgls{terminal} as introduced in \cref{sec:pipAndVenv}.%
132+
}%
133+
%
134+
This holds also and especially for scenarios where we do use \python\ for scientific experiments.
135+
It is an even worse idea to try to run multiple concurrent instances of a program in a \pycharm\ window or to have multiple \pycharm\ instances open to run multiple applications in parallel.%
122136
%
123137
\FloatBarrier%
124138
\endhsection%

0 commit comments

Comments
 (0)