Re: run Clojurescript via %magic in an iPython notebook?
Thanks Peter -- I'll take a look at this stuff. -Lee > On Aug 16, 2015, at 8:21 PM, Peter Denno wrote: > > Hi, > > I'm interested in this too. However, I have virtually no experience with > Javascript. The place to begin the investigation, I think, is with the new, > more general implementation of iPython notebooks, Jupyter > (https://jupyter.org/). Note that there is even a Clojure kernel for Jupyter; > thus the ability for users to run clojure notebooks. But that's not what I'm > after. Like you, I'm interested in using Clojurescript in the notebook rather > than Javascript as means to add custom capabilities. Since Clojurescript > compiles to Javascript, I don't think getting things to work will be hard. > There are a few jupyter project repositories (very active and probably not > yet stable) for things that seem related. Take a look at the repositories > under the jupyter project, https://github.com/jupyter , but note that many of > these repositories are only a few weeks old. > > Regarding the old implementation of iPython notebooks, there is a bit of a > tutorial on integrating notebooks with Javascript here : > https://jakevdp.github.io/blog/2013/06/01/ipython-notebook-javascript-python-communication/ > I tried it; it partially works. As the author points out, it is obsolete as > of iPython 2.0. The current release of iPython is 4.0.0. So it is useful for > thinking about the basic concepts. > > Reading some of the developer discussion on jupyter, it appears that they are > using a React-like framework called Phospor. This might be good for > Clojurscript development, enabling easier use of figwheel (which I've read > about, heard good things from other developers, but have not myself used yet.) > > Hope that helps, > Peter -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: run Clojurescript via %magic in an iPython notebook?
Hi, I'm interested in this too. However, I have virtually no experience with Javascript. The place to begin the investigation, I think, is with the new, more general implementation of iPython notebooks, Jupyter (https://jupyter.org/). Note that there is even a Clojure kernel for Jupyter; thus the ability for users to run clojure notebooks. But that's not what I'm after. Like you, I'm interested in using Clojurescript in the notebook rather than Javascript as means to add custom capabilities. Since Clojurescript compiles to Javascript, I don't think getting things to work will be hard. There are a few jupyter project repositories (very active and probably not yet stable) for things that seem related. Take a look at the repositories under the jupyter project, https://github.com/jupyter , but note that many of these repositories are only a few weeks old. Regarding the old implementation of iPython notebooks, there is a bit of a tutorial on integrating notebooks with Javascript here : https://jakevdp.github.io/blog/2013/06/01/ipython-notebook-javascript-python-communication/ I tried it; it partially works. As the author points out, it is obsolete as of iPython 2.0. The current release of iPython is 4.0.0. So it is useful for thinking about the basic concepts. Reading some of the developer discussion on jupyter, it appears that they are using a React-like framework called Phospor. This might be good for Clojurscript development, enabling easier use of figwheel (which I've read about, heard good things from other developers, but have not myself used yet.) Hope that helps, Peter On Wednesday, July 22, 2015 at 12:35:36 PM UTC-4, Lee wrote: > > > It is apparently possible to run javascript via "magic" commands in > iPython notebooks ( > https://ipython.org/ipython-doc/3/interactive/magics.html). > > I assume that this would make it possible also to use Clojurescript, but I > don't know what would be involved. I have a fair bit of Clojure experience > but little experience with Clojurescript or Javascript, and I'm new to > iPython. Does anyone have experience with this or interest in looking into > it? > > I am familiar with the wonderful Gorilla REPL, which provides a similar > notebook-like environment for Clojure (http://gorilla-repl.org), but my > question here is in the context of a course in which I'll be teaching > Python. It might be both fun and useful to sneak in a little > Clojure/Clojurescript from time to time. > > Thanks, > > -Lee -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
run Clojurescript via %magic in an iPython notebook?
It is apparently possible to run javascript via "magic" commands in iPython notebooks (https://ipython.org/ipython-doc/3/interactive/magics.html). I assume that this would make it possible also to use Clojurescript, but I don't know what would be involved. I have a fair bit of Clojure experience but little experience with Clojurescript or Javascript, and I'm new to iPython. Does anyone have experience with this or interest in looking into it? I am familiar with the wonderful Gorilla REPL, which provides a similar notebook-like environment for Clojure (http://gorilla-repl.org), but my question here is in the context of a course in which I'll be teaching Python. It might be both fun and useful to sneak in a little Clojure/Clojurescript from time to time. Thanks, -Lee -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.