Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9211463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:18:08+00:00 2026-06-18T01:18:08+00:00

I have an IPython Notebook that is using Pandas to back-test a rule-based trading

  • 0

I have an IPython Notebook that is using Pandas to back-test a rule-based trading system.

I have a function that accepts various scalars and functions as parameters and outputs a stats pack as some tables and a couple of plots.

For automation, I want to be able to format this nicely into a "page" and then call the function in a loop while varying the inputs and have it output a number of pages for comparison, all from a single notebook cell.

The approach I am taking is to create IpyTables and then call _repr_html_(), building up the HTML output along the way so that I can eventually return it from the function that runs the loop.

How can I capture the output of the plots this way – matplotlib subplot objects don’t seem to implement _repr_html_()?

Feel free to suggest another approach entirely that you think might equally solve the problem.

TIA

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:18:09+00:00Added an answer on June 18, 2026 at 1:18 am

    Ok, if you go that route, this answer stackoverflow.com/a/5314808/243434 on how to capture >matplotlib figures as inline PNGs may help – @crewbum

    To prevent duplication of plots, try running with pylab disabled (double-check your config >files and the command line). – @crewbum

    –> this last requires a restart of the notebook: ipython notebook –pylab (NB no inline)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Ipython notebook and the pandas module, I have a bit of code that
I have a nicely-formatted ipython notebook complete with markdown cells and whatnot. I'm wondering
I'm using a IPython notebook to write a program using pygame library. Here, I
Does ipython have a setting similar to '-e' in bash that stops the execution
I have ipython (0.12.dev) installed and I have noticed that I cannot use it
I am running the following snippet of code in the ipython notebook, using the
I'm using IPython to develop a multi-threaded socket based client-server type thing. The problem
I have a foo.py def foo(): print test In IPython I use: In [6]:
I'm building some interactive workflows in IPython using the fantastic Notebook for interactive analysis
Is it possible to have IPython (0.12) installed on the same system with two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.