Giter VIP home page Giter VIP logo

Comments (8)

sgugger avatar sgugger commented on May 18, 2024

It seems there is a special character in your notebook name (from the stack trace). Is it really named 03a_*.ipynb? That might be the source of the problem.

from nbdev.

BirkhoffG avatar BirkhoffG commented on May 18, 2024

It seems there is a special character in your notebook name (from the stack trace). Is it really named 03a_*.ipynb? That might be the source of the problem.

My notebook's name is 03a_module_layers.ipynb.

from nbdev.

daviddemeij avatar daviddemeij commented on May 18, 2024

Maybe something goes wrong because of the backslashes used in Windows paths? Or has nbdev been tested on Windows already?

from nbdev.

sgugger avatar sgugger commented on May 18, 2024

No, this is not that. nbdev works on Windows and has been tested, with the exception of the diff command however (this will be fixed when I have time to rewrite it).

from nbdev.

hamelsmu avatar hamelsmu commented on May 18, 2024

@BirkhoffG can you supply a public version of this notebook ( or a stripped-down version thereof )? I would like to see if I can reproduce this error!

from nbdev.

hamelsmu avatar hamelsmu commented on May 18, 2024

@BirkhoffG this appears to definitely be something in your notebook. For example, if I open 00_export.ipynb and run the following cells

# copy existing notebook for testing
! cp 99_search.ipynb 03a_module_layers.ipynb
notebook2script('03a_module_layers.ipynb')

I don't see your error. Hope that helps

from nbdev.

sgugger avatar sgugger commented on May 18, 2024

I'm closing the issue since we can't reproduce and fix, please do not hesitate to reopen with an example of the bug (preferably with the notebook file that fails).

from nbdev.

Tom-TBT avatar Tom-TBT commented on May 18, 2024

Hello,
I had a similar issue, I'm working with windows. The notebook2script() worked fine until I made submodules. After I got the error, I created new modules that aren't nested and they could be exported fine, so it seems that notebook2script() fails specifically the submodules.

Then I updated nbdev from 0.1.6 to the latest to date 0.2.12 and it worked fine. Hope it can help someone.

from nbdev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.