-
Notifications
You must be signed in to change notification settings - Fork 25
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
Tag Based Parameters #23
Conversation
introduce new tag based system
added avoidance behaivior for import statements
Hi Sam, is there any particular reason you closed this? I'm open to the idea of using a tag to indicate the parameters cell, I just haven't had time to work on nbparameterise (or a whole lot of other projects) recently. |
It needs some work on the implementation, I also want to make the current
version ignore any cell that contains the word import during cell seeking.
I will reopen with some changes
…On Sat, Apr 9, 2022, 3:09 PM Thomas Kluyver ***@***.***> wrote:
Hi Sam, is there any particular reason you closed this? I'm open to the
idea of using a tag to indicate the parameters cell, I just haven't had
time to work on nbparameterise (or a whole lot of other projects) recently.
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHG3VQNDUZNIJFZETJSCWTVEHIWZANCNFSM5PVIARLQ>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Codecov Report
@@ Coverage Diff @@
## master #23 +/- ##
==========================================
- Coverage 92.08% 89.30% -2.78%
==========================================
Files 3 3
Lines 139 159 +20
==========================================
+ Hits 128 142 +14
- Misses 11 17 +6
Continue to review full report at Codecov.
|
Thanks! I'd rather not skip cells with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - I've gone through and identified a few specific changes to make.
Could you also look at adding a test for using a tagged cell rather than the first code cell?
Nice. I will make some changes today.
…On Thu, Apr 14, 2022, 6:52 AM Thomas Kluyver ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In nbparameterise/code.py
<#23 (comment)>
:
> + if 'metadata' in cell:
+ if 'tags' in cell['metadata']:
+ if any([i.lower()=="parameters" for i in cell['metadata']['tags']]):
Oh, one more thought: rather than lots of if statements, it might be
neater to do something like this:
tags = cell.get('metadata', {}).get('tags', [])
Up to you, though. 🙂
—
Reply to this email directly, view it on GitHub
<#23 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHG3VTIVYYAI7NPGUG3Q4LVE72HJANCNFSM5PVIARLQ>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this code is ready for review once again.
please let me know if there is anything else needed on this |
Thanks, and sorry it took me so long to get to this. I was moving house around the time you were doing this, and then I forgot about it. I've rebased your changes and made a few further ones as PR #27. |
Im using it and its wonderful, this version supports putting the tag "parameters" on a cell to select it.