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
Generated images don't display due to an extra space in URL #8484
Comments
You can narrow down who is responsible for the space by looking at the websocket messages in the browser debugger. There will (likely) be a websocket message for displaying that image - probably easiest to open the browser js console, go to the network panel and filter for websockets, then refresh the page to get the websocket connections to show up. Then find the websocket connection for the correct kernel and search for the filename (like Does that websocket message path contain a space before |
Note that it might also be a problem with the Scala kernel... |
I did not see any relevant WebSocket connection, but maybe you can find something useful from these screenshots?
I'm not familiar with the architecture of Jupyter Notebook/Lab, but I guess if there is a bug in the Scala kernel, then Jupyter Notebook would not have behaved correctly? |
That step about refreshing in my instructions is important. The network panel only shows connections since it was opened, so it needs to be opened before the kernel websocket connection is made. |
Oh, on the other hand, you can just inspect the notebook itself as a text file. Save the notebook, then right-click on it in the file-browser and open it with the text editor. Search for that filename, and see if there is a space there. |
Here is the step to reproduce the screenshots
I have double-checked that there are no WebSocket connections related to the images. The only You can see extra spaces in the notebook file, though.
|
If the notebook file has spaces, then almost surely the kernel or the library generating the files is the issue. We would know for sure if we could see the websocket messages. |
To see the websocket messages we are looking for, open the browser console, then open the notebook and run the cells. |
Hi, I'm not sure what you mean by "open the browser console, then open the notebook and run the cells". As soon as I type I tried this, but still no luck:
|
Sorry for the confusion. The panel needs to be open when the kernel starts (to show the websocket connection) and also when the message is sent (when the cells are run). So I think if you follow the steps above except don't refresh in step 6, the websocket message with the filename will still be in your network panel. Opening the panel before step 4 is accomplishing the goal of getting the websocket connection visible. I think refreshing in step 6 is clearing the messages from the debugger. |
Did you search those websocket connection messages for the filename? Click on Messages on the right, and you should be able to filter the messages for a string, like the filename. |
Description
I am running the file
0_demo.ipynb
from freechipsproject /chisel-bootcamp, which uses the Scala kernel. The problems is that generated images cannot display correctly. For example:
Inspect Element gives the following HTML output
Apparently the path
files/build
is mistyped asfiles/%20build
. The bug doesn't manifest itself when I use Jupyter Notebook. I'm not sure if it's a bug of Jupyter Lab or this repository.This issue is cross-posted at chisel-bootcamp.
Reproduce
Follow the Local Setup Instructions of chisel-bootcamp. I am on macOS.
Expected behavior
I can see the generated images.
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: