Skip to content

Conversation

@tguilment
Copy link

I modified the base.css file adding extra CSS code to force the display of Myst links to appears light blue.
To install the fix in you python virtual environment, I followed these steps:

I assume that you have a Python virtual environment with Jupyterlab and pip installed in it.

1 - Download or git clone my jupyterlab-myst fork repository https://github.com/tguilment/jupyterlab-myst (you can also get the original repository and do the changes yourself at https://github.com/jupyter-book/jupyterlab-myst)

2 - The goal will be to:
i) If not done, change the jupyterlab-myst/style/base.css file adding the theme you want at the end:

/* Hard-code MyST links to light blue */
.jp-ThemedContainer .myst :where(a),
.jp-ThemedContainer .myst :where(a):visited {
  color: #0074d9 !important;      /* bright blue   */
  text-decoration: none; /*underline !important; */
}

.jp-ThemedContainer .myst :where(a):hover {
  text-decoration: none; /*underline !important; */ /* keep underline on hover        */
}

ii) Once this is done, activate your python virtual environment et cd inside jupyterlab-myst
iii) Install the package with pip install -e . (with . the current folder path to be jupyterlab-myst)
iv) Create dependencies and build the extension using the jlpm tool (should be already working when pip and jupyterlab are installed)

jlpm install
jlpm build

v) Update the Jupyterlab extension by executing jupyter labextension develop . --overwrite

Now, when running Jupyterlab and refreshing the page, you should have light blue links.

Let me know how it goes.

Hope that helps.

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch tguilment/jupyterlab-myst/main

@rowanc1 rowanc1 requested a review from agoose77 July 15, 2025 04:38
@rowanc1
Copy link
Member

rowanc1 commented Jul 15, 2025

Thanks @tguilment for your PR!! @agoose77 do you think you could take a look at this? We should get another release out of the extension!!

@rowanc1 rowanc1 added the bug Something isn't working label Jul 15, 2025
@nthiery
Copy link

nthiery commented Aug 16, 2025

Thanks @tguilment for your PR!! @agoose77 do you think you could take a look at this? We should get another release out of the extension!!

It would be nice indeed to have this issue fixed and a new release of jupyterlab-myst -- including the recent myst improvements like inline options -- before the semester starts (early September). Thanks in advance!

@nthiery
Copy link

nthiery commented Sep 7, 2025

Pleeeeease :-) Not distinguishing links from the rest of the text is a serious burden for our novice students (and even for the others).

@tguilment
Copy link
Author

@nthiery As a quick, easy fix, you can use the jupyterlab==4.0.13 version. With UV Python manager using uv add --dev "jupyterlab==4.0.13" works well for me when collaborating.

@krassowski
Copy link

I wish JupyterLab 4.0.x would not need to be installed, it is for example vulnerable to GHSA-9q39-rmj3-p4r2. Any chance we could get this merged and released?

@fperez
Copy link
Contributor

fperez commented Oct 3, 2025

Thank you so much!!!

CC @ryanlovett so we can deploy this as soon as it's merged/released, as we need it for the hub like yesterday ;)

@fperez
Copy link
Contributor

fperez commented Oct 15, 2025

Quick check on the chance of this one going out with a 2.4.3 release? This bug is seriously painful when teaching...

@agoose77
Copy link
Collaborator

I won't get this into the next release, because technically that will be an "update all the deps and get the thing out the door".

But, I'm making that release in part to make it possible to work on this and ship it, so yes, it will be along shortly!

I'm blocked on some upstream stuff, but it shouldn't be long...

@fperez
Copy link
Contributor

fperez commented Oct 15, 2025

Understood @agoose77 , no worries - I so appreciate all the work you're doing on the project, so keep rocking!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants