Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipython plots not showing #112

Closed
schlichtanders opened this issue Sep 18, 2015 · 6 comments
Closed

ipython plots not showing #112

schlichtanders opened this issue Sep 18, 2015 · 6 comments

Comments

@schlichtanders
Copy link

Dear Hydrogen team,

I just started to use hydrogen and everything is working but the plots.
It shows [<matplotlib.lines.Line2D at 0x7f009fd1b950> instead of a nice plot

I tried plotting within qtconsole solely and get the same output. Here I have to enable %matplotlib inline to get the nice plots.
Maybe such is missing when starting the ipython kernel?

hoping for help,
best,
Stephan

@willwhitney
Copy link
Collaborator

You'll definitely have to run %matplotlib inline to make them work. This is because the IPython kernel doesn't do this itself.

I don't want to add any kernel-specific code to Hydrogen, but I do have plans to (when I get the time...) implement a language plugin system for Hydrogen that would allow code to be run when the kernel is started and/or before user code.

@schlichtanders
Copy link
Author

Thank you very much for this fast clarification - and of course for
creating such a lovely plugin.
I am looking forward to language specific configurations

a simple json configuration file keyworded by standard filenames, referring
to values which represent the lines to be executed in the beginning could
do the trick already, doesn't it? (or is this too insecure?)

On 19 September 2015 at 18:37, Will Whitney notifications@github.com
wrote:

You'll definitely have to run %matplotlib inline to make them work. This
is because the IPython kernel doesn't do this itself.

I don't want to add any kernel-specific code to Hydrogen, but I do have
plans to (when I get the time...) implement a language plugin system for
Hydrogen that would allow code to be run when the kernel is started and/or
before user code.


Reply to this email directly or view it on GitHub
#112 (comment)
.

@willwhitney
Copy link
Collaborator

My rationale for doing it with extensions is that there are several pressing language-specific features* which are going to take a nontrivial amount of code. By building an API for Hydrogen extensions, any language-specific features can be independently maintained and distributed by the people who use those languages. I don't want to have any language-specific code in the core Hydrogen package, and I don't want every user to have to go add this themselves.

*most notably, a per-language function for finding the preceding block of code to execute from the buffer

@schlichtanders
Copy link
Author

thanks for explaining,
that would be a great feature,

looking forward to the future,
best,
Stephan

On 22 September 2015 at 00:52, Will Whitney notifications@github.com
wrote:

My rationale for doing it with extensions is that there are several
pressing language-specific features* which are going to take a nontrivial
amount of code. By building an API for Hydrogen extensions, any
language-specific features can be independently maintained and distributed
by the people who use those languages. I don't want to have any
language-specific code in the core Hydrogen package, and I don't want every
user to have to go add this themselves.

*most notably, a per-language function for finding the preceding block of
code to execute from the buffer


Reply to this email directly or view it on GitHub
#112 (comment)
.

@rgbkrk
Copy link
Member

rgbkrk commented Oct 18, 2015

My rationale for doing it with extensions is that there are several pressing language-specific features* which are going to take a nontrivial amount of code. By building an API for Hydrogen extensions, any language-specific features can be independently maintained and distributed by the people who use those languages. I don't want to have any language-specific code in the core Hydrogen package, and I don't want every user to have to go add this themselves.

*most notably, a per-language function for finding the preceding block of code to execute from the buffer

Wow that's sounding great.

@n-riesco
Copy link
Collaborator

Closed by #195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants