python - Trying to disable Variables In-line with Jupyter Code in PyCharm
问题描述
I'd like to be able to disable the variable info being displayed in-line with the code. See the following code and attached screenshot... As you can see, the "In-Line Values" is unchecked, but I still get df2: {DataFrame: (3,3)} at the end. I'm running this as a .ipynb inside of PyCharm.
#%% md
### This code illustrates my problems with in-line values
#%%
import pandas as pd
import numpy as np
#%%
df2 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
columns=['a', 'b', 'c'])
df2
解决方案
Jupyter 有一个单独的地方可以更改此设置。要打开设置,请按“Ctrl + Alt + s”。然后,检查:Build,Execution,Deployment | 朱庇特| 在编辑器中显示内联值。
推荐阅读
- c# - 将对象列表加密和解密为 byte[]
- java - 为什么从属性文件读取时环境变量始终为空?
- python - 使用函数的返回值
- php - php7.0.33 session_write_close 失败
- wordpress - 将作者的 Wordpress 帖子网格(最新帖子)添加到自定义帖子类型
- postgresql - 是否可以使用“postgres”数据库中的数据升级 Cloud SQL postresql 版本
- microcontroller - stm32f1 实时时钟告警
- javascript - 如何从每个字符串中计算小数?
- python - 为行组填充空值
- java - 如何更改我的代码以接受用户输入