These are chat archives for spyder-ide/public

21st
Jan 2019
priypath
@priypath
Jan 21 08:52
@CAM-Gerlach I tried the command "conda install ipython=6 ipykernel=4 python=3.6.7" in tensorflow environment in Anaconda prompt but still same issue is coming.
Bernard
@txgoldbear
Jan 21 17:10
How do I run a User defined function in iPython?
CAM Gerlach
@CAM-Gerlach
Jan 21 17:27

@txgoldbear Just like you run any other function in Python. Suppose you have a function

def sum(a, b):
    return a + b

You can run it by simply calling it like any other function, sum(2, 2).

I suggest you consult the Python tutorial and the Introduction to IPython for quicker and more appropriate help, since this is the Gitter chat for the Spyder IDE, not either of those.
CAM Gerlach
@CAM-Gerlach
Jan 21 17:35
@priypath Try conda update pyzmq jupyter_client in your current environment, and if that doesn't work, try creating a clean, isolated environment for Spyder itself with
conda create -n spyder-env python=3.6
activate spyder-env
conda install spyder
set SPYDER_DEBUG=3
spyder --new-instance
Then, under Preferences > Python Interpreter > Use the following Python interpreter set the path to the python.exe of your Tensorflow environment. This is under the Anaconda directory and is either directly under that directory if you installed it in the default base environment, or under envs/TENSORFLOW_ENVIRONMENT_NAME otherwise (you can see the environment name printed to the left of the prompt in the Anaconda prompt.
CAM Gerlach
@CAM-Gerlach
Jan 21 17:41
If it still fails, check the Console and paste any output after the > spyder line (that you typed to launch Spyder) here inside a code block (or a text file, if its longer than like 5-10 lines) which might give us a hint what's happening. Thanks.