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

Support for generation of Jupyter Notebook #72

Closed
wants to merge 16 commits into from
Closed

Support for generation of Jupyter Notebook #72

wants to merge 16 commits into from

Conversation

tbarbette
Copy link
Owner

No description provided.

Simcornelis and others added 16 commits April 2, 2024 17:29
- Works for tests/tcp/01-iperf.npf test, but not much more testing
This also renames all features to y_FEATURE

So instead of THROUGHPUT the column will be y_THROUGHPUT

That allows to find "outputs"/features easily without any metadata given
to the dataset
- You can't use a global constant in the template to toggle Jinja if statements (settings like log scale, or savefig).
- The variables used are from the dict of the rendering function.
Run with
`python3 npf_run.py --test tests/tcp/04-iperf.npf --notebook results/iperf2/2.0.9/iperf-4-nb.ipynb`
@tbarbette
Copy link
Owner Author

It seems there's a problem with the checks of this branch. Does it work locally ?

Copy link
Owner Author

@tbarbette tbarbette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python file names must be lower case.

Copy link
Owner Author

@tbarbette tbarbette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good overall, just two notes inline



def prepare_notebook_export(datasets: List[tuple], all_results_df: pd.DataFrame, path: str, config):
# SIMTODO: (help) why could there be multiple datasets?
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Simcornelis because there are multiple series

@@ -0,0 +1,77 @@
from npf.types.dataset import convert_to_xyeb
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

graph.py, lower case

@tbarbette
Copy link
Owner Author

@Simcornelis please rebase and fix the errors introduced in the tests :)

@tbarbette
Copy link
Owner Author

New pull request to be done.

@tbarbette tbarbette closed this Aug 28, 2024
@tbarbette tbarbette deleted the simon branch August 29, 2024 14:11
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