Subject: mailing-list for TeXmacs Users
List archive
[texmacs-users] matplolib inside [was Re: jupyter…]
- From: vincent douce <address@concealed>
- To: address@concealed
- Subject: [texmacs-users] matplolib inside [was Re: jupyter…]
- Date: Thu, 24 Oct 2024 13:45:38 +0200
<<< text/html; charset=us-ascii: Unrecognized >>>
Attachment:
TP3-mon_corrige.tm
Description: Binary data
<<< text/html; charset=us-ascii: Unrecognized >>>
Attachment:
matplotlib-texmacs.tm
Description: Binary data
Le 15 oct. 2024 à 18:54, Henri Girard <address@concealed> a écrit :here it is :
%matplotlib notebook
import matplotlib.pyplot as pltimport matplotlib
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
theta=np.linspace(0,2*np.pi,100)
x=np.cos(theta)
y=np.sin(theta)
fig,ax=plt.subplots()
ax.plot(x,y)
ax.set_aspect(1)
plt.showI got a blue circle
Next time put le python code because from an image I have to write it and I am not a good typist !
best
Henri
Le 15/10/2024 à 17:26, vincent douce a écrit :
thanks Henrithe % is not recognized
<GraphiqueCollé-8.png>
Le 15 oct. 2024 à 15:10, Henri Girard <address@concealed> a écrit :
Sorry for not being clear :
In Jupyter notebook with python if we want a graphic embeded one just write at begining
%matplotlib inline
and all pictures will be inside jupyter and not outside
Le 15/10/2024 à 10:36, vincent douce a écrit :
hello Henriwhat do you mean ?
Le 15 oct. 2024 à 10:13, Henri Girard <address@concealed> a écrit :
have you tried %matplolib inline ?
Le 15/10/2024 à 10:11, vincent douce a écrit :
hello i have made a trial
%matplolib inline
my question are :
- créate a shortcut for « inserting session python » : maybe with my-init-texmacs ? and for « evaluate all », « evaluate below »…- possible to cancel the display of >>> and instead change the typography of the chunks ? grey background + size of the font more tiny ?- some difficulties when inserting a chunk, to put the cursor after the chunk
remarks :
- summary : advantage to TeXmacs…- pdf version : galactic advantage to TeXmacs…
other question :
(screenshot)if i matplotlib some curve inside a python session : how to get the picture not in an external windows, but inside the TeXmacs document ?Vincent
Vincent
-
jupyter…,
vincent douce, 10/15/2024
-
Re: jupyter…,
Henri Girard, 10/15/2024
-
Message not available
-
Message not available
-
Re: jupyter…,
vincent douce, 10/15/2024
-
Message not available
-
Re: jupyter…,
vincent douce, 10/16/2024
- Re: [texmacs-users] jupyter…, Giovanni Piredda, 10/16/2024
- Re: [texmacs-users] jupyter…, vincent douce, 10/22/2024
- Re: [texmacs-users] jupyter…, Giovanni Piredda, 10/24/2024
-
Re: jupyter…,
vincent douce, 10/16/2024
-
Message not available
-
Re: jupyter…,
vincent douce, 10/15/2024
-
Message not available
-
Message not available
- Re: [texmacs-users] jupyter…, vincent douce, 10/16/2024
-
Message not available
-
Message not available
-
[texmacs-users] matplolib inside [was Re: jupyter…],
vincent douce, 10/24/2024
- Re: [texmacs-users] matplolib inside [was Re: jupyter…], Giovanni Piredda, 10/24/2024
-
[texmacs-users] matplolib inside [was Re: jupyter…],
vincent douce, 10/24/2024
-
Re: jupyter…,
Henri Girard, 10/15/2024
Archive powered by MHonArc 2.6.24.