Submodule of a ipynb project
Build (and run) C/C++ files using iPython / Jupyter magic commands
Build (and run) C/C++ files using iPython / Jupyter magic commands
License: BSD 3-Clause "New" or "Revised" License
foo
├── foo
│ ├── data_struct.py
│ ├── __init__.py
│ └── internals.py
├── README
├── requirements.txt
└── setup.py
would translate into
from setuptools import setup
setup(
name='foo',
version='1.0',
description='A useful module',
author='Man Foo',
author_email='[email protected]',
packages=['foo'], #same as name
install_requires=['bar', 'greek'], #external packages as dependencies
)
project
├── sample
│ ├── __init__.py
│ ├── core.py
│ └── helpers.py
├── docs
│ ├── conf.py
│ └── index.rst
├── tests
│ ├── test_basic.py
│ └── test_advanced.py
├── README.rst
├── LICENSE
├── setup.py
└── requirements.txt
IMHO this would translate into
from setuptools import setup
setup(
name='sample',
version='1.0',
description='A useful module',
author='Kenneth Reitz',
author_email='[email protected]',
packages=['sample'], #same as name
install_requires=['spam', 'egg'], #external packages as dependencies, if any?
)
$ python setup.py test
running test
running egg_info
writing build_util.egg-info/PKG-INFO
writing dependency_links to build_util.egg-info/dependency_links.txt
writing requirements to build_util.egg-info/requires.txt
writing top-level names to build_util.egg-info/top_level.txt
reading manifest file 'build_util.egg-info/SOURCES.txt'
writing manifest file 'build_util.egg-info/SOURCES.txt'
running build_ext
tests (unittest.loader._FailedTest) ... ERROR
======================================================================
ERROR: tests (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests
Traceback (most recent call last):
File "~/anaconda3/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
ModuleNotFoundError: No module named 'build_util.tests'
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>
%%cython
%%cpp
bash
commands?jupyter notebook
?$ python setup.py develop
setuptools
would enable testing, hopefully easily.import os
import sys
sys.path.append(
os.path.abspath(
os.path.join(os.path.dirname(__file__), os.pardir, <custom magic>)
)
)
setuptools
would deal with this problem tooA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.