scicloj / notespace

using your namespace as a notebook
Eclipse Public License 2.0
148 stars 10 forks source link

adding a `print to echo area` method of emacs-config.el #62

Open zcaudate opened 3 years ago

zcaudate commented 3 years ago

functions like notespace/init-with-browser and notespace/init https://github.com/scicloj/notespace/blob/master/emacs-config.el#L32

could be better off with printing being in the echo area as opposed to at the cursor.

removing the callback will suffice.

(defun notespace/cider-interactive-eval (code)
  (interactive)
  (message code)
  (cider-interactive-eval
   code
   nil
   nil
   nil))
daslu commented 3 years ago

Hi, @zcaudate !

Many thanks, sounds good, I haven't known about these Emacs subtleties.

Would you look to submit a PR. I can also push this -- whichever you prefer.

zcaudate commented 3 years ago

I haven't tried out all of notespace's features so it may be better that you tinker with the config to figure out which methods you may prefer to print at cursor and which you want to print on the echo area.

Watching how you use it on some of the videos, it feel more natural than a pure jupyter style notebook workflow as you're building the notebook as opposed to programming within it. It's really well done.

Are nested notespace supported? - ie, putting one notespace inside another one (like latex)

zcaudate commented 3 years ago

is there a way to display animations like these?

https://nullprogram.com/blog/2020/04/30/

daslu commented 3 years ago

Thanks, @zcaudate. I'll do the changes as you suggested.

There is some experimental support for animations using Quil -- see the tutorial: https://scicloj.github.io/notespace/doc/notespace/v3-experiment1-test/index.html

daslu commented 3 years ago

There isn't yet a notion of nested notespaces. :)

zcaudate commented 3 years ago

sweet. it's very cool.

are all the js dependencies loaded at the very beginning or are they injected depending on the note that is sent?

daslu commented 3 years ago

Currently at Notespace, the client-side is one compiled bundle of dependencies.

Upcoming tools such as Goldly and Clerk are separating client-side dependencies into modules so that some of them can load lazily.

If Notespace continues to exist (which may not be necessary if Goldly or Clerk actually fulfills all its goals better), then it should adopt this approach.

zcaudate commented 3 years ago

sweet. thanks for that.