Jupyter Lab关闭和系统在运行Python代码时已记录
我正在使用与Python的Jupyter Lab进行宇宙学数据集的数据分析。 我使用Dell Vostro 5515笔记本电脑和16GB RAM和RYZEN7处理器。我的操作系统是带有KDE和XFCE环境的Fedora 36。
问题在于,在运行我的.ipynb笔记本一段时间后,如果我在KDE中,它会突然关闭。如果我在XFCE中,它也关闭了所有应用程序并将我的会话记录出来。
崩溃主要发生在运行一个名为Compute_fute_full_master
pymaster 库中的函数时发生。但是在运行其他功能时也很少发生。
我试图通过在中运行Jupyter Lab来获取错误消息 - debug
模式,但是当崩溃发生时,终端也已关闭。我不知道如何以其他方式获取崩溃详细信息。
我试图在Firefox,Chrome和Vscode中运行代码。
很抱歉,如果我没有提供任何必要的详细信息,并且我很高兴提供任何人提供帮助!
编辑:
一个简单的示例:
arr_len = 8394753
x = np.arange(arr_len)
plt.figure(figsize=(25,15))
plt.plot(x, y_1 - y_2)
plt.plot(x, y_1 - y_3)
plt,plot(x, y_1 - y_4)
plt.ylim((-1e-6,1e-6))
数组y_1,y_2,y_3和y_4具有长度ARR_LEN,并且很复杂。假想的部分无关紧要。该笔记本已经在以前的单元格中运行了一些代码。但是运行此绘制单元几次导致关闭多次。
I am using Jupyter Lab with python for data analysis of cosmological data sets.
I use Dell Vostro 5515 laptop with 16gb ram and Ryzen7 processor. My OS is Fedora 36 with KDE and Xfce environments.
The problem is that on running my .ipynb notebook for some time, it closes down abruptly if I am in KDE. If I m in xfce, it also closes all the applications and logs out my session.
The crash happens mostly while running a function called compute_full_master
in pymaster
library in python. But has also happened rarely while running some other functions.
I have tried to get error messages by running jupyter lab in --debug
mode, but when the crash happens, the terminal is also closed. I do not know how to get the crash details in other ways.
I have tried to run the code in firefox, chrome, and VSCode.
I am sorry if I have not provided any details necessary and I am happy to provide any if anyone can help!
EDIT:
A simple example:
arr_len = 8394753
x = np.arange(arr_len)
plt.figure(figsize=(25,15))
plt.plot(x, y_1 - y_2)
plt.plot(x, y_1 - y_3)
plt,plot(x, y_1 - y_4)
plt.ylim((-1e-6,1e-6))
The arrays y_1, y_2, y_3 and y_4 have the length arr_len and are complex. The imaginary part does not matter. The notebook is already having run some code in previous cells. But running this plotting cell a few times caused the shut down many times.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论