Python: Anaconda: Unterschied zwischen den Versionen

Aus Flinkwiki
Wechseln zu: Navigation, Suche
(Jupyter Notebook)
(Arbeit mit Visual Studio Code)
Zeile 46: Zeile 46:
  
 
Search for the command Create New Blank Jupyter Notebook
 
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.
  
 
----
 
----

Version vom 4. Dezember 2020, 08:32 Uhr

Seitenübersicht
Zur Seite "Python"
Zur Seite "Python: Klassen"
Zur Seite "Python: Module"
Zur Seite "Python: Turtle"
Zur Seite "Python: Tkinter"
Zur Seite "Python: pygame"
Zur Seite "Python: PyQT"


Allgemeines

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.)

[1]


Navigator

Der Anaconda-Navigator wird im bin-Verzeichnis der Installation gestartet:

./navigator-updater

Jupyter Notebook

Jupyter Notebook starten

  1. Locate and open your Anaconda Navigator.
  2. Search for Jupyter Notebook in Anaconda Navigator and click it.
  3. 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.


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


| |