Code Monkey home page Code Monkey logo

Comments (10)

grst avatar grst commented on May 22, 2024 3

I confirm this is merged into master and will be part of the next milestone release.

from jupytext.

mwouts avatar mwouts commented on May 22, 2024 2

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.

grst avatar grst commented on May 22, 2024 1

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.

mwouts avatar mwouts commented on May 22, 2024 1

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.

mwouts avatar mwouts commented on May 22, 2024

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.

zuxfoucault avatar zuxfoucault commented on May 22, 2024

@grst So, it's actually on master branch now?
jupyterlab/jupyterlab#5247

from jupytext.

abalter avatar abalter commented on May 22, 2024

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.

mwouts avatar mwouts commented on May 22, 2024

@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:

image

from jupytext.

abalter avatar abalter commented on May 22, 2024

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.

albham avatar albham commented on May 22, 2024

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)

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.