Re: [sage-support] import

2021-09-26 Thread slelievre
A web search for [ import ipynb ]

  https://duckduckgo.com/?q=import+ipynb 

also reveals tools such as ipynb and import-ipynb,
which can be pip-installed.  --Samuel

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e9489c5e-9aa2-4e42-889a-45469eea7b06n%40googlegroups.com.


Re: [sage-support] import

2021-09-26 Thread Dima Pasechnik
They have a tool, nbmerge, to merge notebooks.
https://github.com/jupyter/nbconvert/issues/253

Beyond this, no, you really would need to have code either in *.sage file,
and load() it in a Sage notebook,
or have a *.py file, and import it in the usual Python way.

HTH
Dima

On Sun, Sep 26, 2021 at 9:31 AM Henri Girard  wrote:

> Hi,
>
> Iq there a way to import function from a sage notebook to another notebook
> ?
>
> I have long graphic one about 30 lines and I would like to show the
> graphic in another notebook, like with an attach method "show(g)" with
> import  and be able to add functions ?
>
> Any help welcome
>
> best
>
> Henri
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/8d263aea-08c8-20b5-d412-b5db2bcc7ca0%40gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq3DBOv848FhPQ1Z26nyv%2B6N5B4kbcHWLnFeMtuZO%3DDF%2Bg%40mail.gmail.com.


[sage-support] import

2021-09-26 Thread Henri Girard

Hi,

Iq there a way to import function from a sage notebook to another notebook ?

I have long graphic one about 30 lines and I would like to show the 
graphic in another notebook, like with an attach method "show(g)" with 
importĀ  and be able to add functions ?


Any help welcome

best

Henri

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8d263aea-08c8-20b5-d412-b5db2bcc7ca0%40gmail.com.