-
Notifications
You must be signed in to change notification settings - Fork 36
Enabled file magic support for xeus-cpp-lite #261
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #261 +/- ##
=======================================
Coverage 80.72% 80.72%
=======================================
Files 19 19
Lines 970 970
Branches 93 93
=======================================
Hits 783 783
Misses 187 187
|
Hey @tharun571, This is exactly what we were talking about yesterday and you might be interesting in how this works
So yeah I just asked Abhinav to check if it works and I think it does work. This is great actually |
@kr-2003 what I observe is that both our example notebooks (for xeus-cpp and xeus-cpp-lite lack any sort of examples for the %%file magic) Would you like to update the notebooks and add something for the both of them ? |
clang-tidy review says "All clean, LGTM! 👍" |
That being said, Tharun do we have any sort of example notebooks for the LLM work ? Not sure I remember, if no maybe we should add one. Probably you can help us address this ! |
Yeah. I will do that. |
@anutosh491 this makes sense. I tested out XAssist in emscripten but it not seem to work due to the curl functions. Maybe I will test out again. The example is present in the documentation but I will raise a notebook example for general xassist usage as well. |
So yeah unfortunately this is bound to fail cause libcurl has been marked as "won't work" with emscripten (to my knowledge this means it can be done but involves making changes in emscripten that does not aligns with the roadmap the maintainers have). So yeah unfortunately this way might not work. But that being said JupyterLite/AI is up and we might want to think of a way to connect our magic with this !
Ahh yess, I forgot about it. If we have it documentated at one place, let's skip populating the notebook for now. @kr-2003 rather what you can do is ..... you can do something similar, just update these docs https://xeus-cpp.readthedocs.io/en/latest/magics.html on magics adding whatever examples and stating the magic works both on xeus-cpp and lite ! Once done, I can approve the PR and take it in. |
clang-tidy review says "All clean, LGTM! 👍" |
This PR needs tests. |
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.
Looks good
clang-tidy review says "All clean, LGTM! 👍" |
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.
@anutosh491, convinced me offline to move forward with this pull request given it has no tests this one time. We should open an issue to remind us we to add tests at our earlier convenience. We should do no more exceptions in landing code with no tests from this point on.
575ae8c
to
5632eda
Compare
clang-tidy review says "All clean, LGTM! 👍" |
Description
Enabled
%file
magic for xeus-cpp-lite.Key Changes
src/xmagics/os.cpp
while compiling for EMSCRIPTEN inCMakeLists.txt
.file
inpreamble_manager["magics"]
.Screenrecord
file-magic-working-pr.mp4
Type of change