Skip to content
Snippets Groups Projects
Commit 0f2e3844 authored by Christof Kaufmann's avatar Christof Kaufmann
Browse files

Add Spyder desktop files for linux instructions

parent 9941cc52
Branches
No related tags found
No related merge requests found
...@@ -183,6 +183,7 @@ Wir haben Spyder bereits in der Conda-Umgebung \lstinline|ml| installiert. Als n ...@@ -183,6 +183,7 @@ Wir haben Spyder bereits in der Conda-Umgebung \lstinline|ml| installiert. Als n
mamba activate ml #*\color{cyan}\# \itshape sicherstellen, dass Sie in der 'ml' Umgebung sind* mamba activate ml #*\color{cyan}\# \itshape sicherstellen, dass Sie in der 'ml' Umgebung sind*
spyder & spyder &
\end{lstlisting} \end{lstlisting}
Alternativ können Sie auch die Desktop-Datei (\textattachfile{attachments/Spyder-ml.desktop}{Anhang}|\href{https://gitlab.cvh-server.de/ckaufmann/install-python-tensorflow-gym/-/raw/master/attachments/Spyder-ml.desktop?inline=false}{Web}) zum Starten per Doppelklick verwenden. Passen Sie darin noch den Pfad zum Icon an (Beispielbenutzername ist \texttt{john}) und machen Sie die Datei ausführbar. Kopieren Sie dann die Datei in Ihr Desktopverzeichnis (oft \lstinline|~/Schreibtisch/|). Wenn Sie Spyder zusätzlich zum Desktop auch im Startmenü sehen wollen, kopieren Sie die Datei noch nach \lstinline|~/.local/share/applications/|.
Spyder öffnet sich nun. Wenn Sie die Plots lieber in eigenständigen Fenster angezeigt haben wollen, sodass sie zoomen können, wählen sie unter \textit{Tools} $\rightarrow$ \textit{Preferences} $\rightarrow$ \textit{IPython console} $\rightarrow$ \textit{Graphics} $\rightarrow$ \textit{Backend} den Eintrag \textit{Automatic}. Anschließend müssen Sie evtl.\ Spyder schließen und erneut starten. Spyder öffnet sich nun. Wenn Sie die Plots lieber in eigenständigen Fenster angezeigt haben wollen, sodass sie zoomen können, wählen sie unter \textit{Tools} $\rightarrow$ \textit{Preferences} $\rightarrow$ \textit{IPython console} $\rightarrow$ \textit{Graphics} $\rightarrow$ \textit{Backend} den Eintrag \textit{Automatic}. Anschließend müssen Sie evtl.\ Spyder schließen und erneut starten.
\vspace{-1ex} \vspace{-1ex}
......
[Desktop Entry]
Exec=bash -c "source ~/.local/opt/mambaforge/etc/profile.d/conda.sh && conda activate base && spyder"
GenericName=Python IDE
Icon=/home/john/.local/opt/mambaforge/lib/python3.10/site-packages/spyder/images/spyder.svg
MimeType=text/x-python;
Name=Spyder
Type=Application
[Desktop Entry]
Exec=bash -c "source ~/.local/opt/mambaforge/etc/profile.d/conda.sh && conda activate ml && spyder"
GenericName=Python IDE
Icon=/home/john/.local/opt/mambaforge/envs/ml/lib/python3.10/site-packages/spyder/images/spyder.svg
MimeType=text/x-python;
Name=Spyder
Type=Application
[Desktop Entry]
Exec=bash -c "source ~/.local/opt/mambaforge/etc/profile.d/conda.sh && conda activate weai && spyder"
GenericName=Python IDE
Icon=/home/john/.local/opt/mambaforge/envs/weai/lib/python3.10/site-packages/spyder/images/spyder.svg
MimeType=text/x-python;
Name=Spyder
Type=Application
...@@ -136,6 +136,8 @@ When it's finished, let's start spyder ...@@ -136,6 +136,8 @@ When it's finished, let's start spyder
\begin{lstlisting}[gobble=2] \begin{lstlisting}[gobble=2]
spyder & spyder &
\end{lstlisting} \end{lstlisting}
Alternatively, you can use the desktop file (\textattachfile{attachments/Spyder-base.desktop}{attachment}|\href{https://gitlab.cvh-server.de/ckaufmann/install-python-tensorflow-gym/-/raw/master/attachments/Spyder-base.desktop?inline=false}{web}) to start it by double-clicking. Fix the path to the icon (example username is \texttt{john}) and make the file executable. Then copy it to your desktop folder (usually \lstinline|~/Desktop/|). If you want to see Spyder in the start menu in addition to the desktop, copy the file to \lstinline|~/.local/share/applications/|.
The Spyder window opens now. Set the graphics backend to \textit{Automatic} and click \textit{OK}, as shown here: The Spyder window opens now. Set the graphics backend to \textit{Automatic} and click \textit{OK}, as shown here:
\vspace{-1ex} \vspace{-1ex}
......
...@@ -131,6 +131,8 @@ You will get a list of packages and can confirm with \keyenter. Installation tak ...@@ -131,6 +131,8 @@ You will get a list of packages and can confirm with \keyenter. Installation tak
conda activate weai conda activate weai
spyder & spyder &
\end{lstlisting} \end{lstlisting}
Alternatively, you can use the desktop file (\textattachfile{attachments/Spyder-weai.desktop}{attachment}|\href{https://gitlab.cvh-server.de/ckaufmann/install-python-tensorflow-gym/-/raw/master/attachments/Spyder-weai.desktop?inline=false}{web}) to start it by double-clicking. Fix the path to the icon (example username is \texttt{john}) and make the file executable. Then copy it to your desktop folder (usually \lstinline|~/Desktop/|). If you want to see Spyder in the start menu in addition to the desktop, copy the file to \lstinline|~/.local/share/applications/|.
The Spyder window opens now. Open the test script \texttt{mnistKeras.py} (\textattachfile{attachments/mnistKeras.py}{attachment}|\href{https://gitlab.cvh-server.de/ckaufmann/install-python-tensorflow-gym/-/raw/master/attachments/mnistKeras.py?inline=false}{web}) and run it by pressing \keystroke{F5} or clicking on the green play button or by using the menu \textit{Run} $\rightarrow$ \textit{Run}. The Spyder window opens now. Open the test script \texttt{mnistKeras.py} (\textattachfile{attachments/mnistKeras.py}{attachment}|\href{https://gitlab.cvh-server.de/ckaufmann/install-python-tensorflow-gym/-/raw/master/attachments/mnistKeras.py?inline=false}{web}) and run it by pressing \keystroke{F5} or clicking on the green play button or by using the menu \textit{Run} $\rightarrow$ \textit{Run}.
\vspace{-1ex} \vspace{-1ex}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment