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

Julia snippets use @printf which is GONE from Julia #21

Open
williamstein opened this issue Apr 9, 2020 · 2 comments
Open

Julia snippets use @printf which is GONE from Julia #21

williamstein opened this issue Apr 9, 2020 · 2 comments
Labels

Comments

@williamstein
Copy link
Contributor

I tried inserting a snippet in a julia notebook (julia 1.4). The very first one I tried was:

s = 0
for i = [1 2 5 100 -1 5]
    s = s + i
    @printf("i = %4d  →  s = %4d\n", i, s)
end

and it didn't work due to @printf being deprecated and removed from the language.

@haraldschilly
Copy link
Contributor

adding using Printf should do it

@haraldschilly
Copy link
Contributor

already done, was just held back

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

No branches or pull requests

2 participants