Starten der IPython-Shell¶
Ihr könnt IPython einfach in einer Konsole starten:
uv run ipython
Python 3.13.0 (main, Oct 7 2024, 23:47:22) [Clang 18.1.8 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.29.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]:
Alternativ könnt ihr IPython auch in einem Jupyter-Notebook verwenden. Hierfür startet ihr zunächst den Notebook-Server:
$ uv run --with jupyter jupyter notebook
[I 17:35:02.419 NotebookApp] Serving notebooks from local directory: /Users/veit/cusy/trn/Python4DataScience
[I 17:35:02.419 NotebookApp] The Jupyter Notebook is running at:
[I 17:35:02.427 NotebookApp] http://localhost:8888/?token=72209334c2e325a68115902a63bd064db436c0c84aeced7f
[I 17:35:02.428 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:35:02.497 NotebookApp]
Anschließend sollte der Standardbrowser mit der angegebenen URL geöffnet
werden. Häufig ist dies http://localhost:8888.
Nun könnt ihr im Browser einen Python-Prozess starten, indem ihr ein neues Notebook erstellt.