-
Notifications
You must be signed in to change notification settings - Fork 4
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
%load answers #23
Comments
Okay, instead of making this an issue for every notebook, I'm going to just do something more centralized here. I need to make a script that does a lot of this for me. One goal is to pull in answers to a cell when the user gets stuck. I can see two ways to do this...
The part I haven't figured out here is how to deal with editing notebooks. |
Okay so I'm going with option two. I wrote an ipython magic that pulls in code chunks from the exported python file with filepath and cell number parameters. I decided to have the answers (for any part of the tutorial, doesn't have to just be dashboard) go in a |
So perhaps I've established somewhere that the ipython magic that pulls chunks from the exported python file can only do so on exported cells, which is an oversight on my part. What about cells that aren't exported? I was thinking I'd have to scrap the old magic and write a new one that writes all the answers to files, but actually, the old way of doing it is still needed. If a user has trouble with an old notebook, they can import the module from the key directory. So it's not like I wasted work there. But I also need a solution for pulling in answers from cells that weren't exported. So I need to write another magic function that exports answers to a different directory in |
key/path/to/file.py
For each notebook:
dashboard
andkey/dashboard
Before the tutorial:
nb_export('03_dashboarding.ipynb', '.dashboard_key')
)The text was updated successfully, but these errors were encountered: