8000 As of Julia 1.0, InteractiveUtils needs to be imported for juliaconsole envs · Issue #134 · gpoore/pythontex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

As of Julia 1.0, InteractiveUtils needs to be imported for juliaconsole envs #134

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

Closed
tawheeler opened this issue Oct 28, 2018 · 8 comments
Closed

Comments

@tawheeler
Copy link

Several functions available in the real Julia console are no longer available in normal Julia without importing the InteractiveUtils package.
juliaconsole environments should probably have using InteractiveUtils under the hood.

@tawheeler
Copy link
Author

I tried using \pythontexcustomc{juliacon}{using InteractiveUtils}, but that substitutes every other juliaconsole block with using InteractiveUtils, doubling the number of envs that show up :(

@tawheeler
Copy link
Author

In other news, I expected juliaconcode to execute but not display anything, and it appears to be typesetting. (executing correctly as expected though).

@gpoore
Copy link
Owner
gpoore commented Oct 28, 2018

For using InteractiveUtils, I'd suggest opening an issue in Weave.jl, which is being used to do the actual code execution. I may be able to figure out something in the meantime.

Currently, the juliaconsole is really a hack on top of a code environment, so no other environments work as expected. I was just reminded of that myself in the last few days...I've been adding a console environment for R, to try to get some ideas about how to redesign things to make it simpler to add console environments. I'll see if I can at least get a proper juliaconcode and \juliaconc working.

@tawheeler
Copy link
Author
tawheeler commented Oct 28, 2018

Awesome, thanks!

JunoLab/Weave.jl#151

FWIW, temporary solution is to run the code but hide it off the page:

\begin{textblock*}{\textwidth}(50cm,0cm)
    \begin{juliaconsole}
        using InteractiveUtils
    \end{juliaconsole}
\end{textblock*}

gpoore added a commit that referenced this issue Oct 29, 2018
@gpoore
Copy link
Owner
gpoore commented Oct 29, 2018

pythontexcustomcode and \pythontexcustomc with juliacon, and juliaconcode should now work as expected.

@tawheeler
Copy link
Author

You're awesome! We're incorporating it now. Will close the issue.

@mykelk
Copy link
mykelk commented Jun 5, 2019

Does it make sense to tag a new release at this point? This is pretty nice functionality to have in the version on CTAN.

@gpoore
Copy link
Owner
gpoore commented Jun 5, 2019

@mykelk Yes, a new release on CTAN is long overdue. There's a pull request that will add support for all Jupyter kernels, and I'm hoping to get a new release out once that is merged.

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
0