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

Get "Unable to render code block" when copying from ipython notebook on Github #2060

Closed
tshu-w opened this issue Dec 19, 2023 · 1 comment
Closed

Comments

@tshu-w
Copy link

tshu-w commented Dec 19, 2023

Error details

When I select some text and press cmd-c (copy) in the notebook, I got "Unable to render code block", this issue also happen on Safari.

Screenshot 2023-12-19 at 14 45 52

SurfingKeys: 1.15.0

Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0

URL: https://github.com/stanfordnlp/dspy/blob/main/examples/knn.ipynb

Context

Please replace this with a description of how you were using SurfingKeys.

@brookhong
Copy link
Owner

Basically this is an issue of github, and we cannot fix it in the extension context.

You can just run below code in the frame of https://notebooks.githubusercontent.com with Inspect tool to reproduce the issue.

top.postMessage({}, "https://github.com/")

A workaround solution is to disable Surfingkeys on https://notebooks.githubusercontent.com.

  1. Open https://notebooks.githubusercontent.com/ in a new tab.
  2. Press Alt-s to disable Surfingkeys on the domain.

@tshu-w tshu-w closed this as completed Dec 21, 2023
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

No branches or pull requests

2 participants