我想用在Jupyter笔记本中查看图表。所以我试了试。我已经安装了所需的软件包。这是我的代码:
import altair as alt
from vega_datasets import data
# Uncomment/run this line to enable Altair in the classic notebook
# (this is not necessary in JupyterLab)
alt.renderers.enable('notebook')
cars = data.cars()
chart = alt.Chart(cars).mark
当我运行"pip3 install some_module“时,我正在安装"Jupyter notebook in Visual Studio Code”和"Jupyter notebook in Visual Studio Code“,然后它可以导入"Jupyter notebook in Visual Studio Code”,但不能导入"Jupyter notebook“。我在”Visual Studio Code中Jupyter notebook“sys.executable = /usr/bin/python3中,但在"Jupyter
使用R时,我无法在Jupyter Notebook中显示HTML小部件(使用python时有效)。例如,所有的绘图图表都不能在Jupyter R notebook中运行。对此有什么解决方案吗?
library(plotly)
set.seed(100)
d <- diamonds[sample(nrow(diamonds), 1000), ]
plot_ly(d, x = carat, y = price, text = paste("Clarity: ", clarity),
mode = "markers", color = carat
有没有办法使用cmake find_package()来定位jupyter_notebook安装? 我试过了 FIND_PACKAGE(jupyter-notebook REQUIRED) 但是它错误地输出了 CMake Error at CMakeLists.txt:15 (FIND_PACKAGE):
By not providing "Findjupyter-notebook.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file
我已经安装了Anaconda,但是python 3的matpoltlib不能工作。所以我试着安装miniconda。
$ jupyter notebook
然后启动Jupiter notebook。但会出现以下消息:
pyenv: conda: command not found
The jupyter command exists in these Python versions:
anaconda3-4.0.0
miniconda3-4.1.11
如何选择miniconda?
我很难从发射木星笔记本。当我单击“启动”时,我的终端将打开以下消息:
Traceback (most recent call last):
File "/opt/anaconda3/bin/jupyter-notebook", line 7, in <module>
from notebook.notebookapp import main
File "/opt/anaconda3/lib/python3.8/site-packages/notebook/notebookapp.py", line 58, in <module&