Bill Finzer

Forum Replies Created

Viewing 15 posts - 376 through 390 (of 392 total)
  • Author
    Posts
  • in reply to: Embedding CODAP components (table or Graph) in webpage #403
    Bill Finzer
    Keymaster

    OK, so we’re assuming you can create a webpage. Here are the steps:

    1. Create the CODAP document just how you want it, with everything laid out starting at the top left. Give this document a name and save it.
    2. In the 3-strips menu choose Share… / Get link to shared view. This will open a dialog box.
    3. Press the Enable Sharing button. This will bring up a Share dialog box.
    4. Choose the middle tab Embed.
    5. Copy the code in the box (the text that starts with “<iframe”).
    6. Go into your web page editor where you want to embed the CODAP document.
    7. Paste the code you copied in the desired place.
    8. Edit the code by inserting “?componentMode=yes” in the place shown here:

    src="https://codap.concord.org/app/<strong>?componentMode=yes</strong>#shared=12345">

    1. Open your web page and figure out what width and height of the rectangle you want and edit those two numbers in the code.

    Notice that CODAP’s tool shelf is not showing. That’s because you added the code that turns on “componentMode.”

    Be aware that you can at any time go back to your original saved document, make changes, save them, and use Share… / Update shared view so that the next time your web page is viewed, your changes are there.

    Hoping this works,
    Bill

    Attachments:
    in reply to: Lunar Lander #400
    Bill Finzer
    Keymaster

    Generally CODAP runs slower on Firefox than on Chrome. But check Firefox to make sure you have the latest version.

    The fact that the computed value doesn’t update is a bug, that I don’t think is in our current bug list. Putting it there now!

    Thanks, Bill

    in reply to: Lunar Lander #397
    Bill Finzer
    Keymaster

    Hi Fi,

    I bet the video you watched was this one, which refers to an old version of CODAP. Things have changed.

    You can watch a video of the new interface for creating formulas here.

    Basically, after creating the attribute, click on its column header to bring up a menu and choose Edit Formula.

    Hope this helps,

    Bill

    in reply to: Creating a parent-level collection from a data interactive #394
    Bill Finzer
    Keymaster

    Hello Anna,

    There are at least two things going on here:

    1. As you correctly suspected, the flag preventDataContextReorg (I’m pretty sure) defaults to true. It defaults to true so that your users won’t reorganize their data and make it impossible for your data interactive (plugin) to add more data. But you can set it to false as shown in the section Example: InteractiveFrameUpdate of the API documentation. It sounds like you tried this with no success, but try again and if still no luck, ask here.
    2. If you want to be able to add data no matter how users may have reorganized things, use the Items api instead of the Cases api.

    Can you share a bit more about your situation and the plugins you are creating?

    Bill

    Bill Finzer
    Keymaster

    Hi Anna,

    I’m glad you’re having a good experience tidying your data so far.

    A cool thing about formulas is that removing the formula (by editing it and deleting its text) does not change the values that have already been computed. So that will “set” the values and you can proceed to drag the attribute to a higher level.

    Bill

    in reply to: Moving Averages #387
    Bill Finzer
    Keymaster

    Hello Mitchell,

    We don’t have a moving average function. (But I’m adding a feature request for one on your behalf.)

    But if I’ve understood correctly, you can compute what you are after as follows.

    1. Create an attribute named runningSum with the formula prev(runningSum,0)+current
    2. Create an attribute named runningAvg with the formula runningAvg/caseIndex

    Is this is the kind of average you’re looking for? When I tried it, I got a nice graph for three runs. Note that I had to define an attribute named ticks with the formula caseIndex.

    Hope this helps,

    Bill

    Attachments:
    in reply to: Probability Plugin Activites #384
    Bill Finzer
    Keymaster

    Hi Kathy,

    These are both nice demonstrations of ways to use the Sampler plugin! I couldn’t resist making a distribution of percentage of “Make” for each of the numbers of selection (see enclosed pic).

    I found myself wondering what you think about whether HS students’ after a couple of sessions with the sampler would come to understand it well enough to make simulations from scratch?

    Bill

    Attachments:
    in reply to: Exporting Data out of CODAP as a CSV File #381
    Bill Finzer
    Keymaster

    Hi Heinrich,

    Make sure the case table for the data you want to export is showing. Click on it to make it active so that the inspector menu shows. Click on the ruler to bring up the menu as shown in the screenshot and choose Export Case Data. Following through the dialogs will allow you to save the data as ‘csv’ either to Google Drive or to your local computer.

    Hope that helps,

    Bill

    Attachments:
    in reply to: Getting a NetLogo model to work in CODAP #370
    Bill Finzer
    Keymaster

    Hello Christián,

    NetLogo Web now has the ability to add CODAP integration as an extension. To learn about this, take a look at the slide presentation that Kit Martin of the NetLogo group did last February. It’s in this folder.

    I hope that has what you need. It’s pretty cool! You don’t have to mess with the html at all.

    Bill

    in reply to: Integrating CODAP with NetLogo #364
    Bill Finzer
    Keymaster

    Hi Gabriella,

    I’m deferring your question about log data to Jonathan Sandoe who has recently been working in that area.

    Regarding embedding CODAP in another site: Yes, provided you have in mind embedding as an iFrame. There are many examples of this here. If you use the query parameter ?embeddedMode=yes in the url for the iFrame, CODAP will only display the contents of the document.

    Hope that helps,

    Bill

    in reply to: Opening a locally saved document #352
    Bill Finzer
    Keymaster

    Hi Kathy,

    In addition to using the Main Menu/Open command, they can also set up their screen so they can see both the browser and the file itself in their local file system. Then drag the file into CODAP. Voila!

    Bill

    in reply to: Data Import #346
    Bill Finzer
    Keymaster

    Hi Joachim,

    I was able to follow Jonathan’s suggestion using the DropHTMLTable plugin on the CODAP Data Interactives Plugins page (under utilities). I selected the table text in the PDF and pasted it into the plugin. For some reason I wasn’t able to directly drag into CODAP.

    I also discovered a free utility called Tabula that appears to address this need, allowing you to extract tables from PDFs and turn them into a csv. I tried it in a simple case and it worked fine. Let us know if you have any luck with it.

    Bill

    in reply to: Correlation coefficient #341
    Bill Finzer
    Keymaster

    Hello Joachim,

    One way is to define an attribute that has the formula

    correlation(attribute1,attribute2)

    as shown in the attached screenshot. Notice that by dragging the new attribute all the way to the left to promote it, you get a single value that is less confusing than if you left it in the “flat” part of the table.

    Another way is to make a scatterplot of the two attributes and, with the ruler icon on its inspector, add a least squares regression line. On the line you will see the value of r-squared.

    Bill Finzer

    Attachments:
    in reply to: Create My Course #335
    Bill Finzer
    Keymaster

    Hi Asia,

    Can you say a bit more about your situation? What are you teaching, and at what level? How do you think CODAP might fit in with your situation?

    Bill

    in reply to: Sampler Plugins #314
    Bill Finzer
    Keymaster

    Regarding the Normal Distribution Sampler: It isn’t a very sophisticated plugin so you have to bring up the case table by hand; i.e. by clicking on the Tables icon and choosing People/Samples. Did you try that? If you did but still didn’t get anything, can you describe in a bit more detail what occurred?

    Thanks!

Viewing 15 posts - 376 through 390 (of 392 total)