在绘制绘图时,我使用了Jupyter Notebook和Pycharm,并使用了相同的代码和包。代码是:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt # as in Pycharm
import matplotlib as plt # as in Jupyter
df = pd.read_csv("/home/kunal/Downloads/Loan_Prediction/train.csv")
df['ApplicantIncome'].
也许这根本不起作用,因为它是一台Mac,但也许有一种方法可以在Mac上打开jupyter笔记本?我尝试了以下命令
jupyter notebook Manager.ipynb
我得到了一个错误
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory. Same with out 'notebook':
jupyter Manager.ipynb
Error executing Jupyter command 'Manager.ipynb'
我试图在mac中通过Anaconda运行jupyter笔记本,但它显示:
-bash: touch: command not found
MacBook-Air:~ ajay$ /anaconda3/bin/jupyter_mac.command ; exit;
/anaconda3/bin/jupyter_mac.command: line 1: dirname: command not found
/anaconda3/bin/jupyter_mac.command: line 3: /jupyter-notebook: No such file or directory
logout
S
我创建了一个python模块,其中包含许多自定义函数,用于我的工作中的各种任务。在模块中,我希望能够读取本地CSV文件。
import pandas as pd
def my_function():
print('Hello World')
df = pd.read_csv('spreadsheet.csv') #This file is in the same folder as the module.
return df
我将我的模块导入jupyter notebook,尝试这样使用它:
import sys
sys.path.ap
我通过WSL使用Ubuntu22.04LTS,并使用Python3.10。当我尝试使用python3 -m pydrake.tutorials在本地运行Drake教程时,我会得到以下错误:ERROR: the Jupyter notebook runtime is not installed!,但情况并非如此,因为我已经使用sudo apt-get install jupyter-notebook安装了jupyter -记事本,并且在输入jupyter notebook时可以轻松地打开jupyter笔记本。
此外,我试图复制粘贴并从教程中运行以下代码:
import pydot
from IP
我使用的是macbook pro os x El Capitan版本10.11.6,我刚刚开始学习python,我在我的电脑上安装了python 3x,然后我尝试安装jupyter。运行命令后:
pip3 install jupyter
每件事都运行得很好,但是当我尝试运行命令时:
jupyter notebook
我得到以下错误:
-bash: jupyter: command not found
我也试过了:python3 -m jupyter notebook
Error executing Jupyter command 'notebook': [Errno 2] No
在Windows7机器上,我按照here的说明安装了Python3.8.5,使用here的get-pip.py安装脚本安装了pip,以及Jupypter Lab + Jupyter Notebook。当尝试启动Jupyter Notebook时,我收到以下错误消息: C:\jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file. 有什么问题吗?通过启动Python控制台并执行pip -V命令,我验证了Pytho
当我运行"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