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

Add custom REPL prompt #176

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jonniedie
Copy link

First shot at a version of a custom REPL prompt that allows Julia variable interpolation but still prints outputs based on #175. Using do_mat_str for this, so had to add a couple of branches in there to suppress double printing of ans while still allowing of for regular output printing.

@jonniedie
Copy link
Author

Also, I changed the prompt from >> to > to be more in line with things like ]. I don't have strong feelings either way with this, it just seemed a little more clear.

@jonniedie
Copy link
Author

Hm, don't love this, though:

julia> using MATLAB

julia> a = rand(5);

>> $a

matlab_jl_1 =

    0.7924
    0.0907
    0.2489
    0.6021
    0.0827

@musm
Copy link
Collaborator

musm commented Sep 16, 2020

Hmm, right. Might have to tweak the parser.

@Nikdwal
Copy link

Nikdwal commented Jun 9, 2021

Hi, I'm really interested in this. May I ask why it hasn't made its way into 'master' yet? I also implemented a REPL in my own fork, but this seems to work just as nicely.

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

Successfully merging this pull request may close these issues.

3 participants