防止 Jupyter 使用八度内核打印加载的矩阵
Prevent Jupyter from printing loaded matrices with the octave kernel
我在 Jupyter 笔记本中使用 Octave 内核。当我尝试使用 dlmread 函数从文件加载矩阵时,打印了整个数据。我尝试立即将结果分配给一个变量,但没有成功。这很麻烦,因为矩阵很大(~17*500)所以打印需要一段时间。
我只想加载我的数据而不打印所有数据。
我猜你的 dlmread 命令末尾没有 ;
。见manual:
Ending a command with a semicolon tells Octave not to print the result of the command
看这个例子:
>> a = 4 + 5
a = 9
>> b = 5 + 6;
>>
我在 Jupyter 笔记本中使用 Octave 内核。当我尝试使用 dlmread 函数从文件加载矩阵时,打印了整个数据。我尝试立即将结果分配给一个变量,但没有成功。这很麻烦,因为矩阵很大(~17*500)所以打印需要一段时间。
我只想加载我的数据而不打印所有数据。
我猜你的 dlmread 命令末尾没有 ;
。见manual:
Ending a command with a semicolon tells Octave not to print the result of the command
看这个例子:
>> a = 4 + 5
a = 9
>> b = 5 + 6;
>>