Python 不同的显示结果取决于内核(新用户问题)
我是Jupyter的新手,很难理解某些对象是如何根据我使用的内核显示的 这是我的例子Python 不同的显示结果取决于内核(新用户问题),python,pyspark,jupyter-notebook,jupyter-lab,Python,Pyspark,Jupyter Notebook,Jupyter Lab,我是Jupyter的新手,很难理解某些对象是如何根据我使用的内核显示的 这是我的例子 #sc.install_pypi_package("ipython") <<- to install ipython when using pyspark kernel from IPython.display import Image img = Image(url='http://python.org/images/python-logo.gif') img 但这与上面的结果完全相同。我知道我
#sc.install_pypi_package("ipython") <<- to install ipython when using pyspark kernel
from IPython.display import Image
img = Image(url='http://python.org/images/python-logo.gif')
img
但这与上面的结果完全相同。我知道我误解了什么,我只是不知道是什么
请注意,我使用ERM笔记本-->JupyterLab在AWS上执行此操作。Spark正在EMR群集上运行
from IPython.display import display
display(img)