nb_util
nb_util allows you to generate latex(tex) format from your jupyter notebook(ipynb) format.
This gem supplies to help when you use jupyter notebook.
what can it help me?
- Convert my_help to jupyter notebook(ipynb)
- Combine multiple jupyter notebook into one jupyter note book
- Extract data from jupyter notebook, then convert to the file format you extracted data.
- To see jupyter notbook's contents
- Convert jupyter notebook(ipynb) to latex(tex) format(thesis and handout(A4))
Add this line to your application's Gemfile:
gem 'nb_util'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nb_util
To use this library:
require 'nb_util'
On your local system, run the following in your command line:
$ git clone git@github.com:EAGLE12/nb_util.git
$ cd nb_util
$ bundle update
Run the following in your command line:
$ bundle exec exe/nb_util
nb_util says hello, EAGLE !!
Commands:
nb_util combine [input file1] [input file2] [output filename] # combine file1 and file2
nb_util getcode [filename] # save in ruby format
nb_util help [COMMAND] # Describe available commands or one specific command
nb_util iputs [filename] # display ipynb file contents
nb_util ipynb2tex [filename] [option] # convert ipynb to tex's thiesis format
nb_util red WORD [OPTION] # red words print.
nb_util yaml2ipynb [input filename] # convert yaml to ipynb
Have a good life with nb_util!
$ nb_util
nb_util says hello, EAGLE !!
Commands:
nb_util combine [input file1] [input file2] [output filename] # combine file1 and file2
nb_util getcode [filename] # save in ruby format
nb_util help [COMMAND] # Describe available commands or one specific command
nb_util iputs [filename] # display ipynb file contents
nb_util ipynb2tex [filename] [option] # convert ipynb to tex's thiesis format
nb_util red WORD [OPTION] # red words print.
nb_util yaml2ipynb [input filename] # convert yaml to ipynb
$ gem uninstall nb_util
And then
You want to uninstall by filling number on it
Select gem to uninstall:
1. nb_util-0.3.4
2. nb_util-0.3.5
3. nb_util-0.3.6
4. nb_util-0.3.7
5. nb_util-0.3.8
6. nb_util-0.4.0
7. All versions
> 7
Successfully uninstalled nb_util-0.3.4
Successfully uninstalled nb_util-0.3.5
Successfully uninstalled nb_util-0.3.6
Successfully uninstalled nb_util-0.3.7
Successfully uninstalled nb_util-0.3.8
Remove executables:
nb_util
in addition to the gem? [Yn] y
Removing nb_util
Successfully uninstalled nb_util-0.4.0
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/EAGLE12/nb_util. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
- Fork it (https://github.com/EAGLE12/nb_util/fork)
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Added some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the NbUtil project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.