vlang / vsl

V library to develop Artificial Intelligence and High-Performance Scientific Computations
https://vlang.github.io/vsl
MIT License
351 stars 44 forks source link

Removing python for vsl.plot - WIP #173

Closed ulises-jeremias closed 11 months ago

ulises-jeremias commented 11 months ago

Summary by CodeRabbit

New Features:

Improvements:

Refactor:

These changes enhance the software's intuitiveness and flexibility, making it easier for users to create and customize their data visualizations.

coderabbitai[bot] commented 11 months ago

Rate Limit Exceeded

@ulises-jeremias has exceeded the limit for the number of files or commits that can be reviewed per hour. Please wait 13 minutes and 11 seconds before requesting another review.

How to resolve this issue? After the wait time has elapsed, convert this PR to a draft and then mark it as ready for review again to re-trigger the review. Alternatively, you can push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.
How do rate limits work? CodeRabbit enforces hourly rate limits for each developer per repository. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.
Commits Files that changed from the base of the PR and between 730fb50923033f092c9f463c7c44cac67e3d4b13 and e4587a6c9cf693bca43a2754ffd66463e7a12dcd.

Walkthrough

This pull request introduces significant refactoring to the plot module, enhancing its modularity and flexibility. It introduces specific trace type functions, renames existing functions for clarity, and updates the server-side rendering. The changes also propagate to the examples and machine learning modules, aligning them with the updated plot module.

Changes

File(s) Summary
plot/show.v Renamed plot to plotly, introduced App struct, added port constant, replaced vsl.errors with vweb, and updated show function to use vweb.run.
plot/plot.v Introduced new functions for adding different types of traces, renamed existing functions for clarity, and improved modularity.
plot/trace.v Added TraceType enum, updated XType, YType, ZType to type aliases, introduced new structs for specific trace types, and updated Trace to be a sum type.
examples/.../main.v Updated to use plot.Plot.new() instead of plot.new_plot(), replaced plt.add_trace() with specific trace type calls, and replaced plt.set_layout() with plt.layout().
ml/kmeans.v, ml/knn.v, ml/linreg.v Updated plot() method to align with the refactored plot module.
plot/plot_test.v Updated test cases to align with the refactored plot module.
examples/io_h5_dataset/main.v, examples/io_h5_relax/main.v Updated import statement from vsl.io.h5 to vsl.inout.h5.

🐇 "In the land of code, where the shadows lie, A rabbit hopped, its gaze held high. With every leap, a change was made, In the realm of plots, a new foundation laid. Now scatter, pie, and heatmap thrive, In the garden of traces, they come alive. So let's celebrate this grand revision, A leap forward in our coding mission!" 🎉


CodeRabbit is currently paused and will not perform reviews. To resume CodeRabbit reviews, enter @coderabbitai resume

Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - Mention `@coderabbitai` in any *review comment* for bot assistance. - Note: Review comments are made on code diffs or files, not on the PR overview. ### Pause Incremental Reviews - Insert `@coderabbitai: ignore` in the PR description to halt the bot's ongoing reviews. Remove the line to resume. - Additionally, enter `@coderabbitai pause` to halt the bot's ongoing reviews as any issue or review comment. To resume reviews, enter `@coderabbitai resume` as any issue or review comment.
ulises-jeremias commented 11 months ago

@coderabbitai pause

ulises-jeremias commented 11 months ago

@coderabbitai pause

ulises-jeremias commented 11 months ago

https://github.com/vlang/vsl/issues/115 https://github.com/vlang/vsl/issues/78 https://github.com/vlang/vsl/issues/76

related