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

Pb display tracing quiz #7

Open
mlelarge opened this issue Sep 15, 2022 · 1 comment
Open

Pb display tracing quiz #7

mlelarge opened this issue Sep 15, 2022 · 1 comment

Comments

@mlelarge
Copy link

Hi,
here is my pb (screenshot from https://dataflowr.github.io/quiz/python.html):
Screenshot from 2022-09-15 09-13-38

I noticed that in your example (live-demo), the rendering is fine:
Screenshot from 2022-09-15 09-17-24

So there is something I am doing wrong but I do not know what?

code (taken from https://github.com/dataflowr/quiz/blob/main/dl-quiz/src/quiz_01.toml):

[[questions]]
type = "Tracing"
prompt.program = """
def print_11():
    x = 11            
    print(x)          
def print_x_outside():
    print(x)          
x = 10                
def main():
    def print_x_inside():
        print(x)      
    x = 11            
    print_11()        
    print_x_inside()  
    x = 12            
    print_x_outside() 
    print_11()        
    print_x_inside()  
main()
"""
answer.doesCompile = true
answer.stdout = """
11
11
10
11
12"""

Thank you for your help.

@willcrichton
Copy link
Collaborator

I think this is a CSS bug in mdbook-quiz. I will take a look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants