
[英]Mac, Jupyter, import packages
当我尝试导入 train_test_split 函数时,我总是收到警告” 我的 scikit 学习是 1.2.0 我想使用 train_test_split 函数。 ...
[英]Mac, Jupyter, import packages
当我尝试导入 train_test_split 函数时,我总是收到警告” 我的 scikit 学习是 1.2.0 我想使用 train_test_split 函数。 ...
[英]Python Pandas: Using corrwith and getting "outputs are collapsed"
我想找出矩阵中的一列数据如何与矩阵中的其他列相关联。 数据看起来像; 我使用以下代码; head 命令中的 output 未生成。 相反,我收到一条消息说“输出已折叠”。 为什么会这样? 这是我可以捕获的错误还是代码错误? 也许有太多行? 我正在使用 Visual Studio 代码。 ...
[英]JupyterDash: how to get the flask callable?
我有一个运行 jupyter dash 应用程序的脚本 执行脚本时,我看到 现在,如何从“app”变量中获取 Flask“可调用”? ...
[英]How to define a complex recursive sequence in SageMath?
非常抱歉,因为我的问题可能看起来很明显,但我在 SageMath 中定义复杂序列时遇到了困难。 ` `(代码开头没有“sage:”,因为我是用 jupyter 写的。如你所见,我正在尝试定义这个序列。在此处输入图像描述我试过了,但出现以下错误:` ` 因此 Sage 在 .img() 方面遇 ...
[英]Why is launching JupyterLab from my python2.7 anaconda environment failing with a syntaz error?
首先,我是 anaconda (3.9) 和 jupyerlab 的新手。 当我从我的 python 3.10.8 环境在 anaconda 导航器中启动 jupyterlab 时,它工作正常但是当我从我的 python 2.7.18 环境启动它时,它会抛出以下错误。 编辑澄清:我不会在 Py2 ...
[英]jupyter toc2 floating window cannot be moved or folded
在最近对 Python 3.9 进行包更新后,jupyter notebook 中的 toc2 扩展停止可靠工作。 当打开笔记本时,会出现 TOC 浮动窗口,但是,TOC 窗口: Notebook加载后只能移动(拖动)一次:初次移动后,窗口不能再移动无法通过拖动角来调整大小(但可以通过编辑单元格元 ...
[英]Debugging Jupyter cells fails with "Pip module Unable to parse debugpy output"
我正在尝试调试 Jupyter 笔记本(以及带有 #%% 标记的 .py 文件中的单元格),但它不起作用。 过了一会儿 IDE 弹出一个Pip module Unable to parse debugpy output,.. 调试“常规”python 文件,即没有 jupyter 单元,工作正常。 ...
[英]How can I labeled the X axis and Y axis in yellowbrick plot? The code is I used is show below
如何在 yellowbrick plot 中标记 X 轴和 Y 轴? 我使用的代码如下所示。 我尝试添加 但没有用。 ...
[英]How to auto-run import statements on starting Jupyter notebooks in VS Code?
使用 Jupyter Notebooks 时,我通常可以修改C://Users/{username}/.jupyter/jupyter_notebook_config.py 添加一些我想在每次启动 jupyter notebook 时运行的代码(通常是 import 语句)。 但是,这在使用 VS ...
[英]Astroscrappy not working on multiprocessing Jupyter
我这里有一些多处理代码,试图同时运行多个 astroscrappy 进程。 但是,当它实际上必须调用 astroscrappy 时,一切都会停止。 我在 jupyter notebook 中运行它。 它只会打印出 1、2、2.5,但不会打印出调用 astroscrappy 后出现的 3。 任何想法 ...
[英]How do I construct a python function where the input in python code and output is ipython rich output (in HTML)?
我如何构造一个函数foo()这样 其中out是 ipython 或 jupyter notebook 将输出的富文本 HTML 输出 ipython 中是否有一些内置函数可以做到这一点? 我想有,但我无法在谷歌搜索的任何地方找到它。 编辑:我希望该函数存在于我的 python 脚本中,而不是在我运 ...
[英]Autocompletion for instance variables in IPython/Jupyter
我试图找出哪些实例变量没有出现在 IPython 或 Jupyter 笔记本的自动完成中。 例如,如果我有下面的 class:class A: def __init__(self, var_a: int): self.var_a = var_a 并且我定义了一个 ...
[英]Google Colab notebook using IJava stuck at "Connecting" after installation + refresh
在初始 IJava 安装和浏览器页面刷新后,我所有的笔记本都停止连接。 曾经工作过什么执行第一个单元格 等待Installed java kernel消息刷新浏览器页面。 使用 Java 代码执行任何单元格。 现在发生的是我可以执行第一个单元格并获取已Installed java kernel消息 ...
[英]I encounterd a "ModuleNotFoundError: No module named 'nbformat'" when rendering .qmd file to html in VS code
我用VS code编辑了一个.qmd文件,渲染到html失败,报错信息如下: 我想知道如何解决这个问题。 我猜问题出在 python 解释器上,但我不知道如何切换到 a.qmd 文件下的另一个 python 解释器。 另外,我在命令行中尝试了conda install nbformat并成功安装。 ...
[英]Plotly Python: Export image with different font styles
问题总结我正在尝试将具有多个 fonts / 字体样式的 plotly 图形导出为 .png 文件。 在浏览器中,图形正确呈现。 y 轴的字体样式与图中的 rest 不同。 fonts 都安装在我的系统上。 但是,如果我尝试将图像导出为 png 文件,则 y 轴的不同字体样式似乎消失了。 ...
[英]Issues with too many interactive plotly figures
我在我的笔记本电脑(Anaconda 附带的版本)上使用 Jupyter notebook 来执行一些敏感性分析。 我使用 plotly 来显示结果,我喜欢它的交互功能。 然而,当我试图在同一个笔记本上显示超过 7/8 的交互式图时,一些图消失了,这些图的 output 个单元格 go 疯狂(见附图 ...
[英]"import tensorflow" results in error: No module named 'tensorflow.python.eager.polymorphic_function' (Python in Jupyter Lab)
Python 3.9.12。 Windows 10. jupyterlab 3.3.2。 当我尝试导入 Tensorflow 时,出现以下“tensorflow.python.eager.polymorphic_function”错误。 我的工作流程是基于这个教程: https://www. ...
[英]ArgumentError: FROM expression expected
我在 jupyter notebook 中有以下单元格。 ****里的是机密信息 我必须执行它,但执行时出现以下错误: 调试我看到一切运行正常,直到这个 select 开始:qry = sa.select(......)。 我不知道错误是否来自我在执行此单元之前需要安装的库。 ...
[英]How could I use 'assert' and a variable 'actual' to write a test code for a user input code for the conversion of time?
` 这是用于编写相应测试代码的生产代码。 ` 我不确定 go 如何使用“siminput”“assert”和变量“actual”编写测试代码,为上面的代码行编写工作测试代码,使其在单元测试中正确运行。 ...
[英]Trying to find Total Sales & Total Cost of 3 different Countries cars
更新:下面是 excel 文件链接。 我是 Python 的新手,正在做这个图表,但我被卡住了,我试图显示一个包含 3 个不同国家(西班牙、德国、瑞士)的水平条形图,并试图显示总销售额和总成本。 我一直收到错误消息,但不确定我的公式是否正确如果可以的话,请看一下。 我得到的错误如下。 如果有人可以请 ...