Python: Anaconda: Unterschied zwischen den Versionen
Flinh1 (Diskussion | Beiträge) |
Flinh1 (Diskussion | Beiträge) (→JupyterLab) |
||
(16 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 5: | Zeile 5: | ||
<div align="right">'''[[Python: Turtle|Zur Seite "Python: Turtle"]]'''</div> | <div align="right">'''[[Python: Turtle|Zur Seite "Python: Turtle"]]'''</div> | ||
<div align="right">'''[[Python: Tkinter|Zur Seite "Python: Tkinter"]]'''</div> | <div align="right">'''[[Python: Tkinter|Zur Seite "Python: Tkinter"]]'''</div> | ||
− | <div align="right">'''[[Python: | + | <div align="right">'''[[Python: Pygame|Zur Seite "Python: Pygame"]]'''</div> |
<div align="right">'''[[Python: PyQT|Zur Seite "Python: PyQT"]]'''</div> | <div align="right">'''[[Python: PyQT|Zur Seite "Python: PyQT"]]'''</div> | ||
Zeile 11: | Zeile 11: | ||
== Allgemeines == | == Allgemeines == | ||
+ | Anaconda ist eine Open-Source-Distribution für die Programmiersprachen Python und R, die unter anderem die Entwicklungsumgebung Spyder, den Kommandozeileninterpreter IPython, und ein webbasiertes Frontend für Jupyter enthält. Der Fokus liegt vor allem auf der Verarbeitung von großen Datenmengen, Vorhersageanalyse und wissenschaftlichem Rechnen. Das Ziel der Distribution ist die Vereinfachung von Paketmanagement und Softwareverteilung. Paketversionen werden von der Paketverwaltung conda verwaltet.[https://de.wikipedia.org/wiki/Anaconda_(Python-Distribution)] | ||
+ | |||
+ | ---- | ||
== Installation == | == Installation == | ||
Zeile 22: | Zeile 25: | ||
---- | ---- | ||
+ | == Navigator == | ||
+ | |||
+ | Der Anaconda-Navigator wird im ''bin''-Verzeichnis der Installation gestartet: | ||
+ | anaconda3/bin/anaconda-navigator | ||
+ | ---- | ||
+ | |||
== Jupyter Notebook == | == Jupyter Notebook == | ||
+ | |||
+ | === Jupyter Notebook starten === | ||
+ | # Locate and open your Anaconda Navigator. | ||
+ | # Search for Jupyter Notebook in Anaconda Navigator and click it. | ||
+ | # A new window should open in the web browser of your choice. | ||
+ | Beim Start von Jupyter Notebook öffnet sich die Verzeichnisansicht ''<nowiki>http://localhost:8888/tree</nowiki>'' | ||
+ | |||
+ | ... copy everything that follows >>> in a cell in your Jupyter Notebook; that is, you exclude >>>. To run code, make sure the cell is highlighted, then press Shift + Enter. You may also press the Run button at the top of the Notebook, but this takes more time. Start thinking like a developer and use keystrokes instead. | ||
+ | |||
+ | ---- | ||
+ | === Jupyter Notebook in Python-Skript umwandeln === | ||
+ | |||
+ | jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb | ||
+ | |||
+ | Im Notebook: | ||
+ | !jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Arbeit mit Visual Studio Code === | ||
+ | |||
+ | Creating a new notebook | ||
+ | Open the command palette with the shortcut: Ctrl/Command + Shift + P | ||
+ | |||
+ | Search for the command Create New Blank Jupyter Notebook | ||
+ | |||
+ | How to get back to the start page | ||
+ | Open the command palette with the shortcut: Ctrl/Command + Shift + P | ||
+ | |||
+ | Search for the command Python: Open Start Page | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Getting started | ||
+ | You are currently viewing what we call our Notebook Editor. It is an interactive document based on Jupyter Notebooks that supports the intermixing of code, outputs and markdown documentation. | ||
+ | |||
+ | This cell is a markdown cell. To edit the text in this cell, simply double click on the cell to change it into edit mode. | ||
+ | |||
+ | The next cell below is a code cell. You can switch a cell between code and markdown by clicking on the code /markdown icons or using the keyboard shortcut M and Y respectively. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | print('hello world') | ||
+ | To execute the code in the cell above, click on the cell to select it and then either press the play button in the cell toolbar, or use the keyboard shortcut Ctrl/Command + Enter | ||
+ | |||
+ | To edit the code, just click in cell and start editing. | ||
+ | To add a new cell below, click the Add Cell icon at the bottom left of the cell or enter command mode with the ESC Key and then use the keyboard shortcut B to create the new cell below. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | * https://code.visualstudio.com/docs/python/data-science-tutorial | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Troubleshooting === | ||
* https://jupyter-notebook.readthedocs.io/en/stable/troubleshooting.html | * https://jupyter-notebook.readthedocs.io/en/stable/troubleshooting.html | ||
+ | ---- | ||
+ | == JupyterLab == | ||
+ | |||
+ | JupyterLab is the next-generation web-based user interface for Project Jupyter.[https://jupyterlab.readthedocs.io/en/stable/] | ||
+ | |||
+ | JupyterLab kann aus dem Anaconda-Browser heraus gestartet werden | ||
+ | |||
+ | oder über das Terminal | ||
+ | |||
+ | jupyter lab | ||
+ | *https://jupyterlab.readthedocs.io/en/stable/ | ||
+ | |||
+ | ---- | ||
+ | == Spyder == | ||
+ | |||
+ | IDE mit IPython-Terminal, Teil des Anaconda-Pakets. ''[https://help.kite.com/category/89-spyder-integration Kite]'' kann als Plugin hinzuinstalliert werden. | ||
+ | |||
---- | ---- | ||
[[Kategorie: Alle Seiten]] | [[Kategorie: Programmierung ]] | | [[Kategorie: Alle Seiten]] | [[Kategorie: Programmierung ]] | |
Aktuelle Version vom 2. Januar 2021, 21:29 Uhr
Inhaltsverzeichnis
Allgemeines
Anaconda ist eine Open-Source-Distribution für die Programmiersprachen Python und R, die unter anderem die Entwicklungsumgebung Spyder, den Kommandozeileninterpreter IPython, und ein webbasiertes Frontend für Jupyter enthält. Der Fokus liegt vor allem auf der Verarbeitung von großen Datenmengen, Vorhersageanalyse und wissenschaftlichem Rechnen. Das Ziel der Distribution ist die Vereinfachung von Paketmanagement und Softwareverteilung. Paketversionen werden von der Paketverwaltung conda verwaltet.[1]
Installation
Download von der Seite
Installation in Ubuntu: Die Installation benötigt keine root-Rechte und das Programm installiert sich im Verzeichnis des Benutzers.
bash Anaconda3-2020.11-Linux-x86_64.sh (Eventuell den Dateinamen und den Namen der heruntergeladenen Datei ersetzen.)
Der Anaconda-Navigator wird im bin-Verzeichnis der Installation gestartet:
anaconda3/bin/anaconda-navigator
Jupyter Notebook
Jupyter Notebook starten
- Locate and open your Anaconda Navigator.
- Search for Jupyter Notebook in Anaconda Navigator and click it.
- A new window should open in the web browser of your choice.
Beim Start von Jupyter Notebook öffnet sich die Verzeichnisansicht http://localhost:8888/tree
... copy everything that follows >>> in a cell in your Jupyter Notebook; that is, you exclude >>>. To run code, make sure the cell is highlighted, then press Shift + Enter. You may also press the Run button at the top of the Notebook, but this takes more time. Start thinking like a developer and use keystrokes instead.
Jupyter Notebook in Python-Skript umwandeln
jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb
Im Notebook:
!jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb
Arbeit mit Visual Studio Code
Creating a new notebook Open the command palette with the shortcut: Ctrl/Command + Shift + P
Search for the command Create New Blank Jupyter Notebook
How to get back to the start page Open the command palette with the shortcut: Ctrl/Command + Shift + P
Search for the command Python: Open Start Page
Getting started You are currently viewing what we call our Notebook Editor. It is an interactive document based on Jupyter Notebooks that supports the intermixing of code, outputs and markdown documentation.
This cell is a markdown cell. To edit the text in this cell, simply double click on the cell to change it into edit mode.
The next cell below is a code cell. You can switch a cell between code and markdown by clicking on the code /markdown icons or using the keyboard shortcut M and Y respectively.
print('hello world') To execute the code in the cell above, click on the cell to select it and then either press the play button in the cell toolbar, or use the keyboard shortcut Ctrl/Command + Enter
To edit the code, just click in cell and start editing. To add a new cell below, click the Add Cell icon at the bottom left of the cell or enter command mode with the ESC Key and then use the keyboard shortcut B to create the new cell below.
Troubleshooting
JupyterLab
JupyterLab is the next-generation web-based user interface for Project Jupyter.[3]
JupyterLab kann aus dem Anaconda-Browser heraus gestartet werden
oder über das Terminal
jupyter lab
Spyder
IDE mit IPython-Terminal, Teil des Anaconda-Pakets. Kite kann als Plugin hinzuinstalliert werden.
| |