Giter Club home page Giter Club logo

py2nb's Introduction

py2nb's People

Contributors

dmontaner avatar williamjameshandley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

py2nb's Issues

`#-` and `#|` causes flake8 warning and is usually formatted away

Very nice script for generating a notebook!

I seem to have encountered an issue with the #- and #| syntax when using flake8 and yapf, as flake8 gives a E265 (as there's no space after the #) and yapf will always format it to have a space - thus breaking all code sections/markdown.

An easy fix would be to just accept # - and # |, a more complicated fix can use a config file to set the expected characters.

What is your opinion on this? I'm happy to open a PR for either approach

Issue 1 open file needs utf8

with open(script_name) as f:

please change to
with open(script_name,"r",encoding="utf-8") as f:

I was getting errors till I changed the above
File "C:\Users\sssca\AppData\Local\Programs\Python\Python38\lib\encodings*cp1252.py*", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 794: character maps to

Regards
Jayanta

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.