-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Loosen requirement that parsed code is of type Expr #8
Comments
OK, I see. So the problem occurs when the result of I am happy for this to be closed, although, it might be worthwhile updating the README/documentation? |
Haha that sounded like a fun issue where variables are not allowed to be called Yes, let's try to fix or document this? How do you feel about drafting a PR, either with a fix or with updated docs about this limitation? The benefit of splitting PDE into a separate package is that it should be easier to contribute! For context, Pluto always wraps your code in an expressions like julia> nb = Pluto.Notebook([Pluto.Cell("notebook")]);
julia> top = Pluto.updated_topology(nb.topology, nb, nb.cells);
julia> top.codes[only(nb.cells)].parsedcode
:($(Expr(:toplevel, :(#= /Users/fons/.julia/pluto_notebooks/Mini conjecture 66.jl#==#216dca0a-d6ee-11ee-3a06-37883ba6ac2c:1 =#), :notebook))) |
Btw So: |
Also I would love to hear more about your project! 💛 It took a lot of work to factor out PDE into its own package so I'm really happy to hear that it's useful to you! |
Thanks for the quick response and all of your input @fonsp ! I'd be more than happy to contribute a fix or updated documentation 😄. Right now I am in favor of making a code fix, rather than a doc fix. I will think about it some more and let you know. I will have to set aside a bit of time to get everything PR ready, so it will probably take about 1-2 weeks. Is that an OK timeline?
Yes, I am very grateful for the work you have done here (and throughout the PlutoVerse), PDE is just one of the things that I find useful. The project that I am working on is a variable explorer that shows the variables in your session along with their values and dependencies/dependents. The variables are clickable through the There are still a lot of wrinkles to iron out, so it will take time before I could actually share any results, but it is definitely something that I have wanted for a while. |
Yes perfect, take your time! That variable explorer looks really good!! Maybe the new API JuliaPluto/AbstractPlutoDingetjes.jl#13 could be useful for you? |
This will be really useful for people coming from Matlab or R Studio! I often get asked "where is the variable explorer?" 🐙 We are working on a category of featured notebooks called "Pluto for you" on https://github.com/JuliaPluto/featured , starting with JuliaPluto/featured#54 . If this was released as a package we would really like to use it in a "Pluto for Matlab users" notebook! |
I have started using the dependency explorer and the expression explorer for a project of mine and it has been quite fun.
However, I did notice a slight problem, which is that if you have a cell with contents "notebook", then
updated_topology
breaks.MWE:
The text was updated successfully, but these errors were encountered: