Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enter in console not functioning properly #3916

Closed
peendebak opened this issue Jan 5, 2017 · 1 comment
Closed

enter in console not functioning properly #3916

peendebak opened this issue Jan 5, 2017 · 1 comment

Comments

@peendebak
Copy link

This is a weird bug related to the python or ipython console (both have the same issue) and packages which take a long time to load. A minimal example is below.

What steps will reproduce the problem?

  1. Create a package testpackage with the following content for __init__.py:
import time
time.sleep(.5)

In my actual code the time.sleep is not present, but many packages are loaded.

  1. Create a script example.py with the following content:
# -*- coding: utf-8 -*-
"""
Created on Thu Jan  5 13:12:31 2017

@author: eendebakpt
"""

#%%

import testpackage

#%%
  1. In a fresh console run the block in the script example.py using ctrl-enter
  2. Go to the console, type 1 and press enter. No output is generated
  3. Press enter once more, the output is shown.

What is the expected output? What do you see instead?

The entire output is this:

>>> import testpackage

>>> 1
>>> 
1
>>> 

I would expect to see a response

>>> import testpackage
>>> 1
1
>>> 

Versions and main components

  • Spyder Version: 3.0.2
  • Python Version: 3.5.2 (anaconda windows 64-bit)
  • Operating system: Windows

Dependencies

jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.5.1 (OK)
nbconvert >=4.0 : 4.2.0 (OK)
numpy >=1.7 : 1.11.1 (OK)
pandas >=0.13.1 : 0.18.1 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.6.0 : 1.2.3 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.5.4 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.9.4-1 (OK)
sphinx >=0.6.6 : 1.4.1 (OK)
sympy >=0.7.3 : 1.0 (OK)

@ccordoba12
Copy link
Member

This is a problem with the Python console, and it's almost a duplicate of issue #1831, so I'm closing it,

Unfortunately, there's no solution to this problem, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants