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

Tag Based Parameters #23

Closed
wants to merge 16 commits into from
Closed

Tag Based Parameters #23

wants to merge 16 commits into from

Conversation

sam2332
Copy link
Contributor

@sam2332 sam2332 commented Mar 1, 2022

Im using it and its wonderful, this version supports putting the tag "parameters" on a cell to select it.

@sam2332 sam2332 closed this Apr 8, 2022
@takluyver
Copy link
Owner

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.

@sam2332
Copy link
Contributor Author

sam2332 commented Apr 9, 2022 via email

@sam2332 sam2332 reopened this Apr 10, 2022
@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #23 (c821e33) into master (5f1767a) will decrease coverage by 2.77%.
The diff coverage is 72.72%.

❗ Current head c821e33 differs from pull request most recent head 4e864e3. Consider uploading reports for the commit 4e864e3 to get more accurate results

@@            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     
Impacted Files Coverage Δ
nbparameterise/code.py 88.31% <72.72%> (-6.43%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f1767a...4e864e3. Read the comment docs.

@takluyver
Copy link
Owner

Thanks!

I'd rather not skip cells with import in the code. I can see why you want that, but 'first code cell' is a nice easy rule to understand, and I don't want to make it more complex. The option you're adding to use a 'parameters' tag gives some flexibility, and I'm also working on replacing the parameters without discarding other code in the same cell (see PR #19), which would mean you could have your parameters and imports in the same cell if you wanted.

Copy link
Owner

@takluyver takluyver left a 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?

README.rst Outdated Show resolved Hide resolved
examples/Currency Conversion display.ipynb Outdated Show resolved Hide resolved
examples/Currency Conversion display.ipynb Outdated Show resolved Hide resolved
examples/Currency Conversion display.ipynb Outdated Show resolved Hide resolved
nbparameterise/code.py Outdated Show resolved Hide resolved
nbparameterise/code.py Outdated Show resolved Hide resolved
nbparameterise/code.py Outdated Show resolved Hide resolved
nbparameterise/code.py Outdated Show resolved Hide resolved
nbparameterise/code.py Outdated Show resolved Hide resolved
@sam2332
Copy link
Contributor Author

sam2332 commented Apr 14, 2022 via email

Copy link
Contributor Author

@sam2332 sam2332 left a 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.

@sam2332
Copy link
Contributor Author

sam2332 commented Apr 22, 2022

please let me know if there is anything else needed on this

@sam2332 sam2332 requested a review from takluyver June 17, 2022 20:12
@takluyver
Copy link
Owner

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.

@takluyver takluyver closed this Feb 27, 2023
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.

2 participants