Comments (14)
its widespread :-(
from jupyterlab-celltags.
Glad to hear it. One nice side effect of prepping a new release was that I also cleared out this repo's PR backlog!
from jupyterlab-celltags.
It seemed from the comments in this thread that all we had to do was add default
to the image calls, so I did that in
No idea if that's right or not, because I'm not a javascript developer, but if that's all the fix needs can we get it merged? This extension's UI is broken right now...
from jupyterlab-celltags.
I figured out exactly why this bug happened when it happened. In Jupyterlab v1.1
, in the build system, the Webpack loader for .svg
files changed from url-loader
to raw-loader
. The loader determines the details of the implementation of the require
function. For the url-loader
, this statement:
require('<path-to-svg>/foo.svg')
used to return a string, but for the raw-loader
it returns a module object. The .default
property of that module object is a string with the raw contents of the imported .svg
. That's why you now have to add the .default
to get the import to work correctly.
from jupyterlab-celltags.
I figured out exactly why this bug happened when it happened. In Jupyterlab
v1.1
, in the build system, the Webpack loader for.svg
files changed fromurl-loader
toraw-loader
. The loader determines the details of the implementation of therequire
function. For theurl-loader
, this statement:require('<path-to-svg>/foo.svg')used to return a string, but for the
raw-loader
it returns a module object. The.default
property of that module object is a string with the raw contents of the imported.svg
. That's why you now have to add the.default
to get the import to work correctly.
How can I install the new version of cell tags? I tried installing jupyterlab and jupyterlab/celltags but the icons are still not rendering properly
from jupyterlab-celltags.
@rftw A new release (v0.2.0
) of @jupyterlab/celltags
has now been published that includes the fixes for this issue. If you uninstall/reinstall celltags, it should now be fixed for you
from jupyterlab-celltags.
I've got the same issue!
from jupyterlab-celltags.
@timkpaine ah that's a bummer :-/ I wonder if this is a good opportunity for someone to write a short Discourse post on what the problem is so that other extension developers can discover the fix? I assume it's the same problem across all of them (and I'm guessing it's some kind of dependency version bump issue?)
from jupyterlab-celltags.
@telamonian, I think this is related to jupyterlab/jupyterlab#6034, mind taking a look? It says "Could not load the image" when I hover over the image src below:
from jupyterlab-celltags.
@blink1073 Celltags uses a different means of inlining SVGs than what I worked on. I'm not super familiar with the This relied on the fact that, by convention, require
function or with babel
, so I can't comment on what broke.require
-ing an .svg
would load the whole thing as a raw string. At some point the convention changed (I think ES5 vs ES6), so now you need the
require('<path-to-svg>/foo.svg').default
form that @jebovic mentioned in their original post.
As an alternative, the problem could potentially be fixed using some of the machinery that jupyterlab/jupyterlab#6034 adds. The best way to expose said machinery to external extensions hasn't really been worked out, but this could be a chance to do so. I'll look into it.
from jupyterlab-celltags.
I have this issue too!
from jupyterlab-celltags.
It worked for me, hooray!
from jupyterlab-celltags.
Yup! working now. Thank you for fixing it
from jupyterlab-celltags.
This is awesome, thanks @telamonian!
from jupyterlab-celltags.
Related Issues (18)
- Expand README HOT 4
- Check if tags are an array HOT 2
- notebooktag and search celltags in notebooks
- Broken in JupyterLab 0.34.12 HOT 2
- Make tags persist for markdown cells
- Select all cells with this tag option not available HOT 3
- Absob into lab core? HOT 16
- Looking for input on multiple selection in celltags 1.0 HOT 2
- Hook or event for updating tags programmatically?
- Apply tag to multiple cells at once HOT 1
- CellTags not visible after install HOT 3
- tags not available in cell tools tab in Jlab 1.0.1
- Tag select in TOC
- Run cells with selected tag
- Tags not available HOT 1
- Celltags refactor and design updates HOT 4
- Archiving the repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyterlab-celltags.