Previous and next button move their location

If I am right, the result is the same

1 Like

Make a call to display_current_graph(on) after the two functions for next_quote and previous_quote. Commenting is correct.

But also call this function

1 Like

The call comes above:

image

1 Like

I want you to remove it from there and be made after the previous and next button function definitions because I want the screen to reflext the most recent df.

Sorry to have you do so many things. This is an iterative process only…

1 Like

When I comment display_current_graph(on) after the two functions for next_quote and previous_quote graphs disappear so this is probably the difference between your code and mine…

1 Like

Where does the function pk_graph get called?

Can you include line numbers in your screenshots please?

1 Like

I have created in my github something very similar to what I have and I reproduce the error, I think it will be easier for you to work on that code and find the problem. This is my exact situation…GitHub - PARODBE/streamlit_figures

1 Like

BTW, with respect to your question I have pk_graph at the end of the app:

image

However, I think that the result is not dependent of this because in the app.py example that I built in my git I have the same error without a multipage app…

1 Like

Hey @PARODBE

Good Morning! Raised a PR on the github repo with a possible solution. Can you please check and see if it suits your needs?

Thanks,
Vinayak.

1 Like

Good morning @ElisonSherton, it works perfect! Thanks a million! What was really the problem? It wasn’t easy to solve, was it? hehe Thanks again!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.