Hello, tell me how to fix the error:

ERROR:root:Line magic function `%matplotlib.inline` not found. 

After installing the Anaconda3-4.3.0.1-Windows-x86 package on Windows 7 (x86), Firefox 51.0.1 (32-bit) browser. The error occurs after installing the package, opening Anaconda Promt and calling ipython notebook from there on the command line.

To verify that the package was working properly after installation, I entered this test data in ipython notebook:

 %matplotlib.inline from numpy import linspace, cos import matplotlib.pyplot as plt x = linspace(0, 10, 50) y = cos(x) plt.plot(x, y) 

In theory, a graph should appear, and an error occurs.

Spyder and Anaconda Navigator from Anaconda3-4.3.0.1-Windows-x86 also fail to run.

All these files are not imported: C: \ Users \ DmitrOK71 \ Anaconda3 \ lib \ site-packages \ matplotlib \ pyplot.py C: \ Users \ DmitrOK71 \ Anaconda3 \ lib \ site-packages \ matplotlib \ colorbar.py C: \ Users \ DmitrOK71 \ Anaconda3 \ lib \ site-packages \ matplotlib \ contour.py C: \ Users \ DmitrOK71 \ Anaconda3 \ lib \ site-packages \ matplotlib \ text.py C: \ Users \ DmitrOK71 \ Anaconda3 \ lib \ site- packages \ matplotlib \ backend_bases.py C: \ Users \ DmitrOK71 \ Anaconda3 \ lib \ site-packages \ matplotlib \ textpath.py C: \ Users \ DmitrOK71 \ Anaconda3 \ lib \ site-packages \ matplotlib \ mathtext.py

located in the folder created by default with the Anaconda3-4.3.0.1-Windows-x86 installer: C: \ Users \ DmitrOK71 \ Anaconda3 \ Lib \ site-packages \ matplotlib

changed the folder name from lib to lib : C: \ Users \ DmitrOK71 \ Anaconda3 \ lib \ site-packages \ matplotlib

but this did not solve the problem, the same error appears: ERROR: root: Line magic function %matplotlib.inline not found.

not only in the browser Firefox 51.0.1 (32-bit) , but also in Google Chrome 56.0.2924.87 (32-bit) and in Internet Explorer 11.0.9600.18449 (32-bit)

  • remove the point in %matplotlib.inline (replace space with a space) - jfs
  • this does not help, although the message that the magic function was not found does not appear, the import error messages remain the same ImportError: DLL load failed: The specified procedure was not found. Replacing the% matplotlib.inline command with% matplotlib notebook also does not help - arian77
  • It helps (I believed), but solves only one problem. You have several . In particular, you should not rename the folder with your hands. Remove the fully current installation anaconda, Python. And put it from scratch (renaming folders with hands is NOT part of the installation) - but installing anaconda on Windows is a separate question from %matplotlib inline - jfs
  • deleted the installed Anaconda through its Uninstall-Anaconda, rebooted the PC (just in case), reinstalled from scratch. All items by default. Neither this function% matplotlib.inline nor% matplotlib inline works (for me). They write what it was in the old versions of IPython, and IPython versions> = 1.0 do not have such a problem. I have installed the post from conda list - ipython 5.1.0 py36_0 and jupyter 1.0.0 py36_3. I renamed the folder already after an error occurred, read that this error may be due to the wrong installation path (path) here: stackoverflow.com/questions/18175798 - arian77
  • because with Anaconda, I didn’t manage to delete anything and install another WinPython-32bit-3.5.3.0Qt5 package. They really say right there to install WinPython, Windows 7/8 users may have to install Microsoft Visual C ++ Redistributable for Visual Studio 2015, which I also did. The result: the function% matplotlib.inline also produces an error - ERROR: root: Line magic function %matplotlib.inline not found. But the modified command with a space instead of the point% matplotlib notebook works fine and the test example launched in Jupyter notebook draws a two-dimensional graph as intended - arian77

0