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

fix: vscode fails to load scripts from _solara/cdn #763

Merged

Conversation

iisakkirotko
Copy link
Collaborator

Fixes #761.

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @iisakkirotko and the rest of your teammates on Graphite Graphite

We fetch from an online cdn instead. Implements the same method as in 7238a37 for vegalite for other vue template components.
@iisakkirotko iisakkirotko force-pushed the 08-30-fix_vscode_fails_to_load_scripts_from__solara_cdn branch from 25d327b to 8b48dd7 Compare August 30, 2024 13:37
@@ -76,6 +76,12 @@ def _markdown_template(
html,
style="",
):
cdn = r"null"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
cdn = r"null"
cdn = None

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Let me know if you agree with my solution - I changed cdn to None by default, and instead filter it out later:

        this.cdn = """
        + (rf"'{cdn}'" if cdn is not None else r"null")
        + r""";

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, this makes more sense 👍

solara/components/markdown.py Outdated Show resolved Hide resolved
solara/components/markdown_editor.vue Outdated Show resolved Hide resolved
Co-Authored-by: maartenbreddels <maartenbreddels@gmail.com>
@maartenbreddels maartenbreddels merged commit a5f9a05 into master Aug 30, 2024
25 checks passed
@maartenbreddels
Copy link
Contributor

Related to #488

@maartenbreddels
Copy link
Contributor

And #480

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.

solara_cdn is broken in vscode
2 participants