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

Pluto Notebook Environments and @bind #12

Open
stefanbringuier opened this issue Aug 26, 2022 · 1 comment
Open

Pluto Notebook Environments and @bind #12

stefanbringuier opened this issue Aug 26, 2022 · 1 comment

Comments

@stefanbringuier
Copy link

Nice package, I could see this useful for writing journal articles. I was running into a few issues when converting Pluto.jl notebooks:

  1. The Pluto.jl @bind macro isn't in scope so notebooks with code lines using it throw:
notebooktolatex("MyNotebook.jl",template=:book)
ERROR: LoadError: UndefVarError: @bind not defined
  1. Similarly the environment/package setup within a pluto notebook isn't activated, so these have to be manually added in the working julia environment. Seems like somewhere before this function call:
    plutotolatex(notebook, targetdir, template=template, fontpath=fontpath)
    you should be able to use Pluto.activate_notebook_environment("MyNotebook.jl") to achieve configuring the environment if Pluto is added as a dependency.
@davibarreira
Copy link
Owner

Thanks, I'll check. BTW, if you think you know how to solve this, feel free to send a PR.

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