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

eval role not working as expected #175

Open
rkansal47 opened this issue Aug 6, 2023 · 6 comments
Open

eval role not working as expected #175

rkansal47 opened this issue Aug 6, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@rkansal47
Copy link

First of all, I want to thank you all for this awesome package! It's made my life a lot easier. I have a minor issue to report regarding the eval role:

{eval}`test`

does not output the value of the test variable but instead just outputs an inline codeblock: test. However, using two `` marks fixes this:

{eval}``test``

Screenshot of issue:

Screenshot 2023-08-06 at 16 19 29

Additional notes

This is using python 3.10, jupyterlab v4.0.4, and jupyterlab-myst v2.0.1.

@rkansal47 rkansal47 added the bug Something isn't working label Aug 6, 2023
@welcome
Copy link

welcome bot commented Aug 6, 2023

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@chubukov
Copy link

I wanted to re-raise this issue because I'm seeing the same behavior with a clean installation (jupyterlab 4.2.4, jupyterlab-myst 2.4.2).

Interestingly, after executing a markdown cell with the double backticks, the single tick syntax starts working.

@srprca
Copy link

srprca commented Jul 28, 2024

For me (not a clean installation, lots of stuff installed from conda-forge in parallel), with JupyterLab 4.2.2, jupyterlab-myst 2.4.2, both single and double backtick syntaxes result in the following behaviour: on the first cell execution, I get inline code block, but on the second execution of the same cell (if I press Ctrl+Enter again) it is rendered to the value of the variable. I wonder if evaluating the cell again happens to work for you?

@agoose77
Copy link
Collaborator

This is unusual! Let me see if i can reproduce it tomorrow.

@srprca
Copy link

srprca commented Jul 29, 2024

Just in case my scenario (only rendering on the second execution) is of interest, here is a small screencast reproducing it with a clean install from pip, JupyterLab 4.2.4, jupyterlab-myst 2.4.2.
Screencast_20240729_075010.webm

@agoose77
Copy link
Collaborator

@srprca thanks for this reproducer! I can easily replicate the problem locally.

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

No branches or pull requests

4 participants