


Please install mkl-service package, see GitHub - IntelPython/mkl-service: Python hooks for Intel(R) Math Kernel Library runtime control settinįile "C:\Users\effa1\anaconda3\lib\site-packages\numpy\core_ init.py", line 22, inįile “C:\Users\effa1\anaconda3\lib\site-packages\numpy\core\multiarray.py”, line 12, inįile “C:\Users\effa1\anaconda3\lib\site-packages\numpy\core\overrides.py”, line 7, inįrom re._multiarray_umath import ( Have a wee web search for it or check some of cc’s articles:Īfter I uninstalled and reinstalled I get this now when I run it:Ĭ:\Users\effa1\anaconda3\lib\site-packages\numpy_ init_.py:143: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. If you’re doing this a lot then you may also prefer changing to use Jupyter’s interactive IDE or something similar which is almost always a much nicer way of working like this. Long term you may prefer working with an interactive kernel like IPython instead of the standard python interactive interpreter. If it is not working then you may need to change the backend (some of these require additional downloads from pip or anaconda) This is just a quick test rather than an ideal way of working. Try running with python -i (interactive inspection after running script) just to double check the graph appears. It’s very likely you’ll want to work in an interactive shell when starting out (unless you’re doing some form of batch processing or periodic figure creation there’s few reasons not to), you might want to work in interactive mode. This would appear like the script ran successfully (no errors) but you don’t see any plots, or they flash up very quickly and disappear.Įdit: Being lazy with links the first time around I should probably mention that an interactive shell is generally suggested for working with matploblib but matplotlib’s interactive mode is not the same thing. How are you running this code at the minute? By and large matplotlib is designed to run in an interactive session when the python script finishes exectuion all active matplotlib windows could be closed again without your input. I think there is an error here in that plt.show should be plt.show().Įdit: plt.show() is designed to prevent the script continuing (it blocks further execution) - Matplotlib 3.4.2 documentation in the normal “non-interactive mode”. I wouldn’t worry about using it here, if anything it may be easier than sorting it yourself via pip.
