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

Print function does not display anything in the notebook #512

Closed
RafailFridman opened this issue Sep 30, 2020 · 4 comments
Closed

Print function does not display anything in the notebook #512

RafailFridman opened this issue Sep 30, 2020 · 4 comments

Comments

@RafailFridman
Copy link

Hello!
I'm on Windows 10, installed Julia on WSL (Ubuntu), and running Pluto notebook via Pluto.run(1234) from Julia REPL. But unfortunately, the print function apparently does not work:
image
Is it supposed to be like this? If yes, then what should I use for printing something out?

@j-fu
Copy link
Contributor

j-fu commented Sep 30, 2020

Yes.
You will see the output in the console window where you started Pluto.
With using PlutoUI you can write

with_terminal() do
    f(123)
end

There is the pending PR JuliaPluto/PlutoUI.jl#40 which adds a height limitation to the output.

The idea behind is to force us to present calculation data in a better way than to just print some ascii strings. For me this is an interesting challenge which may lead to better ways to present results...

@RafailFridman
Copy link
Author

@j-fu Thanks! It will be an interesting challenge indeed :)
By the way, just to not open another issue:
Is it possible to open a Pluto notebook without running all of the code inside of it?

@j-fu
Copy link
Contributor

j-fu commented Sep 30, 2020

See e.g. #298 and JuliaPluto/PlutoUI.jl#46
I would say this is being discussed.
What I am doing for the time being is with PlutoUI:

@bind  go_for_it CheckBox(false)
if go_for_it
    run_next_calculation()
end

@fonsp
Copy link
Owner

fonsp commented Sep 30, 2020

Thanks for the questions!

@fonsp fonsp closed this as completed Sep 30, 2020
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

3 participants