Matplotlib notebook magic inline/plotting commands not working
up vote
0
down vote
favorite
I am running a jupyter notebook (5.7.0) with pandas (0.23.4) and matplotlib (3.0.1). When I try to plot using the
pandas.DataFrame.plot()
function it gives me the text of the object:
<pandas.plotting._core.FramePlotMethods object at 0x7f612fdb74a8>
Naturally I googled this, and have sinced tried the magic commands:
%matplotlib inline
and
%matplotlib notebook
in the very first cell after shutting down the notebook and restarting it, and still it seems to make no difference.
So for completeness sake, my first cell is the magic command, and in the second I import numpy,pandas and matplotlib. In the following cells are create my array and pass it to the DataFrame command. Finally I call:
pandas.DataFrame.plot(df)
and the text of the object (from above) appears, regardless of whether I run the magic commands or not. Have I got the incorrect version of something? Do I need to restart the entire notebook server?
python pandas matplotlib jupyter-notebook
add a comment |
up vote
0
down vote
favorite
I am running a jupyter notebook (5.7.0) with pandas (0.23.4) and matplotlib (3.0.1). When I try to plot using the
pandas.DataFrame.plot()
function it gives me the text of the object:
<pandas.plotting._core.FramePlotMethods object at 0x7f612fdb74a8>
Naturally I googled this, and have sinced tried the magic commands:
%matplotlib inline
and
%matplotlib notebook
in the very first cell after shutting down the notebook and restarting it, and still it seems to make no difference.
So for completeness sake, my first cell is the magic command, and in the second I import numpy,pandas and matplotlib. In the following cells are create my array and pass it to the DataFrame command. Finally I call:
pandas.DataFrame.plot(df)
and the text of the object (from above) appears, regardless of whether I run the magic commands or not. Have I got the incorrect version of something? Do I need to restart the entire notebook server?
python pandas matplotlib jupyter-notebook
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am running a jupyter notebook (5.7.0) with pandas (0.23.4) and matplotlib (3.0.1). When I try to plot using the
pandas.DataFrame.plot()
function it gives me the text of the object:
<pandas.plotting._core.FramePlotMethods object at 0x7f612fdb74a8>
Naturally I googled this, and have sinced tried the magic commands:
%matplotlib inline
and
%matplotlib notebook
in the very first cell after shutting down the notebook and restarting it, and still it seems to make no difference.
So for completeness sake, my first cell is the magic command, and in the second I import numpy,pandas and matplotlib. In the following cells are create my array and pass it to the DataFrame command. Finally I call:
pandas.DataFrame.plot(df)
and the text of the object (from above) appears, regardless of whether I run the magic commands or not. Have I got the incorrect version of something? Do I need to restart the entire notebook server?
python pandas matplotlib jupyter-notebook
I am running a jupyter notebook (5.7.0) with pandas (0.23.4) and matplotlib (3.0.1). When I try to plot using the
pandas.DataFrame.plot()
function it gives me the text of the object:
<pandas.plotting._core.FramePlotMethods object at 0x7f612fdb74a8>
Naturally I googled this, and have sinced tried the magic commands:
%matplotlib inline
and
%matplotlib notebook
in the very first cell after shutting down the notebook and restarting it, and still it seems to make no difference.
So for completeness sake, my first cell is the magic command, and in the second I import numpy,pandas and matplotlib. In the following cells are create my array and pass it to the DataFrame command. Finally I call:
pandas.DataFrame.plot(df)
and the text of the object (from above) appears, regardless of whether I run the magic commands or not. Have I got the incorrect version of something? Do I need to restart the entire notebook server?
python pandas matplotlib jupyter-notebook
python pandas matplotlib jupyter-notebook
asked yesterday
bidby
87112
87112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You misunderstood the way plotting works. What you are trying here is
import pandas
df=pandas.DataFrame([1,2,3])
pandas.DataFrame.plot(df)
What you need to do instead is
import pandas
df=pandas.DataFrame([1,2,3])
df.plot()
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You misunderstood the way plotting works. What you are trying here is
import pandas
df=pandas.DataFrame([1,2,3])
pandas.DataFrame.plot(df)
What you need to do instead is
import pandas
df=pandas.DataFrame([1,2,3])
df.plot()
add a comment |
up vote
1
down vote
accepted
You misunderstood the way plotting works. What you are trying here is
import pandas
df=pandas.DataFrame([1,2,3])
pandas.DataFrame.plot(df)
What you need to do instead is
import pandas
df=pandas.DataFrame([1,2,3])
df.plot()
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You misunderstood the way plotting works. What you are trying here is
import pandas
df=pandas.DataFrame([1,2,3])
pandas.DataFrame.plot(df)
What you need to do instead is
import pandas
df=pandas.DataFrame([1,2,3])
df.plot()
You misunderstood the way plotting works. What you are trying here is
import pandas
df=pandas.DataFrame([1,2,3])
pandas.DataFrame.plot(df)
What you need to do instead is
import pandas
df=pandas.DataFrame([1,2,3])
df.plot()
answered yesterday
ImportanceOfBeingErnest
118k10116189
118k10116189
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372674%2fmatplotlib-notebook-magic-inline-plotting-commands-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown