Comments (10)
I confirm this is merged into master and will be part of the next milestone release.
from jupytext.
Thanks @grst for your development. Is is correct that the patch will be available starting with Jupyter Lab 0.35?
People are asking on twitter how to install the dev version of JupyterLab: instructions are here, but installation may not be straightforward!
from jupytext.
Fixed in the latest development version of jupyter.
There is now a 'Notebook' entry in the 'Open With' context menu for such notebooks.
from jupytext.
Hello @albham , sorry we don't know how to do that in Jupyter Lab yet. For now you have to either use Jupyter Notebook, or to use the right-click approach. If you want to get updates on the subject, I suggest that you subscribe to #271 (that one is for .md
files, but obviously when we find out how to do .md
files, we'll do .Rmd
files as well).
from jupytext.
I cannot exclude that the issue is with jupyter lab. I've provided a minimal example with the issue at jupyterlab/jupyterlab#4924
from jupytext.
@grst So, it's actually on master branch now?
jupyterlab/jupyterlab#5247
from jupytext.
I install Jupyter using conda. Jupytext works as expected using the notebook
format. In the lab
format jupytext creates synced files as expected, but doesn't render .md
or .Rmd
files as notebooks. I'm sure you already know that. The version of jupyterlab conda installs for me is 0.35.1. Pip gives me jupytext 0.8.1. Is there a way I could install the master branch with the currently working jupytext without messing up conda? I usually don't like mixing conda and non-conda except for pip.
BTW, jupytext does not seem to have a "version" flag.
(base) balter@spectre:~$ jupytext -v
usage: jupytext [-h]
[--to {notebook,rmarkdown,markdown,python,R,julia,c++,scheme,ipynb,md,Rmd,R,py,jl,cpp,ss,md:markdown,Rmd:rmarkdown,R:spin,py:light,R:light,jl:light,cpp:light,ss:light,py:percent,R:percent
,jl:percent,cpp:percent,ss:percent,py:sphinx,py:sphinx-rst2md}]
[--from {notebook,rmarkdown,markdown,python,R,julia,c++,scheme,ipynb,md,Rmd,R,py,jl,cpp,ss,md:markdown,Rmd:rmarkdown,R:spin,py:light,R:light,jl:light,cpp:light,ss:light,py:percent,R:perce
nt,jl:percent,cpp:percent,ss:percent,py:sphinx,py:sphinx-rst2md}]
[-o OUTPUT] [--update] [--test]
[notebooks [notebooks ...]]
jupytext: error: unrecognized arguments: -v
(base) balter@spectre:~$ jupytext --version
usage: jupytext [-h]
[--to {notebook,rmarkdown,markdown,python,R,julia,c++,scheme,ipynb,md,Rmd,R,py,jl,cpp,ss,md:markdown,Rmd:rmarkdown,R:spin,py:light,R:light,jl:light,cpp:light,ss:light,py:percent,R:percent
,jl:percent,cpp:percent,ss:percent,py:sphinx,py:sphinx-rst2md}]
[--from {notebook,rmarkdown,markdown,python,R,julia,c++,scheme,ipynb,md,Rmd,R,py,jl,cpp,ss,md:markdown,Rmd:rmarkdown,R:spin,py:light,R:light,jl:light,cpp:light,ss:light,py:percent,R:perce
nt,jl:percent,cpp:percent,ss:percent,py:sphinx,py:sphinx-rst2md}]
[-o OUTPUT] [--update] [--test]
[notebooks [notebooks ...]]
jupytext: error: unrecognized arguments: --version
from jupytext.
@abalter , as you found out this is indeed documented at #78. Opening text notebooks in Jupyter Lab requires Jupyter Lab 0.35 or later (it's good to know that Jupyter Lab 0.35.1 is out, I will update the readme!), and then a right click on the file, thanks to @grst 's contribution to Jupyter Lab:
from jupytext.
Thanks for pointing that out! I did not pick up that that was an official part of current jupytext. The right-click method works for me (most of the time).
My preference would be something less hidden such as one of the following:
- When opening a *md file you get a dialog asking how you want to open it.
- A way to toggle back and forth between views with a drop down like changing kernels.
I'll take a loot at @grst's PR and see if I can figure out how to add that code.
from jupytext.
Hello. Thank you for the wonderful work on JupyText.
There is a configuration option (in configuration file for example) to open .Rmd as notebooks by default?
from jupytext.
Related Issues (20)
- reinstate `:` in valid metadata keys ? HOT 4
- Extension fails to load in ServerApp HOT 1
- Use callback to frontend extension Settings change to add/remove entries to launcher and main menu
- Unable to unpair ipynb in jupyter notebook HOT 7
- Add Galata UI tests for notebook
- Replace toml package with tomli HOT 3
- Panel widget event triggers are not working in py:percent notebooks HOT 2
- Write temporary notebooks to a `TemporaryDirectory` rather than `NamedTemporaryFile`
- feature request: automatic creation of missing notebooks for use after git clone
- Using jupytext in a nested project can result in re-import of the current module HOT 2
- Enable the discussions section for the repository HOT 2
- The Jupytext pre-commit hook fails to install when node is not available HOT 2
- Ability to specify jupytext as the viewer via URL HOT 5
- --sync: avoid updating timestamp of *.py if nothing changes HOT 11
- jupytext-config set-default-viewer failing with a miniconda install on Windows 10 HOT 2
- Convert Jupyter Notebooks with R code cells to ```r code cells
- Automatic code cell detection HOT 3
- Jupytext corrupts original notebook with base64 of pair HOT 1
- Allow to provide the output argument when providing multiple files with --set-formats HOT 1
- indented magic commands block all magic commands HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupytext.