My dataframes used to display like this:
Then, one day, I realized the borders were not showing anymore:
I don't know what happened.
I have Python 3.4 which I installed using the Anaconda bundle which comes shipped with Python, pandas, iPython, and Spyder. So, I am accessing iPython through the Spyder environment.
After the problem with the border happened, I uninstalled Anaconda, and installed it again, but I got the same issue.
Any help on this would be greatly appreciated.
This functionality was removed in IPython 3.0.
This was reported to the Anaconda Google groups page in May 2015.
I think you're [were] using an old version of Spyder (2.3.0, 2.3.1 or 2.3.2)
on Windows because support for printing DataFrames as html tables was
removed in recent versions (i.e. since [Spyder] 2.3.3).
I'm sorry we've had to remove it, but it was causing other problems
and (more importantly) it stopped to be supported by IPython 3.0+.
Then more explicitly in a later post:
There is no way to get the functionality mentioned by the OP again because it was removed by IPython in its 3.0 version.
Related
Imagine the situation like below. There must be simple explanation.
I have a program written in Jupyter notebook and use Python 3.7. There is no errors while executing the program and works on two PC computers. As I remember there where just only Python 3.7 (and adds like matplotlib etc. all what is needed).
Then on the others computers where is Python 3.8 the same programs gives me an error. Why?
I took another two PC removed all Python installation and install 3.7 3.8 3.9 3.10 Python (tried every of them) and I can't execute the programs without error. Why is like that? All extensions like matplotlib, numpy , scipy which is needed every time are install in proper way by pip etc...Path in Windows are always correct.
It seems to me that on those two computer where program work fine was only Python 3.7 (but I am not sure in 100% that there hadn't been installed previous version of the Python) the programs works. Any other installation or refreshment of the Python makes that teh program gives me errors.
The only one what I should to do is 100% reset Windows and do fresh and the newest one Python instillation (Jupyther etc.) and check whether the error exist or not. But I would like to know what makes the problem and not to refresh all my Windows installation every time.
The problem is even more interesting when I am taking the same program
and put them to the virtual Jupyther using the Internet and browser they always work fine without any errors and there is for sure the news Python engine I guess not 3.7.
Did you try to execute "pip freeze" or "conda list" on these computers (with Ananconda Powershell for ex.) to verify that all the libraries' versions you are using are the same?
Looking at the error on the screenshot, I would bet that the problem does not come from your Python version but more from a higher version on matplotlib installed on the first two PCs, which makes that the third one (with potentially an older version of matplotlib) does not support the arguments given.
Just try executing:
(base) PS C:\XXX\Python> conda list matplotlib
and should get the version of matplotlib installed on each PC, like this:
# packages in environment at C:\XXX\Miniconda3:
#
# Name Version Build Channel
matplotlib 3.4.2 pypi_0 pypi
matplotlib-inline 0.1.2 pypi_0 pypi
If they are different, this might be where the issue comes from.
Windows 10, installed Python 3.10, then Spyder 5 from Windows Installer. Changed python interpreter (preferences) to the previously installed Python 10. Basically it works fine. However if I want to see in the Variable Explorer more complex objects like pandas dataframes, it gives back:
Spyder was unable to retrieve the value of this variable from the console. The error message was: ''
There is also no error message in the console
Without any error messages it's hard to trace back. Interesting enough, that pandas series are shown, data frames not. Any incompatibilites known between Spyder 5 and Python 3.10?
Any idea highly appreciated...
Downgrading pandas worked for me. I had version 1.4.2 of pandas and the Spyder installer I used (5.15) had come with pandas version 1.3.3. I think that version of spyder isn't compatible with the newer pandas version so I downgraded the pandas package that's used in the python interpreter (not the one that comes with the installer) to 1.3.3
You could also try different versions of the Spyder installer. A couple of the versions was giving me different problems and I found version 5.15 to be the sweet spot for my setup.
I am running a python notebook in VS Code (see image). It runs fine but when I try to inspect a dataframe with the Data Viewer I get:
"Python package 'pandas' is required for viewing data."
The package is installed, otherwise, the code would not work and the data frames would not be present in the variable panel. When I click on "Install" I get: "Error: All data science packages require an interpreter be passed in"
I only have two environments, Anaconda and one created by VS code. I have tried selecting either one and nothing changes, code runs on both and I get the same errors on both.
Any ideas on how to fix this problem?
EDIT: The previous question Viewing data in the VSCode variable explorer requires pandas does not solve my issue. As mentioned above I have selected different environments without fixing it.
EDIT 2: Updating pandas did not fix it either. It was only solved by updating Anaconda, as suggested by Mrinal Roy.
This answer on a similar issue Viewing data in the VSCode variable explorer requires pandas mentioned it was fixed around a year ago.
It seems that the version.release string of pandas I was using includes characters that are not correctly parsed by the extension. They mentioned that it was going to be addressed yesterday in the Insider version. Looking forward to validating.
So, you probably have an older version of Anaconda or VS Code. Otherwise, what version of pandas do you have in both conda environments? VS Code Data Viewer requires pandas package 0.20 or later. Try upgrading it and related packages to the latest and check.
I'm running Anaconda/Spyder and I keep getting the Intel Math Library error shown in the picture:
It seems like an entry point for mkl_blas_dgem2vu is missing (whatever that is).
I was still able to run Spyder until I tried updating everything. After updating Spyder doesn't start after receiving this error.
I stuck and can't do anything right now.
Thanks.
I already found that post and it solved part of my problem.
First part of problem is that different a version of the MKL library was in the system32 & SYSWOW64 directories. It was loaded by another application. Anaconda was using those libraries instead of the one installed for Anaconda. I eliminated the other versions of the MKL libraries and reinstalled Anaconda. I tried without re-installing and it didn't work.
The 2nd problem was solved with that post you suggested that I found on my own. It seems like Spyder or Ipython is not compatible with the newest version of the MKL_intel_thread.dll library. I downgraded and I'm back in business.
I've tried installing Pandas in many different ways. Currently, it is installed using Anaconda and I have created a virtual environment. Below it shows that Pandas is installed, yet the module still can't be detected. Sorry if this has been answered before. I am still a beginner with Python.
Picture of current Terminal
maybe it doesn't match with the version you use which version you use?You can find it by pressing python in a terminal.Maybe you dont find it in the version you are using!