# Maxima in online notebook

Is there any way to show maxima graphs in the online Sage notebook?

```
maxima('plot2d(sin(x),[x,-7,7])')
```

shows nothing.

```
maxima('plot2d(sin(x),[x,-7,7],[plot_format, gnuplot],[gnuplot_term, svg],[gnuplot_out_file, "plot2d.svg"])')
```

returns not hyperlink

```
{}plot2d.svg{}
```

You need to save the plot into the current directory as a png, jpg, or svg file. Then it will be automatically displayed. Something like `plot2d(....).save("./file.png")`. I don't know if maxima can save a file in png format to current directory.

For gnuplot, you will need gnuplot to be installed. I doubt it is installed in the online notebook.

The problem was solved. Now it returns the plot.

Great! I will just put my answer as a proper answer then, so that this question doesn't appear as unanswered.