Kann mir bitte jemand helfen, das ipython Modul in jupyter Notebooks zu laden? Importmodul "ipython" in Jupyter Notebook
1
A
Antwort
1
ipython
ist eine Abhängigkeit für Jupyter, so dass es bereits installiert ist.
Es sieht so aus, als ob Sie versuchen, ipython widgets (ipywidgets
) für die Verwendung in Jupyter zu importieren. Um dies zu tun, in der Shell (außerhalb von Jupyter) installieren ipywidgets:
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
Dann importieren Widgets:
import ipywidgets as widgets
Read the docs to learn more about installing and using ipython widgets.
0
Ich glaube, dass ein Teil des Problems ist die Kapitalisierung des IPython-Pakets in Ihrer Importanweisung:
versuchen: import IPython.html.widgets
Ich weiß nicht, ob das alles bekommt, was Sie wollen, aber das ist wahrscheinlich das Problem bezüglich Ihres Imports.
Verwandte Themen
- 1. iPython Notebook/Jupyter Autosave fehlgeschlagen
- 2. Anpassen IPython Notebook/Jupyter Diashow
- 3. Jupyter (IPython) Notebook nicht plotten
- 4. Gelöschte Ipython/Jupyter Notebook wiederherstellen?
- 5. Auto-Update-Modul in IPython/jupyter Notebook
- 6. Einzelne Zelle in IPython/Jupyter Notebook exportieren
- 7. Ipython Notebook-Befehl in Anaconda öffnet Jupyter Notebook?
- 8. Automatisieren Standard jupyter/ipython Notebook Importe
- 9. IPython/Jupyter Notebook 3 - Kopfzeilen standardmäßig ausblenden
- 10. Wie kann ich ein Jupyter Notebook (iPython Notebook) programmatisch speichern?
- 11. Cython in Jupyter Notebook
- 12. jupyter notebook% matplotlib error
- 13. Jupyter Notebook Diashow offline
- 14. Verwenden von ipython magics in R jupyter Notebook?
- 15. Registrierung von Kerneln in ipython/jupyter notebook - kernel.json
- 16. Kann unittest Hauptfunktion in Ipython/Jupyter Notebook nicht ausführen
- 17. Kann ein Jupyter/IPython-Notebook Argumente in der URL übernehmen?
- 18. pygal Charts nicht Tooltips in Jupyter/IPython Notebook
- 19. Wie die Seitenbreite in ipython Notebook erhöhen (jupyter) gleitet
- 20. Importieren von Scikit-lernen in Ipython/Jupyter Notebook
- 21. Manschettenknöpfe: wie Heatmaps mit Manschettenknöpfen in Jupyter/ipython Notebook subplot?
- 22. Anaconda: Python 3 und 2 in IPython/Jupyter Notebook
- 23. IPython (Jupyter) Notebook produziert Geisterlinie in allen Gleichungen
- 24. Kollaps Zelle in Jupyter Notebook
- 25. Kernel-Fehler in R Notebook mit Jupyter Notebook
- 26. Synchronisieren von Code zwischen Jupyter/iPython Notebook-Skript und Klassenmethoden
- 27. Warum wird nicht Anaconda Jupyter Ipython Notebook starten?
- 28. Warum verhält sich PyQt4 zwischen Jupyter und IPython-Notebook anders?
- 29. Wie können Tastaturbefehle dauerhaft zum Jupyter (ipython) Notebook hinzugefügt werden?
- 30. pip Mit ipython Notebook
Danke, das hat gut funktioniert. Allerdings habe ich das Problem mit anderen Paketen (z. B. numpy). 'jupyter nbextension enable --py numpynbextension' hat nicht funktioniert, um den Zugriff durch Jupyter zu erlauben. Irgendwelche Ideen dazu :)? – Sylvi0202
Auch kann ich immer noch nicht den Code ausführen: 'von Ipython.display Import Anzeige Anzeige (Text)' obwohl Sie sagen, dass die Ipython Abhängigkeit bereits installiert ist? – Sylvi0202
versuchen Sie 'pip install numpy' in Ihrer Conda-Umgebung – safay