You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hope this message finds you well. Currently, I've been using the Spyder software for a couple of days but have been having some teething issues with the console.
(1) It seems that unless the print() function is explicitly used, e.g. print(float(3.9)) outputs for codes such as float(3.9) do not appear on the console.
(2) Codes that require user inputs, such as the code below, do not appear on the console. Specifically, neither the prompt for user inputs nor the corresponding final output appears.
Could you kindly advise on the above please?
Best regards,
Stacey
Sample code for point (2)
an_letters = "aefhilmnorsxAEFHLLMNORSX"
word = input("I will cheer for you! Enter a word: ")
times = int(input("Enthusiasm level (1-10): "))
i = 0
for char in word:
if char in an_letters:
print("Give me an " + char + "! " + char)
else:
print("Give me a " + char + "! " + char)
print("What does that spell?")
for i in range(times):
print(word,"!!!")
Traceback
Traceback (most recent call last):
File "C:\Users\subli\anaconda3\lib\site-packages\qtconsole\base_frontend_mixin.py", line 138, in _dispatch
handler(msg)
File "C:\Users\subli\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 278, in _handle_input_requestreturnsuper(DebuggingWidget, self)._handle_input_request(msg)
File "C:\Users\subli\anaconda3\lib\site-packages\qtconsole\frontend_widget.py", line 512, in _handle_input_requestself._readline(msg['content']['prompt'], callback=callback, password=msg['content']['password'])
File "C:\Users\subli\anaconda3\lib\site-packages\qtconsole\console_widget.py", line 2422, in _readlineself._show_prompt(prompt, newline=False, separator=False)
TypeError: _show_prompt() got an unexpected keyword argument 'separator'
Thanks for reporting. You need to update Spyder to fix this error.
To do that, please close Spyder, open the Anaconda Prompt (on Windows) or a terminal (on macOS or Linux) and run there the commands mentioned in our documentation.
Description
What steps will reproduce the problem?
Dear Spyder Help,
Hope this message finds you well. Currently, I've been using the Spyder software for a couple of days but have been having some teething issues with the console.
(1) It seems that unless the print() function is explicitly used, e.g. print(float(3.9)) outputs for codes such as float(3.9) do not appear on the console.
(2) Codes that require user inputs, such as the code below, do not appear on the console. Specifically, neither the prompt for user inputs nor the corresponding final output appears.
Could you kindly advise on the above please?
Best regards,
Stacey
Sample code for point (2)
an_letters = "aefhilmnorsxAEFHLLMNORSX"
word = input("I will cheer for you! Enter a word: ")
times = int(input("Enthusiasm level (1-10): "))
i = 0
for char in word:
if char in an_letters:
print("Give me an " + char + "! " + char)
else:
print("Give me a " + char + "! " + char)
print("What does that spell?")
for i in range(times):
print(word,"!!!")
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: