I downloaded Anaconda and started Jupyter from there. My problem starts with one of the first examples in the lecture, where my Notebook's kernel keeps dying when the codes below are run (see screenshot 1):
But other basic stuff works fine. Even just defining "x" in this code also works (see screenshot 2). I am using a Mac, and have tried running Notebook on both Chrome and Brave browser.
Please help! Thank you!!
import numpy as np
import matplotlib.pyplot as plt
x = np.random.randn(100)
plt.plot(x)
plt.show()
Additionally, below is what my Terminal shows from launching Notebook to the error:
[I 20:16:40.343 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 20:16:40.344 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=59a75956a49954fde4d4fbf7971f849a2b68e98812e89dcd&token=59a75956a49954fde4d4fbf7971f849a2b68e98812e89dcd
[I 20:16:40.921 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 20:16:57.761 NotebookApp] Creating new notebook in /Desktop/Python
Hi, I am a beginner with Python and are learning through the lectures "Quantitative Economics" at https://lectures.quantecon.org/py/python_by_example.html
I downloaded Anaconda and started Jupyter from there. My problem starts with one of the first examples in the lecture, where my Notebook's kernel keeps dying when the codes below are run (see screenshot 1):
But other basic stuff works fine. Even just defining "x" in this code also works (see screenshot 2). I am using a Mac, and have tried running Notebook on both Chrome and Brave browser.
Please help! Thank you!!
Additionally, below is what my Terminal shows from launching Notebook to the error:
Last login: Sat Jun 23 20:14:15 on ttys000
YIDIs-MacBook-Air:~ yidiwu$ /Users/yidiwu/anaconda3/bin/jupyter_mac.command ; exit;
[I 20:16:40.316 NotebookApp] JupyterLab beta preview extension loaded from /Users/yidiwu/anaconda3/lib/python3.6/site-packages/jupyterlab
[I 20:16:40.316 NotebookApp] JupyterLab application directory is /Users/yidiwu/anaconda3/share/jupyter/lab
[I 20:16:40.342 NotebookApp] Serving notebooks from local directory: /Users/yidiwu
[I 20:16:40.343 NotebookApp] 0 active kernels
[I 20:16:40.343 NotebookApp] The Jupyter Notebook is running at:
[I 20:16:40.343 NotebookApp] http://localhost:8888/?token=59a75956a49954fde4d4fbf7971f849a2b68e98812e89dcd
[I 20:16:40.343 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 20:16:40.344 NotebookApp]
[I 20:16:40.921 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 20:16:57.761 NotebookApp] Creating new notebook in /Desktop/Python
[I 20:17:00.356 NotebookApp] Kernel started: 5f22659b-4add-4b6c-b95c-701e3b4f548c
[I 20:17:04.695 NotebookApp] Adapting to protocol v5.1 for kernel 5f22659b-4add-4b6c-b95c-701e3b4f548c
Intel MKL FATAL ERROR: Cannot load libmkl_core.dylib.
[I 20:17:27.284 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
kernel 5f22659b-4add-4b6c-b95c-701e3b4f548c restarted
@takluyver you commented on something similar a while back, please help if you can. Thanks!