'Issues with IPython magics [TerminalIPythonApp] WARNING unrecognised alias

I recently got my code to function and was so proud of myself for figuring out the challenges experienced then. However, I reviewed some stuff in connecting with a change in the way Python Via Spyder Operates.

My google research lead me to

from IPython import get_ipython
get_ipython().magic('who print')

but that did not work and it's frustrating as I am not certain how to interpret the error dispensed in Spyder.

Another search mentioned changing the .py extension of the file to a .ipy files. Well I tried that for the single file and then all of the files that's being call and that did not work.

Please assist me to understand how to implement the solution I found as this is generating loads of errors now.

python version 3.9

My code:

!pip install --upgrade pip 
!pip install --upgrade tensorflow
!pip install package-name
!pip install --upgrade tfLearn
!pip install --upgrade tqdm
!pip install --upgrade keras
!pip install --upgrade sklearn
!pip install --upgrade numpy==1.19.2
!pip install PyQt5==5.9.2
!pip install --upgrade matplotlib
!pip install --upgrade importlib
!pip install scikit-plot
!pip install --upgrade pydot
!pip install --upgrade graphviz
!pip install --upgrade pyparsing
!pip install --upgrade argparse
!pip uninstall opencv-python
!pip install opencv-python
!pip3 install --upgrade opencv-python
!pip install --upgrade python-ffmpeg
!pip install pyperclip
!pip install geopy
!pip install plotly
!pip install logstash

!IPython 3dcnn9.py --batch 120 --epoch 150 --videos ./dataset/ --nclass 8 --output 3dcnnresult/ --color True --skip False --depth 12

    runfile('/Users/symbadian/opt/3DCNNtesting/packages.py', wdir='/Users/symbadian/opt/3DCNNtesting')

WARNING: This is not valid Python code. If you want to use IPython magics, flexible indentation, and prompt removal, we recommend that you save this file with the .ipy extension.

[TerminalIPythonApp] WARNING | Unrecognized alias: 'batch', it will have no effect.
[TerminalIPythonApp] WARNING | Unrecognized alias: 'epoch', it will have no effect.
[TerminalIPythonApp] WARNING | Unrecognized alias: 'videos', it will have no effect.
[TerminalIPythonApp] WARNING | Unrecognized alias: 'nclass', it will have no effect.
[TerminalIPythonApp] WARNING | Unrecognized alias: 'output', it will have no effect.
[TerminalIPythonApp] WARNING | Unrecognized alias: 'color', it will have no effect.
[TerminalIPythonApp] WARNING | Unrecognized alias: 'skip', it will have no effect.
[TerminalIPythonApp] WARNING | Unrecognized alias: 'depth', it will have no effect.

Regarding above, ghit hub suggested downgrading from 3.9.11 and 8.11 to previous python 3.8, Ipython 7.32.0. That did nothing, it's frustrating when these errors pop ups, I know I am the one lacking the understanding. How do I gain this understanding? read, review google, check the forums and hope some one can assist. I am running the same operation on my old mac python 3.8.2 and ipython 7.22.0 and it's working fined. This has been evading me months now. I think it's a packages issue, I would really appreciate a professionals input at this stage, please

((SOLVED IT CHECK YOUR PACKAGE COMPATIBILITY, SPYDER IS NOT SHOWING THE ERRORS!! THIS WAS SOLVED VIA THE TERMINAL AS SPYDER SEEMED PROBLEMATIC))



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source