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.

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!

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.

3 participants