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

[ENH] Shared namespaces for PythonScript widgets #3840

Merged
merged 2 commits into from
May 31, 2019

Conversation

janezd
Copy link
Contributor

@janezd janezd commented May 31, 2019

Issue

Fixes #3820.

Description of changes

PythonScript widgets on the same canvas now share namespaces. Consequently, namespaces are no longer cleared after execution and garbage is not collected.

This PR also fixes a glitch in the base widget test class.

Includes
  • Code changes
  • Tests
  • Documentation

@janezd janezd changed the title Pythonscript share Shared namespaces for PythonScript widgets May 31, 2019
@codecov
Copy link

codecov bot commented May 31, 2019

Codecov Report

Merging #3840 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3840      +/-   ##
==========================================
+ Coverage   84.77%   84.77%   +<.01%     
==========================================
  Files         374      374              
  Lines       69172    69197      +25     
==========================================
+ Hits        58640    58662      +22     
- Misses      10532    10535       +3

@markotoplak markotoplak changed the title Shared namespaces for PythonScript widgets [FIX] Shared namespaces for PythonScript widgets May 31, 2019
@markotoplak markotoplak changed the title [FIX] Shared namespaces for PythonScript widgets [ENH] Shared namespaces for PythonScript widgets May 31, 2019
@markotoplak markotoplak merged commit 61bd228 into biolab:master May 31, 2019
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

Successfully merging this pull request may close these issues.

Using a function in separate Python Scripts
2 participants