Skip to content

[ENH] Shared namespaces for PythonScript widgets#3840

Merged
markotoplak merged 2 commits intobiolab:masterfrom
janezd:pythonscript-share
May 31, 2019
Merged

[ENH] Shared namespaces for PythonScript widgets#3840
markotoplak merged 2 commits intobiolab:masterfrom
janezd:pythonscript-share

Conversation

@janezd
Copy link
Copy Markdown
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
Copy Markdown

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