Python console doesn't get updated (with PyCharm)

Bubble

I am new at Python, and I am using PyCharm. I have trying to use the console to interactively check what my functions do, but once the functions have been loaded, they don't get updated. More precisely :

Given a set of functions in "functions.py", I write in the the console "from functions import *" This works at first, but when the functions in "functions.py" are changed, the console doesn't see it, even if I relauch the "import" command.

Any idea of what I shoud do?

Thanks

Nobilis

Reload your module by doing reload(functions).

Then do the from functions import * one more time (as you're importing everything).

Then it will work.

Alternatively, if you're importing just the module:

import functions 

and calling it from the module namespace:

functions.my_function()

then only reload(functions) is sufficient (no need to call import again).

I've tested all of that on Python 2.7.6 in an interpreter session.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

TextView doesn't get updated

From Dev

'\b' doesn't print backspace in PyCharm console

From Dev

Combox doesn't get updated in WPF

From Dev

Sorting QtTableModel - QTableView doesn't get updated

From Dev

React context value doesn't get updated

From Dev

Hibernate : Table doesn't get updated

From Dev

UI doesn't get updated sometimes in Android

From Dev

The combobox SelectedItem doesn't get updated in WPF

From Dev

Fixed background doesn't get updated on Android

From Dev

View model doesn't get updated to DataContext

From Dev

Computed property doesn't get updated on the frontend

From Dev

Variable doesn't get updated in if else statement

From Dev

PyCharm doesn't identify 'config', Pycharm 2020.3.3 Python 3.9

From Dev

View doesn't get updated after a $http.get() response

From Dev

re-importing a module into a pycharm console doesn't update the code unless i delete/restart the console

From Dev

dom-if doesn't get updated in dom-repeat

From Dev

ng-model doesn't get updated in directive template

From Dev

$scope value doesn't get updated in other controller

From Dev

AngularJS $http Service Results in Success But Database Doesn't Get Updated

From Dev

Ember Binded Controller Computed Property Doesn't get Updated

From Dev

Height doesn't get updated when resizing the window

From Dev

Why doesn't environment variable get updated in cmd without restart?

From Dev

View doesn't get updated when item is added to array

From Dev

Why my boolean variable doesn't get updated on other classes?

From Dev

Variable doesn't get updated in the function of Batch file

From Dev

Microsoft Edge doesn't get updated with Windows updates

From Dev

WPF DataGridCheckBoxColumn's state doesn't get updated from the ViewModel

From Dev

View doesn't get updated when using ng-if in angular

From Dev

View doesn't get updated until the second time loaded

Related Related

  1. 1

    TextView doesn't get updated

  2. 2

    '\b' doesn't print backspace in PyCharm console

  3. 3

    Combox doesn't get updated in WPF

  4. 4

    Sorting QtTableModel - QTableView doesn't get updated

  5. 5

    React context value doesn't get updated

  6. 6

    Hibernate : Table doesn't get updated

  7. 7

    UI doesn't get updated sometimes in Android

  8. 8

    The combobox SelectedItem doesn't get updated in WPF

  9. 9

    Fixed background doesn't get updated on Android

  10. 10

    View model doesn't get updated to DataContext

  11. 11

    Computed property doesn't get updated on the frontend

  12. 12

    Variable doesn't get updated in if else statement

  13. 13

    PyCharm doesn't identify 'config', Pycharm 2020.3.3 Python 3.9

  14. 14

    View doesn't get updated after a $http.get() response

  15. 15

    re-importing a module into a pycharm console doesn't update the code unless i delete/restart the console

  16. 16

    dom-if doesn't get updated in dom-repeat

  17. 17

    ng-model doesn't get updated in directive template

  18. 18

    $scope value doesn't get updated in other controller

  19. 19

    AngularJS $http Service Results in Success But Database Doesn't Get Updated

  20. 20

    Ember Binded Controller Computed Property Doesn't get Updated

  21. 21

    Height doesn't get updated when resizing the window

  22. 22

    Why doesn't environment variable get updated in cmd without restart?

  23. 23

    View doesn't get updated when item is added to array

  24. 24

    Why my boolean variable doesn't get updated on other classes?

  25. 25

    Variable doesn't get updated in the function of Batch file

  26. 26

    Microsoft Edge doesn't get updated with Windows updates

  27. 27

    WPF DataGridCheckBoxColumn's state doesn't get updated from the ViewModel

  28. 28

    View doesn't get updated when using ng-if in angular

  29. 29

    View doesn't get updated until the second time loaded

HotTag

Archive