-
Notifications
You must be signed in to change notification settings - Fork 10
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
chore: convert examples to notebook #368
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
2482a7a
to
5319e16
Compare
FL-1185 Convert examples to notebooks in documentation
ContextThe examples are currently written in python file, in RST, to be build by sphinx in the expected shape. One of the main reason why we don't use notebooks is because it is impossible to review directly on Github. But ReviewNB allows to review efficiently that kind of file, and is free to use for OS project. The integration with substra-documentation is already up and running. The advantage of using nb would be:
SpecificationConvert all examples in notebooks. Use review NB to review the PRs. Adapt Acceptance criteria |
1062530
to
e0f57d5
Compare
/e2e --tests doc |
End to end tests: ✔️ SUCCESS |
f8a4b6f
to
2914ef3
Compare
2914ef3
to
ce14296
Compare
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.
Impressive PR, nicely done 😮
Glad to be rid of sphinx-gallery
, and good job on bringing Binder back from the dead.
Reviewing the notebooks separately since I'm not sure how NBreview will interact with comments here.
@@ -1 +1 @@ | |||
python-3.8 | |||
python-3.10 |
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.
🎉
docs/environment.yml
Outdated
- defaults | ||
- conda-forge | ||
dependencies: | ||
- python=3.8 |
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.
🧐
do we want python 3.10 here too?
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.
good catch, this is a leftover when I tried different config to make it work (the key was to select mambaforge-22.9
in the rtd.yaml
@@ -0,0 +1,725 @@ | |||
{ |
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.
@@ -0,0 +1,568 @@ | |||
{ |
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.
@@ -0,0 +1,797 @@ | |||
{ |
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.
Line #3. dependencies = Dependency(pypi_dependencies=["numpy==1.23.1", "torch==1.11.0", "scikit-learn==1.1.1"])
1.11? maybe we want to update to 1.13.1 (at least until we bump it to 2+)
Reply via ReviewNB
@@ -0,0 +1,698 @@ | |||
{ |
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.
Compute Plan Builder
and Decorator
are not displaying correctly, for some reasons
Reply via ReviewNB
@@ -0,0 +1,679 @@ | |||
{ |
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.
Ok, the missing coma is probably on all notebooks, given that this paragraph has been copy-pasted everywhere
Reply via ReviewNB
@@ -0,0 +1,1113 @@ | |||
{ |
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.
@@ -0,0 +1,1113 @@ | |||
{ |
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.
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
ce14296
to
eaf5a32
Compare
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
eaf5a32
to
b85caae
Compare
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Description
For those who will have the courage to review this PRs... Thank you 🙏
Changes:
docs/source/examples
to be visible when building the documentationcloses FL-1185