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

Fix strange download file name issue in firefox

The downloaded file name of Spyder-*.desktop is
Spyder-*.desktop.download. This is the case for downloading in Firefox
from attachment or https link. When downloading from attachement in
local PDF viewer okular or from https link in Chrome the file name is
the original one.

The instructions contain now a sentence that the .download file
extension should be removed.
parent 75ed5337
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -182,7 +182,7 @@ Wir haben Spyder bereits in der Conda-Umgebung \lstinline|ml| installiert. Als n ...@@ -182,7 +182,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/|. 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. Entfernen Sie ggf.\ die Dateiendung \texttt{.download}, sodass die Dateiendung \texttt{.desktop} lautet. 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}
......
No preview for this file type
...@@ -135,7 +135,7 @@ When it's finished, let's start spyder ...@@ -135,7 +135,7 @@ 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/|. 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. If necessary, remove the file extension \texttt{.download} so that the file extension is \texttt{.desktop}. 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}
......
No preview for this file type
...@@ -130,7 +130,7 @@ You will get a list of packages and can confirm with \keyenter. Installation tak ...@@ -130,7 +130,7 @@ 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/|. 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. If necessary, remove the file extension \texttt{.download} so that the file extension is \texttt{.desktop}. 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